how to connect VB to C programming - Programmers Heaven

Howdy, Stranger!

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

Categories

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.