Re: passing array fcreated in c++ dll to vb
- From: "Sizeof()" <no_spams@xxxxxx>
- Date: Mon, 20 Nov 2006 12:36:07 +0100
MrAsm <invalid@xxxxxxxxxxx> a écrit dans le message :
6vd0m2hn1e9i8e3v8q980vhekmop4d5p08@xxxxxxxxxx
On Sat, 18 Nov 2006 13:18:29 +0100, "Sizeof()" <no_spams@xxxxxx>
wrote:
long __stdcall BuildArray( VARIANT FAR * pvArray )
But in this case the function gets name-mangling, right?
Something like BuildArray@NN ...?
Why the __stdcall and not __cdecl ?
Mr Asm
Private Declare Function BuildArray Lib "prog.dll" (ByRef vArray As Variant)
As Long
Private Sub Command1_Click()
Dim dati
Dim res
Dim x1
Dim x2
Dim d(1)
res = BuildArray(dati)
If res = 0 Then
'MsgBox "OK"
d(0) = dati
x1 = d(0)
x2 = d(1)
'MsgBox "Dati: " & CStr(x1) & ", " & CStr(x2)
Else
MsgBox "Errore : " & CStr(res)
End If
Dim i
For i = LBound(x1) To UBound(x1)
Print x1(i)
Next i
End Sub
.
- References:
- passing array fcreated in c++ dll to vb
- From: Simply_Red
- Re: passing array fcreated in c++ dll to vb
- From: Simply_Red
- Re: passing array fcreated in c++ dll to vb
- From: Sizeof()
- Re: passing array fcreated in c++ dll to vb
- From: MrAsm
- passing array fcreated in c++ dll to vb
- Prev by Date: Re: Server cannot access client
- Next by Date: vector and deque
- Previous by thread: Re: passing array fcreated in c++ dll to vb
- Next by thread: NLB WMI programming
- Index(es):
Relevant Pages
|