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 / .NET Framework / Interop / December 2004

Tip: Looking for answers? Try searching our database.

Cretating a COM object using .NET Interop

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Dolheguy - 11 Dec 2004 00:05 GMT
I am fairly new to COM, but have been using C# for quite a while.  What I am
looking at doing is to create a DCOM Server for a client which is already
written.

I have all the interfaces required, my question is how do I create these
within C#?

For example, I am required to implement the
IConnectionPointContainer::EnumConnectionPoints interface as follows:

HRESULT  EnumConnectionPoints(
                 IEnumConnectionPoints **ppEnum
);

Hows would this be done within C#?  I do realise that a CCW wrapper is
applied to the DLL after it is created.
Eric Carlson - 12 Dec 2004 06:25 GMT
Hope you have the .Net Framework SDK.  Here is the address of how to create a
.Net Com server:

ms-help://MS.NETFrameworkSDKv1.1/csref/html/vcwlkCOMInteropPart2CServerTutorial.htm

You can plug this into your browser or better, into address bar in .net sdk
doc browser.

Simply said, you need to create a c# interface with a Guid attribute, then
create a class that implements your interface, then register your assembly
(several options here).

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.