S
Sachin
Hi,
I am trying to save a file using the following code.
MessageBox("Saving file","",MB_OK);
_Module.m_pWebBrowser->get_Document(&pDisp);
spHTMLDocument2 = pDisp;
IPersistFile* pFile = NULL;
if(SUCCEEDED(spHTMLDocument2->QueryInterface(IID_IPersistFile,
(void **)&pFile)))
{
// Ashish
if ((pFile->Save(L"c:\\593\\eclipse\\workspace\\pardom\\partitionDom\\files\\news\\urlName.htm",
FALSE)) == E_FAIL)
{
MessageBox("Unable to Save File", "", MB_OK);
}
}
/********/
MessageBox("Saved file","",MB_OK);
int a;
pDisp.Release();
a = pFile->Release();
MessageBox("Handle Released", "", MB_OK);
CloseHandle(hProcess);
if(a == 0)
MessageBox("Zero References to file","",MB_OK);
This code is used by a program that works on a html page.
I want the page to be saved while the prog is running but the saving
process doesnt ends untill i close the prog as a whole i.e i close
down the Internet explorer on which the program is running.
Please help.
I am trying to save a file using the following code.
MessageBox("Saving file","",MB_OK);
_Module.m_pWebBrowser->get_Document(&pDisp);
spHTMLDocument2 = pDisp;
IPersistFile* pFile = NULL;
if(SUCCEEDED(spHTMLDocument2->QueryInterface(IID_IPersistFile,
(void **)&pFile)))
{
// Ashish
if ((pFile->Save(L"c:\\593\\eclipse\\workspace\\pardom\\partitionDom\\files\\news\\urlName.htm",
FALSE)) == E_FAIL)
{
MessageBox("Unable to Save File", "", MB_OK);
}
}
/********/
MessageBox("Saved file","",MB_OK);
int a;
pDisp.Release();
a = pFile->Release();
MessageBox("Handle Released", "", MB_OK);
CloseHandle(hProcess);
if(a == 0)
MessageBox("Zero References to file","",MB_OK);
This code is used by a program that works on a html page.
I want the page to be saved while the prog is running but the saving
process doesnt ends untill i close the prog as a whole i.e i close
down the Internet explorer on which the program is running.
Please help.