corduroy9
asked on
From VB.NET Debug C++ DLL
Hi,
I have created this VB.NET project that uses an existing unmanaged C++ DLL. For some reason when I call a function within this DLL the return code I recieve is an extremely long number. So while running the project I would Ideallly like to be able to step thru the code. I have the source to the DLL. It was created using Visual C++ 6.0.
Declare Function Build_Structure Lib "store.dll" (ByVal fname As String, ByVal ImageFile As String, ByVal ObjClass As Long) As Long
This is how I declared the function in the dll as well. Anything wrong with that?
I have created this VB.NET project that uses an existing unmanaged C++ DLL. For some reason when I call a function within this DLL the return code I recieve is an extremely long number. So while running the project I would Ideallly like to be able to step thru the code. I have the source to the DLL. It was created using Visual C++ 6.0.
Declare Function Build_Structure Lib "store.dll" (ByVal fname As String, ByVal ImageFile As String, ByVal ObjClass As Long) As Long
This is how I declared the function in the dll as well. Anything wrong with that?
ASKER
Windows Application calling a C++ DLL
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The problem was that the variable lengths changed between versions and therefore had to set the variable to a specific length of integer.
Bob