class __declspec(dllimport) CSampleSelect oSampleSelect; CString s1( _HandToPtr(parm->p[0].val.ev_handle)); CString s2( _HandToPtr(parm->p[1].val.ev_handle)); CString s3( _HandToPtr(parm->p[2].val.ev_handle)); nTest = oSampleSelect.MainSampleSelect(s1,s2,s3);You might need to convert the string to Unicode before calling the FLL, though, using STRCONV().