Re: Why does this execScript code work
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Fri, 23 Mar 2007 13:19:38 -0400
Angus <nospam@xxxxxxxxx> wrote:
CComBSTR type = L"javascript";
CComBSTR bstrScript = "myfunction";
CComVariant vRet;
hr=spWin2->execScript(bstrScript, type, &vRet);
When the spWin2->execScript function returns, hr is 0 and vRet is
VT_EMPTY (there is no return value from javascript function. But it
doesn't seem to work in that the javascript function doesn't seem to
be run. What am I doing wrong?
Surely the piece of script you want to execute is "myfunction()", not
just "myfunction".
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- References:
- Why does this execScript code work
- From: Angus
- Why does this execScript code work
- Prev by Date: Why does this execScript code work
- Next by Date: Navigation falters
- Previous by thread: Why does this execScript code work
- Next by thread: Navigation falters
- Index(es):
Relevant Pages
|
|