Hi Marc,
I'm not sure but I think you should try marshaling the two-dimensional
array to SAFEARRAY. Try defining your COM method like this
Public Sub generateMatrix(<[In](),Out()>ByVal matrix(,) As Double)
Implements IMatrix.generateMatrix
and use normally in your VB6. for more information you may refer to
http://msdn.microsoft.com/library/en-us/cpguide/html/cpcondefaultmarshalingf
orarrays.asp?frame=true
Thanks!
Best regards,
Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties and confers no rights.
You should not reply this mail directly, "Online" shouldbe removed before
sending, Thanks!
--------------------
| From: "Marc Reiter" <marc@reitec.de>
| Subject: Variant Type or 2dim Array
[quoted text clipped - 8 lines]
| NNTP-Posting-Host: pd903f9b4.dip.t-dialin.net 217.3.249.180
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFTNGXA0
5.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.interop:18729
| X-Tomcat-NG: microsoft.public.dotnet.framework.interop
[quoted text clipped - 10 lines]
|
| Marc Reiter