Thanks for the response. Someone else pointed out what I was doing wrong. Turns out that I need to reference the Structure that is defined in VB when I'm declaring the variable in C++
instead of this in C++
testParams tp;
I needed to do this:
kpdUI::testPara ms tp;
Now it works like a champ.
Thanks again... Gary
User Profile
Collapse
-
Passing Structures from C++ to a VB .NET DLL
I'm having trouble getting the correct syntax for passing a structure from C++ to VB .NET.
I have a VB .Net DLL program with the following code:
[code=vb]
Public Structure testParams
Public iFirst As Integer
Public iSecond As Integer
End Structure
Public Class clsKpdUI
Public Function ShowForm(ByVal Param1 As testParams) As Integer
' Code
End Function
End...
No activity results to display
Show More
Leave a comment: