-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Iamtheoneurwarnedabout
Message 1 in Discussion

Hi All gurus !!!   I have a C++ DLL, I want to call it in C#. Ofcourse, I have used as 
[DllImport("Spy.DLL")] in C#, also declared the function as a private member. Later I 
called that function in some event handler function. Over all it looks some thing 
similar to this:  
Fact: 
The below 2 lines I have decalred in the begining... 
[DllImport("Spy.DLL")] 
private static extern bool ShutDown(); 
Iam calling the function in some event.... 
bool bln = ShutDown(); 
Problem: 
When I ran the application, Iam getting an error saying that "Unable to load the DLL". 
Note: I also put the Dll in the working path of my C# application. 
  
Can anyone please suggest me how to load the DLL in C#. I tried using LoadLibrary(), 
but no use.  
I will be greatful to you if u can help me out of this.. 
Cheers, 
Arshad

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to