Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

PLEASE SOMEONE ANSWER

hakilamhakilam Member Posts: 15
does anyone know how to link c++ and visual basic? i wrote a program in c++ and i did the user interface in vb and i don't know how to link them , also i have a program that does number conversions, between anyof the following bases binary, octal, decimal and hexadecimal also ieee numbers but somethinmg's not quite right. i'll appreciate any help. thanks

Comments

  • beirowerribeirowerri Member Posts: 109
    : does anyone know how to link c++ and visual basic? i wrote a program in c++ and i did the user interface in vb and i don't know how to link them , also i have a program that does number conversions, between anyof the following bases binary, octal, decimal and hexadecimal also ieee numbers but somethinmg's not quite right. i'll appreciate any help. thanks
    :

    You have to use the extern keyword.
    extern "language"
    {function prototypes}
  • hakilamhakilam Member Posts: 15
    : : does anyone know how to link c++ and visual basic? i wrote a program in c++ and i did the user interface in vb and i don't know how to link them , also i have a program that does number conversions, between anyof the following bases binary, octal, decimal and hexadecimal also ieee numbers but somethinmg's not quite right. i'll appreciate any help. thanks
    : :
    :
    : You have to use the extern keyword.
    : extern "language"
    : {function prototypes}
    :
    what language is that keyword in
  • beirowerribeirowerri Member Posts: 109
    : : : does anyone know how to link c++ and visual basic? i wrote a program in c++ and i did the user interface in vb and i don't know how to link them , also i have a program that does number conversions, between anyof the following bases binary, octal, decimal and hexadecimal also ieee numbers but somethinmg's not quite right. i'll appreciate any help. thanks
    : : :
    : :
    : : You have to use the extern keyword.
    : : extern "language"
    : : {function prototypes}
    : :
    : what language is that keyword in
    :
    C++ definitely, not sure about C.

  • hakilamhakilam Member Posts: 15
    : : : : does anyone know how to link c++ and visual basic? i wrote a program in c++ and i did the user interface in vb and i don't know how to link them , also i have a program that does number conversions, between anyof the following bases binary, octal, decimal and hexadecimal also ieee numbers but somethinmg's not quite right. i'll appreciate any help. thanks
    : : : :
    : : :
    : : : You have to use the extern keyword.
    : : : extern "language"
    : : : {function prototypes}
    : : :
    : : what language is that keyword in
    : :
    : C++ definitely, not sure about C.
    :
    : how do i use it, just include it?

  • beirowerribeirowerri Member Posts: 109
    Yes, here is an example:


    #include

    using namespace std;
    extern "C"
    { void function(int x);}
    int main()
    {
    int x=2;
    int b=3;
    function(x);
    return 0;
    }
    void function (int x)
    {
    cout<<x;
    }

  • Justin BibJustin Bib USAMember Posts: 0

    ___ \ http://forcoder.org \ free video tutorials and ebooks about // Visual Basic Ruby PHP Delphi Python Java Objective-C Swift PL/SQL Assembly C# Scratch JavaScript Perl R MATLAB Go Visual Basic .NET C++ C LabVIEW Scala Transact-SQL ML Lisp Julia Apex Logo Crystal Hack F# Lua Prolog Clojure VBScript Erlang COBOL FoxPro Bash Rust ABAP Fortran D SAS Ada Awk Alice Kotlin Scheme Dart // ________

Sign In or Register to comment.