C++ constructors with parameters using in Visual Basic?

  • Thread starter msnews.microsoft.com
  • 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?
 
M

Mattias Sjögren

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
 
M

msnews.microsoft.com

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.
 
B

Bruno van Dooren [MVP VC++]

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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top