Unicode C
Unicode C
Save Web Page as .mht Web Archive
See more MHT / HTML Email Examples
Downloads a web page into a .mht web archive.Chilkat Unicode C Downloads
#include <C_CkMhtW.h>
void ChilkatSample(void)
{
BOOL success;
HCkMhtW mht;
success = FALSE;
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
mht = CkMhtW_Create();
success = CkMhtW_GetAndSaveMHT(mht,L"http://www.bonairefishing.com/",L"bonairefishing.mht");
if (success != TRUE) {
wprintf(L"%s\n",CkMhtW_lastErrorText(mht));
CkMhtW_Dispose(mht);
return;
}
else {
wprintf(L"MHT Created!\n");
}
CkMhtW_Dispose(mht);
}