Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / December 2004

Tip: Looking for answers? Try searching our database.

Accessing COM objects developed in C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew S. Giles - 07 Dec 2004 15:53 GMT
I have written a bit of C# code that I wish to have access to from some
unmanaged C++ code I am writing.  I have written a COM interface for the
classes and their methods, but I cannot manage to get access to them in the
C++ code.  I am doing something wrong, but I do not know what.

I have the C# COM objects broken down into a .tlb file.

Given this file, what do I need to do in C++ to gain access to the classes?

The class is called XXXPacket, and the interface is IXXXPacket.  The method
is Populate.

Any help would be appreciated.

thanks

Andrew S. Giles
Carl Daniel [VC++ MVP] - 07 Dec 2004 16:20 GMT
> I have written a bit of C# code that I wish to have access to from
> some unmanaged C++ code I am writing.  I have written a COM interface
[quoted text clipped - 11 lines]
>
> Any help would be appreciated.

See if

http://www.codeproject.com/dotnet/COM_DOTNET_INTEROP.asp

and

http://www.codeproject.com/dotnet/cominterop.asp

are of any help.

-cd

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.