Results 1 to 7 of 7

Thread: Visual Basic, C++ question

  1. #1

    Thread Starter
    Addicted Member DigitalMyth's Avatar
    Join Date
    Nov 2002
    Location
    England..
    Posts
    169

    Visual Basic, C++ question

    Question 1


    Is there a way to call VB code from a C++ program?

    Question 2


    Is there a way to call C# code from inside C++ programs or the other way round?

  2. #2
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246
    1) Yes, by writing a DLL and using it like you would in any other language.

    2) Yes. Again, its the same thing. I think theres also add-ins that allow you to run C# (VB.NET/C++/OtherLanguages.NET) modules in any other .NET language. Try searching Google for CLR (common language runtime), and information about .NET language compatibility..

    Phreak

    Visual Studio 6, Visual Studio.NET 2005, MASM

  3. #3
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    But why would you? Normally it would be the C++ code that you would use in the VB/.NET program.

    Why go for a downgrade?
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  4. #4

    Thread Starter
    Addicted Member DigitalMyth's Avatar
    Join Date
    Nov 2002
    Location
    England..
    Posts
    169
    My Bud and I want to start a program to together;

    I know;

    C++ NET (Beginning)
    VB6 (Pretty Good)

    and he knows;

    C# NET ( Good )

    We want to know if we can program a program in C++ & C# together.

  5. #5
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152
    Why would you need to call a dll w/ vbcode in it if your program is c# / c++

    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

  6. #6
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    Originally posted by «°°phReAk°°»
    1) Yes, by writing a DLL and using it like you would in any other language....
    You may well be right and it certainly should be that way but I thought that C++ had problems using dlls created in VB.

  7. #7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width