C++ constructors with parameters using in Visual Basic?

  • Thread starter Thread starter msnews.microsoft.com
  • Start date Start date
M

msnews.microsoft.com

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?
 
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
 
Mattias said:
Which version of VB?


Mattias

2003 but I got it to work. Apparently .Net classes do allow for
constructors in VB.


But thank you for answering.
 
I want to be able to use the resulting .NET DLL in Visual Basic. But
For future reference, you should ask this in
microsoft.public.dotnet.languages.vb

--

Kind regards,
Bruno van Dooren
(e-mail address removed)
Remove only "_nos_pam"
 
Back
Top