Howdy, Stranger!

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

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

how to connect VB to C programming

i have problem in connecting VB to C programming source code. hope somebody can help me...

Comments

  • JonathanJonathan Posts: 2,914Member
    : i have problem in connecting VB to C programming source code. hope somebody can help me...
    :
    If you want to call C source from VB, it's not too bad.
    1) Arrange your C source code so it can be built as a DLL.
    2) Mark any functions that should be callable from VB with
    __declspec(dllexport) before their name.
    3) Declare the function in VB just as you'd declare any other API call.

    The other way round, probably ain't happening. Certainly not this easily anyway.

    Jonathan

    ###
    for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
    (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
    /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

  • leichin2307leichin2307 Posts: 18Member
    i not so understand about the code "__declspec(dllexport)". and can u recommand any website that describe more details on it? it was because i am a VB beginner and have little knowledge on it only....thanks!!






    : : i have problem in connecting VB to C programming source code. hope somebody can help me...
    : :
    : If you want to call C source from VB, it's not too bad.
    : 1) Arrange your C source code so it can be built as a DLL.
    : 2) Mark any functions that should be callable from VB with
    : __declspec(dllexport) before their name.
    : 3) Declare the function in VB just as you'd declare any other API call.
    :
    : The other way round, probably ain't happening. Certainly not this easily anyway.
    :
    : Jonathan
    :
    : ###
    : for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
    : (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
    : /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");
    :
    :

Sign In or Register to comment.