Jump to content

walter

Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Everything posted by walter

  1. That's exactly what I cannot do, because the .DLL is made from a supplier and I do not have an access to the source code. Should I change the supplier?
  2. I got a new problem with a .DLL The Pototype in the .h-file is like this: ...cut...#ifdef CPP_CALLEXPORT int FKTNPREFIX _getUser( char* station, // in char*& userName, // out int& ErrorCode, char*& ErrorString);#elseint FKTNPREFIX _getUser_c( char* station, /* in */ char** userName, /* out */ int* ErrorCode, char** ErrorString);#endif...cut...In the running .CPP the function call is like this:...cut.... printf("calling _getUser()\n"); char station[80]; char* userName; ErrorString = (char *)calloc(280, sizeof( char )); userName = (char *)calloc(180, sizeof( char )); printf("station: "); scanf("%s", station); ret = _getUser( stationNr, /* in */ userName, /* out */ ErrorCode, ErrorString); printf("return Value <%d>\n", ret); if(ret >= 0) { printf("userName <%s>\n", userName); } printf("ErrorCode <%d>\n", ErrorCode); printf("ErrorString <%s>\n", ErrorString); free(userName); free(ErrorString);...cut... How do I handle this calloc and free statement when calling the .DLL from LabView?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.