Dll in C and call from VB

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • karthickbabu
    New Member
    • Sep 2007
    • 33

    Dll in C and call from VB

    Hi all


    I create a dll file in c and call from vb. I was working with integers its working properly. I need in that dll the functions get passing agruments is two string and return the concatinated strings using pointers


    i wrote like these,

    char * _stdcall StringPassed(ch ar *a,char *b,char *c)
    {

    strcpy(c,a);
    strcat(c,b);
    return *c;
    }


    get two strings in a and b and return the concatinated string in C.



    kindly any one reply favourable
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Your strings probably need to be passed as VARIANT.

    Comment

    Working...