P/Invoke can not find dll
-
When I use mapirule.dll like this way:http://msdn.microsoft.com/en-us/library/aa446561.aspx[^] I get a error "Could not find P/Invoke dll 'mapirule.dll' " Who can help me to resolve this problem? I'm sure the mapirule.dll is exist both the program's directory and ./Windows directory. Thanks very much.
:^):^):^):^):^):^):^):^):^):^):^):^) :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::^):^):^):^)▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):^):^):^):^):^):^):^):^):^):^):^)
-
When I use mapirule.dll like this way:http://msdn.microsoft.com/en-us/library/aa446561.aspx[^] I get a error "Could not find P/Invoke dll 'mapirule.dll' " Who can help me to resolve this problem? I'm sure the mapirule.dll is exist both the program's directory and ./Windows directory. Thanks very much.
:^):^):^):^):^):^):^):^):^):^):^):^) :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::^):^):^):^)▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):^):^):^):^):^):^):^):^):^):^):^)
Hi, unmanaged code DLLs are looked up through the PATH evironment variable, which holds a list of folders. So they all must reside in folders from that list. Furthermore if one such DLL calls for another one, the second one must be either in the same folder, or in a folder DOWN the list (not sure which it is). It is often a good idea to prefix ".;" to the PATH so the own folder is looked in first. Hope this helps. :)
Luc Pattyn [Forum Guidelines] [My Articles]
Voting for dummies? No thanks. X|
-
Hi, unmanaged code DLLs are looked up through the PATH evironment variable, which holds a list of folders. So they all must reside in folders from that list. Furthermore if one such DLL calls for another one, the second one must be either in the same folder, or in a folder DOWN the list (not sure which it is). It is often a good idea to prefix ".;" to the PATH so the own folder is looked in first. Hope this helps. :)
Luc Pattyn [Forum Guidelines] [My Articles]
Voting for dummies? No thanks. X|
Thanks.
:^):^):^):^):^):^):^):^):^):^):^):^) :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::^):^):^):^)▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):^):^):^):^):^):^):^):^):^):^):^)