Re: Create a COM Object with C#?
From: Craig (WeeksAtSprynetDotCom)
Date: 02/23/05
- Next message: Astronomically Confused: "Re: why does StreamReader get stuck"
- Previous message: theinvisibleGhost: "Re: Timer Bug."
- In reply to: Mattias Sjögren: "Re: Create a COM Object with C#?"
- Next in thread: Mattias Sjögren: "Re: Create a COM Object with C#?"
- Reply: Mattias Sjögren: "Re: Create a COM Object with C#?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 23 Feb 2005 17:02:09 -0600
Thanks, that definitely got me going in the right direction. I am trying to
build the "COM Interop Part 2 Sample" from:
http://msdn.microsoft.com/library/en-us/csref/html/vcwlkcominteroppart2cservertutorial.asp
Actually, building it and registering it with regasm works fine. I can add
a reference to this COM server in the VB 6.0 IDE. From the VB Object
Browser I can see the PrintHi() method in the IManagedInterface class. But
this line of VB 6.0 code:
Set myObj = New CSharpServer.InterfaceImplementation
gets this error message during the VB compile:
"Run-time error 80070002. File or assembly name CSharpServer, or one of
its dependencies was not found."
Surely I am almost there. What's the last step?
Craig
"Mattias Sjögren" <mattias.dont.want.spam@mvps.org> wrote in message
news:%23G9maXeGFHA.2412@TK2MSFTNGP14.phx.gbl...
>
> >In fact, I cannot see any methods or properties. What am I missing here?
>
> See if this helps: http://www.dotnetinterop.com/faq/?q=ClassInterface
>
>
>
> Mattias
>
> --
> Mattias Sjögren [MVP] mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.
- Next message: Astronomically Confused: "Re: why does StreamReader get stuck"
- Previous message: theinvisibleGhost: "Re: Timer Bug."
- In reply to: Mattias Sjögren: "Re: Create a COM Object with C#?"
- Next in thread: Mattias Sjögren: "Re: Create a COM Object with C#?"
- Reply: Mattias Sjögren: "Re: Create a COM Object with C#?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|