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 compile 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?

I am really confused.
 
The DLL is in the c:/windows/system directory on the windows 95 machines..
 
I was attempting to use a debug dll on the 95 machine.. not a good idea..

Works in release mode :)

Thanks anyone who looks!
 
The sll may need runtime libraries not present on the machine.
Check what libraries are needed by the dll using dumpbin.exe /IMPORTS xxx.dll or use the GUI-tool depends.exe included with the Visual C++.
/JOlesen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top