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.
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.