• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 347
  • Last Modified:

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?
0
corduroy9
Asked:
corduroy9
  • 2
1 Solution
 
Bob LearnedCommented:
What type of project is the VB.NET project?  DLL or Windows Application?

Bob
0
 
corduroy9Author Commented:
Windows Application calling a C++ DLL
0
 
PockyMasterCommented:
You might consider defining the ObjClass as IntPtr or Int32
0
 
corduroy9Author Commented:
The problem was that the variable lengths changed between versions and therefore had to set the variable to a specific length of integer.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now