transfering Class between languages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • iwdu15

    transfering Class between languages

    hi, say i ahve a class i wrote in C++, how would i use it in my VB.net
    application? going along with it, say i ahve a VB.net class, how would i use
    it in my C++ project?
    thanks
    --
    -iwdu15
  • Herfried K. Wagner [MVP]

    #2
    Re: transfering Class between languages

    "iwdu15" <iwdu15@discuss ions.microsoft. com> schrieb:[color=blue]
    > hi, say i ahve a class i wrote in C++, how would i use it in my VB.net
    > application?[/color]

    Make it a COM class and set a reference to the DLL to use the class in your
    VB.NET project. Alternatively you can write a managed wrapper around the
    class using Managed Extensions for C++ or C++/CLI.
    [color=blue]
    > going along with it, say i ahve a VB.net class, how would i use
    > it in my C++ project?[/color]

    Either make the class a 'ComClass' (+ 'ComVisible' for its members) or use
    Managed Extensions for C++ to use the VB.NET class in C++.

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    • iwdu15

      #3
      Re: transfering Class between languages

      how would i do either of those suggestions?
      thanks

      Comment

      Working...