File not found

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I've got the following problem: I created a solution based on a .net exe
(vb) and a CF++ dll. Now, the dll is called out of vb.net code as follows:

public declare sub TestMe lib "mytest.dll" ()

But when I run the application, I receive an error that sais: 'File not
found. Dll could not be loaded'. The dll is placed in just the same directory
as the exe and does export the function TestMe (I've checked that with the
depends.exe utility).

Can anyone give me a hint on what's going on?

Thanks
Peter
 
Peter said:
Hi,

I've got the following problem: I created a solution based on a .net exe
(vb) and a CF++ dll. Now, the dll is called out of vb.net code as follows:

public declare sub TestMe lib "mytest.dll" ()

But when I run the application, I receive an error that sais: 'File not
found. Dll could not be loaded'. The dll is placed in just the same directory
as the exe and does export the function TestMe (I've checked that with the
depends.exe utility).

Can anyone give me a hint on what's going on?

Thanks
Peter

Perhaps the working directory of the exe has changed? Try referencing
the full path of the DLL.
 
I've tried to reference the complete path - now the error says: "Could not
load C:\Test\dtest.dll" (which is the dll). I've tried the same on different
platforms - just the same results....

Greetings,
Peter
 
I've tried to reference the complete path - now the error says: "Could not
load C:\Test\dtest.dll" (which is the dll). I've tried the same on different
platforms - just the same results....

Greetings,
Peter

How are you describing the full path? You might need an '@' in front
of the string since otherwise the '\t' in "\Test" will be interpreted
as a tab. Alternatively double up the backslashes and omit the '@':

Either @"C:\Test\dtest.dll"

or "C:\\Test\\dtest.dll"

rossum




The ultimate truth is that there is no ultimate truth
 
Back
Top