I need to be able to call some .NET code from an old VB application.
Looking around on MSDN it looks like I should expose the .NET code as a COM
object and access the COM object from Visual Basic.
Does anyone have any experience of doing this? Is this the best strategy or
is there another way to do it?
Thanks
* "Neil Penn" <neil.penn@btinternet.com> scripsit:
> I need to be able to call some .NET code from an old VB application.
>
[quoted text clipped - 3 lines]
> Does anyone have any experience of doing this? Is this the best strategy or
> is there another way to do it?
There is no other way to do that. You will find a basic sample here:
<http://www.mvps.org/dotnet/dotnet/samples/codingtechnique/downloads/MyComLib.zip>

Signature
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet
Richard K Bethell - 16 Jan 2004 14:59 GMT
> * "Neil Penn" <neil.penn@btinternet.com> scripsit:
> > I need to be able to call some .NET code from an old VB application.
[quoted text clipped - 6 lines]
>
> There is no other way to do that. You will find a basic sample here:
<http://www.mvps.org/dotnet/dotnet/samples/codingtechnique/downloads/MyComLi
b.zip>
Actually there is one other way. You can make the .NET code a SOAP
webservice, and consume it in VB6 using the SOAP Toolkit 3.0.
http://msdn.microsoft.com/library/default.asp?URL=/downloads/list/websrv.asp
Richard