Click here to Skip to main content
15,919,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Do we need dll Files for running EXE File Pin
Naveen24-May-06 21:43
Naveen24-May-06 21:43 
AnswerRe: Do we need dll Files for running EXE File Pin
Nibu babu thomas24-May-06 21:46
Nibu babu thomas24-May-06 21:46 
AnswerRe: Do we need dll Files for running EXE File Pin
Hamid_RT24-May-06 21:52
Hamid_RT24-May-06 21:52 
GeneralRe: Do we need dll Files for running EXE File Pin
k.n.ruban25-May-06 1:30
k.n.ruban25-May-06 1:30 
GeneralRe: Do we need dll Files for running EXE File Pin
Hamid_RT25-May-06 3:50
Hamid_RT25-May-06 3:50 
AnswerRe: Do we need dll Files for running EXE File Pin
zahid_ash24-May-06 21:55
zahid_ash24-May-06 21:55 
GeneralRe: Do we need dll Files for running EXE File Pin
k.n.ruban25-May-06 1:33
k.n.ruban25-May-06 1:33 
QuestionProblem calling JavaScript from C++ Pin
alitokmen24-May-06 21:36
alitokmen24-May-06 21:36 
Hello, everyone.

I'm currently working on a project for which I need to update some UI elements based on networık messages...

For the UI, for simplicity, I've chosen to use DHTML and for now most things are working as expected... Except for one: JavaScript calls!

Actually, all examples where you use a UI button for a JavaScript call work; but when a call is done without any button being pressed, there's an error!

One other project actually does a JavaScript call when window loading is complete. To simulate my problem, I downloaded the project from http://www.codeproject.com/dialog/web_gui/Reusing_DHTML_example.zip and in Dlg4.cpp changed the last method into

<br />
DWORD WINAPI CallJScriptLater( LPVOID lpParam )<br />
{<br />
    CHtmlCtrl* a = (CHtmlCtrl*) lpParam;<br />
<br />
    Sleep(5000);<br />
<br />
    CStringArray strArray;<br />
<br />
    <br />
    strArray.Add("Picture@500");<br />
    strArray.Add("Video Clip@200");<br />
    strArray.Add("Some more@50");<br />
<br />
    // first element in array <br />
    // Name @ size @ free_space<br />
    strArray.Add("File Document@1708@201");<br />
<br />
    // Call Html Script, to set parameters <br />
    a->CallJScript2("SetParameters", strArray);<br />
<br />
    return 0;<br />
}<br />
<br />
void CDlg4::_onDocumentComplete(){<br />
<br />
    CHtmlDialog::_onDocumentComplete();<br />
<br />
    CreateThread( NULL, 0, CallJScriptLater, &m_HtmlCtrl, 0, NULL);<br />
}<br />


So, instead of calling the JavaScript directly it calls it five seconds later...

When you launch it, five seconds later, you receive an error message; and the JavaScript doesn't work!

Would anyone have an explanation and / or a fix for this problem?

Thank you

S. Ali Tokmen
http://ali.tokmen.com
QuestionRe: Problem calling JavaScript from C++ [modified] Pin
alitokmen25-May-06 6:13
alitokmen25-May-06 6:13 
QuestionCMenu Pin
Anu_Bala24-May-06 21:20
Anu_Bala24-May-06 21:20 
AnswerRe: CMenu Pin
Hamid_RT24-May-06 21:35
Hamid_RT24-May-06 21:35 
AnswerRe: CMenu Pin
Nibu babu thomas24-May-06 21:42
Nibu babu thomas24-May-06 21:42 
AnswerRe: CMenu Pin
Sarath C24-May-06 22:06
Sarath C24-May-06 22:06 
GeneralRe: CMenu Pin
Nibu babu thomas24-May-06 22:11
Nibu babu thomas24-May-06 22:11 
AnswerRe: CMenu Pin
NiceNaidu24-May-06 22:29
NiceNaidu24-May-06 22:29 
Questionpossible to link and run with .lib file without .dll file? Pin
George_George24-May-06 21:15
George_George24-May-06 21:15 
AnswerRe: possible to link and run with .lib file without .dll file? Pin
NiceNaidu24-May-06 21:40
NiceNaidu24-May-06 21:40 
QuestionCTreeCtrl: Index of and item from parent Pin
Sarath C24-May-06 21:02
Sarath C24-May-06 21:02 
AnswerRe: CTreeCtrl: Index of and item from parent Pin
Nibu babu thomas24-May-06 21:08
Nibu babu thomas24-May-06 21:08 
GeneralRe: CTreeCtrl: Index of and item from parent Pin
Sarath C24-May-06 21:14
Sarath C24-May-06 21:14 
GeneralRe: CTreeCtrl: Index of and item from parent Pin
Hamid_RT24-May-06 21:37
Hamid_RT24-May-06 21:37 
GeneralOT (Off Topic) Pin
Nibu babu thomas24-May-06 22:29
Nibu babu thomas24-May-06 22:29 
AnswerRe: CTreeCtrl: Index of and item from parent Pin
Steve Echols24-May-06 21:34
Steve Echols24-May-06 21:34 
QuestionHelp me??? How to transfer file(data) from Linux to Windows Pin
bulgaa24-May-06 20:41
bulgaa24-May-06 20:41 
AnswerRe: Help me??? How to transfer file(data) from Linux to Windows Pin
_AnsHUMAN_ 24-May-06 20:44
_AnsHUMAN_ 24-May-06 20:44 

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.