How to register COM Dlls in C#

K

Kondapanaidu

Hi,

I am using C#.NET1.1,

How to register COM Dlls in C#.NET through coding.

One way for this is P-Invoke but I am not sure whether its correct or
not and also I am not sure how to use this one.

Any body have idea please give the Inputs.

Thanks in advance.

regards
Kondapanaidu
 
O

Oleg Subachev

If you need to use COM-object from C#, then simply Add Reference
to the COM-server library to your project.
 
N

Nicholas Paldino [.NET/C# MVP]

Kondapanaidu,

You can call the RegisterTypeLib API function through the P/Invoke layer
to register a COM dll.

Hope this helps.
 
K

Kondapanaidu

Hi,
Nicholas Paldino

Can you send the corresponding code for this Dll registry.
Its a lots of help for me.


Thanks
Kondapanaidu
 

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

Top