разобрался! для тех кому интересно:
| Код | #import <cdosys.dll> no_namespace raw_interfaces_only #import "c:\program files\common files\system\ado\msado15.dll" no_namespace raw_interfaces_only #include <CDOSysErr.h> #include <CDOSysStr.h>
.............................
CComPtr<IMessage> spMessage; spMessage.CoCreateInstance(__uuidof(Message));
CComPtr<IConfiguration> spConfig; spConfig.CoCreateInstance(__uuidof(Configuration));
spMessage->put_Configuration(spConfig); spMessage->CreateMHTMLBody(L"http://forum.vingrad.ru/forum/topic-185068.html", cdoSuppressNone, NULL, NULL);
CComPtr<_Stream> spStream; spMessage->GetStream(&spStream);
spStream->SaveToFile(L"C:\\test.mht", adSaveCreateOverWrite);
|
|