Red Gate forums :: View topic - DLLImport dosn't find my dll... why?
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
PInvoke.Net
PInvoke.Net forum

DLLImport dosn't find my dll... why?

Search in PInvoke.Net forum
Post new topic   Reply to topic
Jump to:  
Author Message
fabio_Mastria



Joined: 25 Oct 2007
Posts: 1

PostPosted: Thu Oct 25, 2007 9:59 am    Post subject: DLLImport dosn't find my dll... why? Reply with quote

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
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6674

PostPosted: Thu Oct 25, 2007 10:21 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Ryan_McNeil



Joined: 29 Oct 2007
Posts: 2

PostPosted: Mon Oct 29, 2007 4:42 pm    Post subject: Same issue Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic 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