LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hot to pass error in Dynamic link library

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 

0 Kudos
Message 1 of 2
(2,666 Views)
What error? How have you configured the Call Library Function Node?
0 Kudos
Message 2 of 2
(2,650 Views)