VS.NET Professional comes with a Win32 C++ compiler so you could quite easily create a thin Win32 wrapper DLL with the '_stdcall calling convention' that consumes your .NET assembly. Under the VS.NET C++ project types (from the File->New->Project menu) you need to select either a 'MFC DLL' ( if you are going to use some of the MFC classes) or the 'Win32 project' option (if you are going to use the Windows API directly).

You would then need to use either the tlbexp to generate a type library from the metadata in a library assembly or the regasm tool that will register a library assembly as if it is a COM server (regasm can also be used to create a type library). Once you have registered the DLL you can use normal COM techniques (from your Win32 VC++ code) to access the object and .NET will create a special wrapper COM object to make the .NET object look like a COM object.

Hope this gets you started.

Cheers,

Dave

David P. Langley
Director of Programming Services

Mapping Solutions, LLC
4660 S. Hagadorn Rd.
Suite 120
East Lansing, MI 48823
USA

Voice: (+1) 517-332-7735
Cell:  (+1) 517-402-3238
Fax:   (+1) 517-332-1329

Email: [EMAIL PROTECTED]
SMS:  5174023238 (@tmomail.net)

Visit our website: www.mappingsolutions.com

*** Need inexpensive GDT and NavTech street-level data for North America and Europe? Check out Map-In-A-Box v2.1 at http://www.mapinabox.com ***


--------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 13482



Reply via email to