Click here to Skip to main content
15,565,751 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCopyright sign © in about box Pin
Geert Delmeiren2-Dec-02 21:28
Geert Delmeiren2-Dec-02 21:28 
GeneralRe: Copyright sign © in about box Pin
Rickard Andersson202-Dec-02 22:35
Rickard Andersson202-Dec-02 22:35 
GeneralRe: Copyright sign © in about box Pin
Geert Delmeiren3-Dec-02 0:09
Geert Delmeiren3-Dec-02 0:09 
GeneralRe: Copyright sign © in about box Pin
Anonymous3-Dec-02 3:49
Anonymous3-Dec-02 3:49 
GeneralRe: Copyright sign © in about box Pin
Geert Delmeiren3-Dec-02 21:24
Geert Delmeiren3-Dec-02 21:24 
GeneralDialogBase Program with no TaskBar Button. Pin
Behzad Ebrahimi2-Dec-02 21:07
Behzad Ebrahimi2-Dec-02 21:07 
GeneralRe: DialogBase Program with no TaskBar Button. Pin
Kannan Kalyanaraman2-Dec-02 21:15
Kannan Kalyanaraman2-Dec-02 21:15 
Generalcannot execute script using IHTMLWindow2 Pin
yourbuddy772-Dec-02 18:23
yourbuddy772-Dec-02 18: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 18:11
vijayaramaraju2-Dec-02 18:11 
GeneralOLE Containers Pin
vijayaramaraju2-Dec-02 18:10
vijayaramaraju2-Dec-02 18:10 
GeneralCombo Box drop-down list problem Pin
IGx892-Dec-02 15:49
IGx892-Dec-02 15:49 
GeneralRe: Combo Box drop-down list problem Pin
Kannan Kalyanaraman2-Dec-02 21:11
Kannan Kalyanaraman2-Dec-02 21:11 
GeneralRe: Combo Box drop-down list problem Pin
IGx893-Dec-02 5:21
IGx893-Dec-02 5:21 
GeneralRe: Combo Box drop-down list problem Pin
IGx893-Dec-02 6:36
IGx893-Dec-02 6:36 
GeneralDirectX Texture Pixel Pin
Dov Sherman2-Dec-02 15:33
Dov Sherman2-Dec-02 15:33 
GeneralSHGetSpecialFolderPath problem in Win98 Pin
IGx892-Dec-02 14:25
IGx892-Dec-02 14:25 
GeneralRe: SHGetSpecialFolderPath problem in Win98 Pin
Thomas Freudenberg2-Dec-02 14:41
Thomas Freudenberg2-Dec-02 14:41 
GeneralRe: SHGetSpecialFolderPath problem in Win98 Pin
James R. Twine2-Dec-02 14:48
James R. Twine2-Dec-02 14:48 
GeneralRe: SHGetSpecialFolderPath problem in Win98 Pin
IGx892-Dec-02 15:38
IGx892-Dec-02 15:38 
Generalhelp: menu command programming. Pin
trustno12-Dec-02 13:51
trustno12-Dec-02 13:51 
GeneralRe: help: menu command programming. Pin
Kannan Kalyanaraman2-Dec-02 21:26
Kannan Kalyanaraman2-Dec-02 21:26 
GeneralRe: help: menu command programming. Pin
trustno13-Dec-02 9:04
trustno13-Dec-02 9:04 
GeneralRe: help: menu command programming. Pin
jhwurmbach3-Dec-02 22:03
jhwurmbach3-Dec-02 22:03 
GeneralFile association Pin
act_x2-Dec-02 12:52
act_x2-Dec-02 12:52 
GeneralRe: File association Pin
Selevercin2-Dec-02 13:08
Selevercin2-Dec-02 13: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.