Click here to Skip to main content
15,885,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCopyright sign © in about box Pin
Geert Delmeiren2-Dec-02 20:28
Geert Delmeiren2-Dec-02 20:28 
GeneralRe: Copyright sign © in about box Pin
Rickard Andersson202-Dec-02 21:35
Rickard Andersson202-Dec-02 21:35 
GeneralRe: Copyright sign © in about box Pin
Geert Delmeiren2-Dec-02 23:09
Geert Delmeiren2-Dec-02 23:09 
GeneralRe: Copyright sign © in about box Pin
Anonymous3-Dec-02 2:49
Anonymous3-Dec-02 2:49 
GeneralRe: Copyright sign © in about box Pin
Geert Delmeiren3-Dec-02 20:24
Geert Delmeiren3-Dec-02 20:24 
GeneralDialogBase Program with no TaskBar Button. Pin
Behzad Ebrahimi2-Dec-02 20:07
Behzad Ebrahimi2-Dec-02 20:07 
GeneralRe: DialogBase Program with no TaskBar Button. Pin
Kannan Kalyanaraman2-Dec-02 20:15
Kannan Kalyanaraman2-Dec-02 20:15 
Generalcannot execute script using IHTMLWindow2 Pin
yourbuddy772-Dec-02 17:23
yourbuddy772-Dec-02 17:23 
Confused | :confused:

hi,

I'm not able to execute script using IHtmlWindow2 as execScript function fails..for e.g thr following code returns failed..

BSTR bstrCode = ::SysAllocString(L"MsgBox \"Hello there\"");
BSTR bstrLanguage = ::SysAllocString(L"vbscript");

VARIANT var;
VariantInit(&var);
hr = pWindow->execScript(bstrCode, bstrLanguage, &var);
if(SUCCEEDED(hr))
AfxMessageBox("success!!");
else
AfxMessageBox("failed !!");

Can anyone Help me with this?The IHTMLWindow2 is successfully created and its other functions like pWindow->alert(.. work correctly in this same code.
thanx in advance,
viraj
GeneralOLE Containers Pin
vijayaramaraju2-Dec-02 17:11
vijayaramaraju2-Dec-02 17:11 
GeneralOLE Containers Pin
vijayaramaraju2-Dec-02 17:10
vijayaramaraju2-Dec-02 17:10 
GeneralCombo Box drop-down list problem Pin
IGx892-Dec-02 14:49
IGx892-Dec-02 14:49 
GeneralRe: Combo Box drop-down list problem Pin
Kannan Kalyanaraman2-Dec-02 20:11
Kannan Kalyanaraman2-Dec-02 20:11 
GeneralRe: Combo Box drop-down list problem Pin
IGx893-Dec-02 4:21
IGx893-Dec-02 4:21 
GeneralRe: Combo Box drop-down list problem Pin
IGx893-Dec-02 5:36
IGx893-Dec-02 5:36 
GeneralDirectX Texture Pixel Pin
Dov Sherman2-Dec-02 14:33
Dov Sherman2-Dec-02 14:33 
GeneralSHGetSpecialFolderPath problem in Win98 Pin
IGx892-Dec-02 13:25
IGx892-Dec-02 13:25 
GeneralRe: SHGetSpecialFolderPath problem in Win98 Pin
Thomas Freudenberg2-Dec-02 13:41
Thomas Freudenberg2-Dec-02 13:41 
GeneralRe: SHGetSpecialFolderPath problem in Win98 Pin
James R. Twine2-Dec-02 13:48
James R. Twine2-Dec-02 13:48 
GeneralRe: SHGetSpecialFolderPath problem in Win98 Pin
IGx892-Dec-02 14:38
IGx892-Dec-02 14:38 
Generalhelp: menu command programming. Pin
trustno12-Dec-02 12:51
trustno12-Dec-02 12:51 
GeneralRe: help: menu command programming. Pin
Kannan Kalyanaraman2-Dec-02 20:26
Kannan Kalyanaraman2-Dec-02 20:26 
GeneralRe: help: menu command programming. Pin
trustno13-Dec-02 8:04
trustno13-Dec-02 8:04 
GeneralRe: help: menu command programming. Pin
jhwurmbach3-Dec-02 21:03
jhwurmbach3-Dec-02 21:03 
GeneralFile association Pin
act_x2-Dec-02 11:52
act_x2-Dec-02 11:52 
GeneralRe: File association Pin
Selevercin2-Dec-02 12:08
Selevercin2-Dec-02 12:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.