I am trying to emulate a OCX control.
One of the method calls into the OCX control is
void CWiseIPTransport::SetConfigurationSetName(LPCTSTR lpszNewValue)
static BYTE parms =
InvokeHelper(0x8, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
I am trying to write the corresponding method in the OCX control using the class wizard and the above method is the only peice of code that i have for reference.
I am currently getting a "type mismatch" error for the data type used to represent lpszNewValue.
The following data type paramters have been used by me on a trial and error basis but every time i get the same " type mismatch " error.
LPCTSTR and BSTR*
The function call is used to access the OCX control is defined like this
_xptOcx->SetConfigurationSetName( cfgName );
where cfgName is of type CString.
Can anyone tell me the data type that i should use to represent the lpszNewValue.