Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2006

Tip: Looking for answers? Try searching our database.

C++ constructors  with parameters using in Visual Basic?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
msnews.microsoft.com - 19 Nov 2006 15:25 GMT
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

Mattias Sjögren - 19 Nov 2006 23:08 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?

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"


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.