Re: ExecWB and VARIANT
- From: "AliR \(VC++ MVP\)" <AliR@xxxxxxxxxxxxx>
- Date: Thu, 13 Dec 2007 22:09:17 GMT
Actually you don't really have to pass anything in as the 3rd parameter, you
can simply pass NULL, because the SaveAs dialog will come up anyway. If you
specify a filename in the third param, it will show up in the save as
dialogs filename edit.
AliR.
"AliR (VC++ MVP)" <AliR@xxxxxxxxxxxxx> wrote in message
news:aWh8j.53175$eY.10113@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Oops, typo detected! ;)
COleVariant Filename(_T("c:\\Temp.html"));
ExecWB(OLECMDID_SAVEAS,OLECMDEXECOPT_DODEFAULT,Filename,NULL);
AliR.
"AliR (VC++ MVP)" <AliR@xxxxxxxxxxxxx> wrote in message
news:tUh8j.53174$eY.31660@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
How about this:
COleVariant Filename(_T("c:\Temp.html"));
ExecWB(OLECMDID_SAVEAS,OLECMDEXECOPT_DODEFAULT,Filename,NULL);
AliR.
"RAN" <nijenhuis@xxxxxxx> wrote in message
news:0d41348b-658b-470c-9193-b166fb9c8b6e@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
In want to use the ExecWB method of the webbrowser activeX control
from microsoft.
void CWebBrowser2::ExecWB(long cmdID, long cmdexecopt, VARIANT* pvaIn,
VARIANT* pvaOut)
I want to SaveAs a webpage using the cmdID = IDM_SAVEAS.
I don't know how to initialise the VARIANT* pvaIn variable to store
the pathname of the file to save the webpage. It is a VT_BSTR and
pbstrVal must be initialised, but i dont know how to initialise a
VARIANT*.
Please help.
.
- References:
- ExecWB and VARIANT
- From: RAN
- Re: ExecWB and VARIANT
- From: AliR \(VC++ MVP\)
- Re: ExecWB and VARIANT
- From: AliR \(VC++ MVP\)
- ExecWB and VARIANT
- Prev by Date: Re: ExecWB and VARIANT
- Next by Date: Re: ExecWB and VARIANT
- Previous by thread: Re: ExecWB and VARIANT
- Next by thread: Re: ExecWB and VARIANT
- Index(es):
Relevant Pages
|