Does anyone know how to convert from CString to short ( integer )?
Also, I have to pass a BSTR string from VC dll to VB. Does any know the syntax?
extern "C" BSTR __stdcall GetVitalSign (int iteration)
VS = vitalSigns.GetAt ( iteration );
CString code = ChangeDoubleToString(VS.code);
CString info = VS.name + "," + code;
LPCTSTR txt = _T (info);
int iLen = _tcslen(txt);
return SysAllocStringLen(txt, iLen);
return SysAllocStringByteLen (txt, iLen );
Does this function work? or I have to pass by reference?