Link to home
Start Free TrialLog in
Avatar of corduroy9
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?
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

What type of project is the VB.NET project?  DLL or Windows Application?

Bob
Avatar of corduroy9
corduroy9

ASKER

Windows Application calling a C++ DLL
ASKER CERTIFIED SOLUTION
Avatar of PockyMaster
PockyMaster
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The problem was that the variable lengths changed between versions and therefore had to set the variable to a specific length of integer.