Click here to Skip to main content
15,889,631 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: File writeing [modified] Pin
anwer_skk26-May-06 15:51
anwer_skk26-May-06 15:51 
QuestionDll C++ ==> Basic Pin
Russell'26-May-06 0:31
Russell'26-May-06 0:31 
AnswerRe: Dll C++ ==> Basic Pin
_AnsHUMAN_ 26-May-06 0:55
_AnsHUMAN_ 26-May-06 0:55 
GeneralRe: Dll C++ ==> Basic Pin
Russell'26-May-06 1:23
Russell'26-May-06 1:23 
AnswerRe: Dll C++ ==> Basic Pin
Eric Dahlvang26-May-06 4:39
Eric Dahlvang26-May-06 4:39 
QuestionProblem calling JavaScript from C++ [modified] Pin
alitokmen26-May-06 0:24
alitokmen26-May-06 0:24 
QuestionRe: Problem calling JavaScript from C++ [modified] Pin
Dennis Gourjii26-May-06 2:56
Dennis Gourjii26-May-06 2:56 
QuestionRe: Problem calling JavaScript from C++ [modified] Pin
alitokmen28-May-06 9:27
alitokmen28-May-06 9:27 
Hello, HAND

Thank you for your reply. Using AfxBeginThread instead of the CreateThread function doesn't unfortunately solve the problem... If you want to see the exact project, please look at http://temp.alishomepage.com/.RMI/JavaScript.zip

I think the issue is due to the fact that the one of those objects there (CHtmlView, presumably) is created in mono-thread mode and does not accept script calls from other threads. Even worse, if the host has Internet Explorer 5 installed (default Windows 2000 SP4 configuration) the script call makes the program crash! See http://support.microsoft.com/kb/318426

I'm starting to have a solution idea, thought: creating the entire HTML output using the IHtmlDocument2::write method and then calling JavaScript from there. It seems to work, but has a majot disadvantage: every JavaScript call adds at least one line to the source code!

Another idea would be JavaScript to "ping" the C++ at regular intervals and C++ to catch that and respond using a JavaScript call.

Thank you for your reply.

S. Ali Tokmen
http://ali.tokmen.com
AnswerRe: Problem calling JavaScript from C++ [modified] Pin
alitokmen3-Jun-06 2:35
alitokmen3-Jun-06 2:35 
QuestionClient /Server architchture Pin
zahid_ash26-May-06 0:08
zahid_ash26-May-06 0:08 
AnswerRe: Client /Server architchture Pin
Renjith Ramachandran26-May-06 1:54
Renjith Ramachandran26-May-06 1:54 
AnswerRe: Client /Server architchture Pin
valikac26-May-06 6:36
valikac26-May-06 6:36 
Questionhow to convert CString to const WCHAR * Pin
NoName II25-May-06 23:59
NoName II25-May-06 23:59 
AnswerRe: how to convert CString to const WCHAR * Pin
VinayCool26-May-06 0:24
VinayCool26-May-06 0:24 
AnswerRe: how to convert CString to const WCHAR * Pin
Nibu babu thomas26-May-06 0:25
Nibu babu thomas26-May-06 0:25 
AnswerRe: how to convert CString to const WCHAR * Pin
Hamid_RT26-May-06 0:30
Hamid_RT26-May-06 0:30 
AnswerRe: how to convert CString to const WCHAR * Pin
ThatsAlok26-May-06 1:07
ThatsAlok26-May-06 1:07 
QuestionQuestions on CFileFind and CreateDirectory Pin
David L.S.25-May-06 23:57
David L.S.25-May-06 23:57 
AnswerRe: Questions on CFileFind and CreateDirectory Pin
ThatsAlok26-May-06 0:34
ThatsAlok26-May-06 0:34 
QuestionRe: Questions on CFileFind and CreateDirectory Pin
David Crow26-May-06 2:49
David Crow26-May-06 2:49 
AnswerRe: Questions on CFileFind and CreateDirectory [modified] Pin
David L.S.26-May-06 15:45
David L.S.26-May-06 15:45 
QuestionDialogbars event mapping Pin
ilgale25-May-06 23:54
ilgale25-May-06 23:54 
GeneralRe: Dialogbars event mapping Pin
Dennis Gourjii26-May-06 3:00
Dennis Gourjii26-May-06 3:00 
QuestionInitiate windows authentication Pin
Peter Weyzen25-May-06 23:30
Peter Weyzen25-May-06 23:30 
AnswerRe: Initiate windows authentication Pin
_anil_25-May-06 23:59
_anil_25-May-06 23:59 

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.