VisualC# 2005 Express: Class Library Is it a COM obj or Managed code

I

ITrishGuru

Hi All,
I am writing an IDTExtensibility2 interface as a class library so that
I can use it as an Add-in for Outlook 2003.

I have the IDTE2 interface building perfect and it creates a .dll for
me.

How do I turn this into a COM object so I can install it as an Add-in
for Outlook.

I have tried using tlbimp tlbexp and regasm but I'm not understanding
what I'm doing fully.

Is the compiled IDTE2 dll an Assemblie or just an ordinary library
dll.

Is there some one who can explain this to me please?
I was looking at some book titles on amazon, is Professional Outlook
2007 Programming by Ken Slovak ISBN: 978-0-470-04994-5, a good book?

Also am I using the correct tools, I'm limited to Visualc# 2005
express should I ask my lecturer to get the pro version of vc#
 
W

Willy Denoyette [MVP]

ITrishGuru said:
Hi All,
I am writing an IDTExtensibility2 interface as a class library so that
I can use it as an Add-in for Outlook 2003.

I have the IDTE2 interface building perfect and it creates a .dll for
me.

How do I turn this into a COM object so I can install it as an Add-in
for Outlook.

I have tried using tlbimp tlbexp and regasm but I'm not understanding
what I'm doing fully.

Is the compiled IDTE2 dll an Assemblie or just an ordinary library
dll.

The assembly is just ... an assembly, regasm or tlbexp doesn't change the
code in the assembly, it only creates a typlelib to be used by the COM
client, regasm goes one step further, in that he creates the entries in the
COM catalog (registry) necessary for COM to be able to load the COM server
and your assembly into the client (here Outlook).

All you this and a lot more is explained in the MSDN docs, search for COM
Interop.

Willy.
 

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