| Author |
Message |
fabio_Mastria
Joined: 25 Oct 2007 Posts: 1
|
Posted: Thu Oct 25, 2007 9:59 am Post subject: DLLImport dosn't find my dll... why? |
|
|
Hi all
I have a dll wirtten by me. Where have to be positioned in order to be seen by DLLImport (I'm in C# .net 2.0)
The dll have to be registered? |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6369 Location: Red Gate Software
|
Posted: Thu Oct 25, 2007 10:21 am Post subject: |
|
|
Hi,
In my experience the dll needs to be in the %SYSTEMROOT%\System or System32 folders. It may also work in the dll is in one of the foilders listed in your %PATH% environment variable.
DllImport dlls do not require registration. That would more than likely be specific to COM dlls, and to use them from C# you would create an interop dll (tlbimport) rather than platform invoke. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
Ryan_McNeil
Joined: 29 Oct 2007 Posts: 2
|
Posted: Mon Oct 29, 2007 4:42 pm Post subject: Same issue |
|
|
Hi,
I have the same issue : it seems that the PInvoke.net Add-In cannot find my private dll. I have copied it in System32 that does appear in the PATH system variable.
Do you have an idea of what is wrong? Is it possible to to achieve this? Or maybe the prototypes are statically saved in the Add-in?
Thanks a lot for your help and your great tool! |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group