Unmanaged DLL's

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to access an unmanaged DLL but I dont know too much about it, Im not
even sure its a COM-object. How can I find out?

Bevo
 
Try running from the command line: regsvr32 <dll path name>. (regsvr32.exe
should be in c:\windows\system32)

If the dll is a COM server you should get a success message box.
 
The DllImport is for Non-com dll, if it's a com dll, you just need add a
reference from visual studio, and then declare the object, all its
methods, it should be good to go..

HTH.
Jianwei
Registration went fine, thanks. Now I need to get to its methods from my C#
code, can I just go ahead and do:

[DllImport("DLLname.dll")]
public static extern string METHODNAME(String h, String s);

and expect it to work?

Bevo



Clive Dixon said:
Try running from the command line: regsvr32 <dll path name>. (regsvr32.exe
should be in c:\windows\system32)

If the dll is a COM server you should get a success message box.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top