I have a constructor with parameters.
__gc public class GpsUsbDevice : public GpsDevice
{
public:
GpsUsbDevice(String* DeviceName)
{
}
}
I want to be able to use the resulting .NET DLL in Visual Basic. But
Visual Basic does not allow Dim New with parameters does it? Is there
anyway to do this? If so how?

Signature
Bruce E. Stemplewski
GarXface OCX and C++ Class Library for the Garmin GPS
www.stempsoft.com
>I want to be able to use the resulting .NET DLL in Visual Basic. But
>Visual Basic does not allow Dim New with parameters does it? Is there
>anyway to do this? If so how?
Which version of VB?
Mattias

Signature
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
msnews.microsoft.com - 20 Nov 2006 00:48 GMT
>> I want to be able to use the resulting .NET DLL in Visual Basic. But
>> Visual Basic does not allow Dim New with parameters does it? Is there
[quoted text clipped - 3 lines]
>
> Mattias
2003 but I got it to work. Apparently .Net classes do allow for
constructors in VB.
But thank you for answering.
Bruno van Dooren [MVP VC++] - 20 Nov 2006 07:37 GMT
>>> I want to be able to use the resulting .NET DLL in Visual Basic. But
>>> Visual Basic does not allow Dim New with parameters does it? Is there
>>> anyway to do this? If so how?
For future reference, you should ask this in
microsoft.public.dotnet.languages.vb

Signature
Kind regards,
Bruno van Dooren
bruno_nos_pam_van_dooren@hotmail.com
Remove only "_nos_pam"