How to Create Object of a COM

  • Thread starter Thread starter Tom Dacon
  • Start date Start date
I would use the newer mail components in .NET, instead of working with
Interop. This should solve your problem.

If you have to use MAPI, did you create a reference to the COM component in
your project?

NOTE: There is an open source project ExtdSmtp at www.sourceforge.com that
you can download and compile (C#) that is a fairly nice SMTP component. I
realize SMTP and MAPI are two different things, but I took a chance that
sending mail was the primary need.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge

****************************************************************************
****
Think Outside the Box!
****************************************************************************
****
 
Hi!

Use the TLBIMP.EXE utility to create a .NET assembly for the MAPI Component
and make your .NET application have a reference to this assembly, using its
classes to work with MAPI.

Regards,
Kumar Gaurav Khanna

--
----------------------------------------------------------------------------
----------
Microsoft MVP - .NET, MCSE Windows 2000/NT4, MCP+I
WinToolZone - Spelunking Microsoft Technologies
http://www.wintoolzone.com/
OpSupport - Spelunking Rotor
http://opsupport.sscli.net/
 
Add reference to the COM dll? This will let you use the COM objects as if
they were .NET objects. HTH. You might also want to set your clock right.
A Joshi
 
Hello
I have successfuly created the object of the com componet MAPI in the vb6
but in Vb.NEt it give me error to create it object
what is this matter
thanks
 
Hi

From the Project Refernces Select the COM Components Tab
and browse for the COM component you would like to use
in .NET App . VS.NET automatically creates the Runtime
Callable Wrapper that is required for the CLR to invoke
the COM component.

-Gopi
 
Back
Top