Click here to Skip to main content
15,893,904 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

Hello friends, I have a DLL called KETComm. I m using that dll in my c# application using DLLImport method. I want to create the instance of that dll. How:::plz

Posted

1 solution

I am working on the assumption that you are trying to create an object from the DLL.

If the DLL uses COM, you could try just adding a refence to the DLL instead of using DLLImport, and Visual Studio should load things up and put them in to a namespace for you.  Otherwise, you will need to implement the relevant interfaces, then find a function (which you import using DLLImport) to create the object.

 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900