From: Shakti on
Hi All,
I am using VC++ 6 for this purpose.
Shakti wrote:
> Hi all,
> I am using CWebBrowser to embedd a brouser in my MFC code. I am
> Embedding and displaying pic files and other documents on this page.
> But when i go for using CWebBrowser2::ExecWB with ExecWB(OLECMDID_SAVE,
> OLECMDEXECOPT_DODEFAULT, NULL, NULL); Its not saving the image file.
> But it works fine with other document. The image file gets corrupted
> with this. But saveas works. The image file contains the following
> after that
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html;
> charset=windows-1252"></HEAD>
> <BODY><IMG src="file://C:\ImageFolder\test.jpg"></BODY></HTML>
> I am giving the WebEx is implemented like following
>
> void CWebBrowser2::ExecWB(long cmdID, long cmdexecopt, VARIANT* pvaIn,
> VARIANT* pvaOut)
> {
> static BYTE parms[] =
> VTS_I4 VTS_I4 VTS_PVARIANT VTS_PVARIANT;
> InvokeHelper(0x1f6, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
> cmdID, cmdexecopt, pvaIn, pvaOut);
> }
>
> Please help me. Is there any issue with InvokeHelper?
> Thanks and regards
> Shakti