Click here to Skip to main content
15,915,086 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Can NT Service connect to a mapped drive Pin
Anders Molin5-Sep-01 22:14
professionalAnders Molin5-Sep-01 22:14 
AnswerRe: Can NT Service connect to a mapped drive Pin
Anders Molin5-Sep-01 22:20
professionalAnders Molin5-Sep-01 22:20 
GeneralError when firing SetTimer in a Modeless Dlg Pin
RobJones5-Sep-01 12:36
RobJones5-Sep-01 12:36 
GeneralRe: Error when firing SetTimer in a Modeless Dlg Pin
Steen Krogsgaard5-Sep-01 21:56
Steen Krogsgaard5-Sep-01 21:56 
GeneralRe: Error when firing SetTimer in a Modeless Dlg Pin
RobJones6-Sep-01 6:20
RobJones6-Sep-01 6:20 
GeneralRe: Error when firing SetTimer in a Modeless Dlg Pin
<k>Andreas Hoheisel6-Sep-01 8:48
<k>Andreas Hoheisel6-Sep-01 8:48 
GeneralRe: Error when firing SetTimer in a Modeless Dlg Pin
RobJones6-Sep-01 9:19
RobJones6-Sep-01 9:19 
GeneralRe: Error when firing SetTimer in a Modeless Dlg Pin
Steen Krogsgaard6-Sep-01 22:17
Steen Krogsgaard6-Sep-01 22:17 
Hi Rob,

glad to be of assistance.

What you've posted is the disassembly - 10-15 years ago people would actually program writing this mumbo-jumbo! Wink | ;)

Assuming you're using MS VC++, you can see the call stack _when you're debugging_ by pressing alt+7 (or choosing View->Debug windows->Call Stack. You can also see it in the variables window by expanding the combo box at the top of this window, the one labeled "context".

The call stack is a list of all the calls that led to the point in the program where you are right now. This is how the call stack looked i a test program using OnTimer:

CTest10View::OnTimer(unsigned int 1) line 139
CWnd::OnWndMsg(unsigned int 275, unsigned int 1, long 0, long * 0x0012fd10) line 1829
CWnd::WindowProc(unsigned int 275, unsigned int 1, long 0) line 1585 + 30 bytes
AfxCallWndProc(CWnd * 0x00422cf0 {CTest10View hWnd=0x0006031a}, HWND__ * 0x0006031a, unsigned int 275, unsigned int 1, long 0) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x0006031a, unsigned int 275, unsigned int 1, long 0) line 368
AfxWndProcBase(HWND__ * 0x0006031a, unsigned int 275, unsigned int 1, long 0) line 220 + 21 bytes
USER32! 77e13eb0()
USER32! 77e1401a()
USER32! 77e192da()
CWinThread::Run() line 480 + 11 bytes
CWinApp::Run() line 400
AfxWinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x001325f8, int 1) line 49 + 11 bytes
WinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x001325f8, int 1) line 30
WinMainCRTStartup() line 330 + 54 bytes
KERNEL32! 77e87903()

Reading from bottom up you can find the call to WinMain which call AfxWinMain, which called CWinApp::Run() which callled CWinThread::Run() which called GetMessage and DispatchMessage (the USER32! things). Then you can see the trace through the MFC windows procedures (WinProc, AfxCallWndProc, CWnd::WindowProc) and the routing through the message map (CWnd::OnWndMsg and finally CTest10View::OnTimer).


Cheers
Steen.

"To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
GeneralRe: Error when firing SetTimer in a Modeless Dlg Pin
A.R.6-Sep-01 11:30
A.R.6-Sep-01 11:30 
GeneralRe: Error when firing SetTimer in a Modeless Dlg Pin
RobJones6-Sep-01 11:51
RobJones6-Sep-01 11:51 
GeneralRe: Error when firing SetTimer in a Modeless Dlg Pin
A.R.6-Sep-01 14:40
A.R.6-Sep-01 14:40 
GeneralRe: Error when firing SetTimer in a Modeless Dlg Pin
6-Sep-01 15:13
suss6-Sep-01 15:13 
GeneralRe: Error when firing SetTimer in a Modeless Dlg Pin
Steen Krogsgaard6-Sep-01 21:11
Steen Krogsgaard6-Sep-01 21:11 
QuestionWhat happened? :(( Pin
Cathy5-Sep-01 12:17
Cathy5-Sep-01 12:17 
AnswerRe: What happened? :(( Pin
Christian Graus5-Sep-01 13:38
protectorChristian Graus5-Sep-01 13:38 
GeneralRe: What happened? :(( Pin
Cathy6-Sep-01 6:27
Cathy6-Sep-01 6:27 
GeneralRe: What happened? :(( Pin
Christian Graus6-Sep-01 12:10
protectorChristian Graus6-Sep-01 12:10 
Generalcapturing OutputDebugStrings Pin
Steve The Plant5-Sep-01 11:02
Steve The Plant5-Sep-01 11:02 
GeneralRe: capturing OutputDebugStrings Pin
Tomasz Sowinski6-Sep-01 1:57
Tomasz Sowinski6-Sep-01 1:57 
GeneralRe: capturing OutputDebugStrings Pin
reiko6-Sep-01 18:39
reiko6-Sep-01 18:39 
GeneralRe: capturing OutputDebugStrings Pin
Mike Nordell7-Sep-01 10:59
Mike Nordell7-Sep-01 10:59 
QuestionHow to display image in View? Pin
Jerry Wang5-Sep-01 9:18
Jerry Wang5-Sep-01 9:18 
AnswerRe: How to display image in View? Pin
Chris Losinger5-Sep-01 10:32
professionalChris Losinger5-Sep-01 10:32 
AnswerRe: How to display image in View? Pin
Not Active5-Sep-01 10:42
mentorNot Active5-Sep-01 10:42 
GeneralBSTR parameter to Stored Procedure Pin
Bigge5-Sep-01 8:46
Bigge5-Sep-01 8:46 

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.