10-29-2009 02:49 AM
Hi...
I ma trying to write dll in C++ and calling them in Labview through Labview, below is the test programme to pass error,
#include "extcode.h"
typedef struct
{
char status;
int code;
unsigned char source[10];
} er;
_declspec(dllexport)unsigned long int error(er* error);
_declspec(dllexport)unsigned long int error(er* error)
{
error->status=TRUE;
error->code=10;
error->source ="Error";
return 1;
}
when i run this dll through labview i get error,please suggest way to do this,
Warm Regards
Orooj Ahmed
10-29-2009 09:32 AM