Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual Basic Run Time Errors

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0

Does anyone have experience with run time errors in Visual Basic? Specifically, run time error #48. I receive this when trying to execute a VB .exe that involves calling a DLL created with C++ source code.

When in debug mode, I cannot step through or over the point in the program where this error occurs. I have tried quite a few things with no success, such as copying the DLL to the directories where VB will search for it, hardcoding the pathway to the DLL, and placing the extension on the file name call. No success whatsoever. Please help!!

Thanks
JA
 
jabelon -

If this is an ordinary DLL (i.e. not a COM DLL), did you use __declspec(dllexport) to create your exported functions? If so, VB doesn't recognize those. You have to use a .DEF file for this. Annoying, but not that hard to fix.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top