here is one sample to convert LabVIEW string to char*
inline char* GetCharAlloc(LStrHandle LVStrH){
char* lpszRet=NULL;
lpszRet = (char*)malloc(LStrLen(*LVStrH)+1); //len + NULL char
memcpy(lpszRet, LStrBuf(*LVStrH), LStrLen(*LVStrH));
lpszRet[LStrLen(*LVStrH)]=0;
return lpszRet;
}
NOTE: Calling code is resonsible for freeing the memory for char* when done using.
Hope this helps.
A Rafiq