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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLL troubles VB/VC++

Status
Not open for further replies.

SmileeTiger

Programmer
Mar 13, 2000
200
US
I am working on a DLL that is build in VC++ using ANSI C calls and then accessing the DLL in VB using a public declare function:

Public Declare Function GetTestDLLVersionNumber Lib "TestDLL.dll" Alias "GetVersionNumber" () As Long

I compiled the code on a WinNT machine and the DLL will work fine when used in VB on another NT machine (all the NT machines have the development tools installed on them). However, when I try to use the DLL in VB on a Win95 machine I get the following error:
Run-time error ‘48’:
File not found TestDLL.dll

Does anyone have ANY idea what the heck is going on here?
The DLL is in the c:/windows/system directory on the windows 95 machines..

I am really confused.
 
Nope the dll doesn't need to be registered.


I was attempting to use a debug dll on the 95 machine.. not a good idea..

Works in release mode :)

Thanks anyone who looks!
 

Try with the full path in the declaration -just to test if that's the problem.
Have you tried putting the dll in the same dir as your exe?
Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top