R
Roger Chuang
I am writing C++ code using Redemption to export messages to RFC822 files.
hr = sItem->SaveAs(_bstr_t(OutputFile), Redemption:
lRFC822);
But the 2nd parameter, can't go through. How to use SaveAs or raw_SaveAs in VC++?
inline HRESULT IMessageItem::SaveAs ( _bstr_t Path, const _variant_t & Type ) {
HRESULT _hr = raw_SaveAs(Path, Type);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _ISafeItem::Import ( _bstr_t Path, long Type ) {
HRESULT _hr = raw_Import(Path, Type);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
hr = sItem->SaveAs(_bstr_t(OutputFile), Redemption:
But the 2nd parameter, can't go through. How to use SaveAs or raw_SaveAs in VC++?
inline HRESULT IMessageItem::SaveAs ( _bstr_t Path, const _variant_t & Type ) {
HRESULT _hr = raw_SaveAs(Path, Type);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT _ISafeItem::Import ( _bstr_t Path, long Type ) {
HRESULT _hr = raw_Import(Path, Type);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}