Click here to Skip to main content
15,905,682 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestiontNewbie - Switch Statement Pin
kenexcelon5-Oct-05 15:12
kenexcelon5-Oct-05 15:12 
AnswerRe: tNewbie - Switch Statement Pin
enjoycrack5-Oct-05 15:16
enjoycrack5-Oct-05 15:16 
AnswerRe: tNewbie - Switch Statement Pin
Shog95-Oct-05 15:24
sitebuilderShog95-Oct-05 15:24 
GeneralRe: tNewbie - Switch Statement Pin
Jose Lamas Rios5-Oct-05 18:14
Jose Lamas Rios5-Oct-05 18:14 
QuestionWriting Http msgs to LOG file Pin
aman20065-Oct-05 14:20
aman20065-Oct-05 14:20 
AnswerRe: Writing Http msgs to LOG file Pin
enjoycrack5-Oct-05 15:14
enjoycrack5-Oct-05 15:14 
GeneralRe: Writing Http msgs to LOG file Pin
aman20065-Oct-05 15:58
aman20065-Oct-05 15:58 
AnswerRe: Writing Http msgs to LOG file Pin
Jose Lamas Rios5-Oct-05 18:01
Jose Lamas Rios5-Oct-05 18:01 
Couldn't find CHttpSession neither in the documentation nor in the MFC include/source files. I only have VS2005 in this machine; maybe this class was in VC98 and was later removed from MFC? I'll check in a VC98 installation I have in another computer but that won't be until tomorrow.

Meanwhile, I'm guessing CHttpSession is/was a class derived from CInternetSession. Am I right? If so, check your MFC source files to see what use CHttpSession makes of the window you pass in SetStatusWnd. My guess is that the window is being used in CHttpSession's implementation of OnStatusCallback (i.e., constructing a message text based on the callback parameters and then simply calling SetWindowText on the window). You might create your own class derived from CHttpSession and override OnStatusCallback in such a way that the messages are written to a log file.

Other than that, you might also create a derived CWnd class to be used as the status window. You can make that window not visible (i.e., ShowWindow(SW_HIDE); ) but trap all WM_SETTEXT messages to redirect the text to your log file.

Hope that helps,



--
jlr
http://jlamas.blogspot.com/[^]
QuestionCDialog::OnCancel or postmessage(wm_cancel) Pin
valerie995-Oct-05 12:28
valerie995-Oct-05 12:28 
AnswerRe: CDialog::OnCancel or postmessage(wm_cancel) Pin
enjoycrack5-Oct-05 15:18
enjoycrack5-Oct-05 15:18 
Generalthe app crashes when it called onCancle() Pin
valerie996-Oct-05 4:22
valerie996-Oct-05 4:22 
GeneralRe: the app crashes when it called onCancle() Pin
enjoycrack6-Oct-05 10:38
enjoycrack6-Oct-05 10:38 
QuestionPlease, stop crashing! *createremotethread() Pin
GreenLantern5-Oct-05 11:46
GreenLantern5-Oct-05 11:46 
AnswerRe: Please, stop crashing! *createremotethread() Pin
Jose Lamas Rios5-Oct-05 18:26
Jose Lamas Rios5-Oct-05 18:26 
GeneralRe: Please, stop crashing! *createremotethread() Pin
GreenLantern6-Oct-05 9:16
GreenLantern6-Oct-05 9:16 
QuestionMFC menu issues Pin
LighthouseJ5-Oct-05 10:19
LighthouseJ5-Oct-05 10:19 
AnswerRe: MFC menu issues Pin
Bob Stanneveld5-Oct-05 10:40
Bob Stanneveld5-Oct-05 10:40 
GeneralRe: MFC menu issues Pin
LighthouseJ5-Oct-05 10:52
LighthouseJ5-Oct-05 10:52 
GeneralRe: MFC menu issues (update) Pin
LighthouseJ5-Oct-05 11:56
LighthouseJ5-Oct-05 11:56 
AnswerRe: MFC menu issues Pin
Bartosz Bien5-Oct-05 11:57
Bartosz Bien5-Oct-05 11:57 
GeneralRe: MFC menu issues Pin
LighthouseJ5-Oct-05 12:32
LighthouseJ5-Oct-05 12:32 
AnswerRe: MFC menu issues Pin
Jose Lamas Rios5-Oct-05 18:35
Jose Lamas Rios5-Oct-05 18:35 
QuestionFile Change Event CDialog Pin
picazo5-Oct-05 10:01
picazo5-Oct-05 10:01 
AnswerRe: File Change Event CDialog Pin
Blake V. Miller5-Oct-05 10:28
Blake V. Miller5-Oct-05 10:28 
QuestionThe thread 0x6B8 has exited with code 2 (0x2). Pin
valerie995-Oct-05 9:25
valerie995-Oct-05 9:25 

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.