I have a function that expects a short*
as an argument.
I would need to convert this to a VARIANT_BOOL*
.
Can anybody tell me a reliable way to do this?
I can even pass the VARIANT_BOOL*
to the function, but then the VARIANT_BOOL*
is not filled with the correct value.
Thank you very much for the help!
STDMETHODIMP CWrapper::get_IsOpen(VARIANT_BOOL* uIsOpen, LONG* pVal)
{
if (_c)
{
*pVal=_c->IsOpen(uIsOpen); //_c->IsOpen expects short* as argument
return S_OK;
}
else
{
return S_FALSE;
}
}