DllImport prob

  • Thread starter Thread starter pnp
  • Start date Start date
P

pnp

Hi all,

i'm having a problem using DllImport with Win98. It works just fine with XP
& 2000 but in 98 it prompts: "Unable to find xxxxx.dll". Any ideas?

error is: System.DllNotFoundException: Unable to load DLL (etc\fectfmn.dll).

Peter
 
May be the path is not set for it to automatically pickup dll. Specify the
full path

Try this way

[DllImport("c:\\myDir\MyDll.dll")]

The other reason may be the dll does not exists in the system at all. Is it
a system dll you are looking for ?
 
If the below works for 98 it might break it for 2000 / XP as the dll is
likely in a different place. You might try adding the path to your
enviroment variables PATH


Shakir Hussain said:
May be the path is not set for it to automatically pickup dll. Specify the
full path

Try this way

[DllImport("c:\\myDir\MyDll.dll")]

The other reason may be the dll does not exists in the system at all. Is it
a system dll you are looking for ?

--
Shak
(Houston)


pnp said:
Hi all,

i'm having a problem using DllImport with Win98. It works just fine with XP
& 2000 but in 98 it prompts: "Unable to find xxxxx.dll". Any ideas?

error is: System.DllNotFoundException: Unable to load DLL (etc\fectfmn.dll).

Peter
 
Back
Top