Hi,
I am writing a LabView application that communicates with the network via a dll. One of the dll function has an array of struct as the parameter. The struct members are a combination of char pointers and integers. I created an array of cluster with strings and integers.. which doesn't work because the dll is expecting char pointer and not LStrHandle.
How can I convert this LStrHandle to Char Pointer??? Please see the code for DLL and Call Library File below for data type details BELOW.
Please, please help.
Thanks,
Mim
DLL Function Format:
typedef struct {
TCHAR PatientName [26] ;
TCHAR PatientID [20] ;
TCHAR BedLabel [20];
TCHAR CareUnit [20];
TCHAR FileName [20];
TCHAR IPAddress [20];
TCHAR MulticastIP [20];
TCHAR DeviceType [20];
WV_OPERATING_MODE DeviceStatus ;
WV_CONNECT_ID ConnectID ; // 0 if not connected
} WV_BED_DESCRIPTION ;
typedef struct {
WV_BED_DESCRIPTION WvBeds[256] ;
} WV_BED_LIST ;
C File Created by CALL LIBRARY FUNCTION:
/* Typedefs */
typedef struct {
LStrHandle PatientName;
LStrHandle PatientID;
LStrHandle BedLabel;
LStrHandle CareUnit;
LStrHandle FileName;
LStrHandle IPAddress;
LStrHandle MulticastIP;
LStrHandle DeviceType;
int32 DeviceStatus;
int32 ConnectID;
} TD2;
typedef struct {
int32 dimSize;
TD2 elt[1];
} TD1;
typedef TD1 **TD1Hdl;
long WvListBeds(char ServerName[], char UserName[], char Password[],
TD1Hdl *BedList, long *NumberOfBeds);
long WvListBeds(char ServerName[], char UserName[], char Password[],
TD1Hdl *BedList, long *NumberOfBeds)
{
/* Insert Code Here */
}