Registering COM with .NET

N

Nadav

Hi,

I Wonder... How can I manually generate the wrapper DLL generated when
importing a .COM Object at a C# project? doing so will enable me to sign the
wrapper DLL and to put it in the Gac.

Nadav.
 
P

Patrick Philippot

Nadav said:
I Wonder... How can I manually generate the wrapper DLL generated when
importing a .COM Object at a C# project? doing so will enable me to
sign the wrapper DLL and to put it in the Gac.

Use TLBIMP. details in "Generating Primary Interop Assemblies" in the
MSDN.

tlbimp tlbfile /primary /keyfile:filename /out:assemblyname
 
P

Pete Davis

In your project properties there's an option specifically for adding a key
file to wrap COM and ActiveX objects. Simply right click on the project and
select properties.

Pete
 
S

Sam Gentile [MVP - C#/.NET]

As the others said use TLBIMP. If you want even more details I just wrote an
article for MSDN that went up this weekend all on the command line tools
for Interop like TLBIMP at

http://msdn.microsoft.com/netframew...brary/en-us/dndotnet/html/useframewktools.asp

You may also be interested in the first article in the COM Interop series
that explains the why
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/bridge.asp
--
--------------------------------------------------------------
Sam Gentile [C#/.NET MVP]
..NET Blog http://samgentile.com/blog/
MSDN Column:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/bridge.asp
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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