Click here to Skip to main content
15,920,632 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Linker errrors Pin
Christian Graus23-Aug-05 19:29
protectorChristian Graus23-Aug-05 19:29 
GeneralRe: Linker errrors Pin
Luis Alonso Ramos23-Aug-05 19:39
Luis Alonso Ramos23-Aug-05 19:39 
GeneralRe: Linker errrors Pin
Christian Graus23-Aug-05 19:45
protectorChristian Graus23-Aug-05 19:45 
GeneralRe: Linker errrors Pin
Luis Alonso Ramos23-Aug-05 20:07
Luis Alonso Ramos23-Aug-05 20:07 
GeneralRe: Linker errrors Pin
Trollslayer23-Aug-05 22:31
mentorTrollslayer23-Aug-05 22:31 
GeneralRe: Linker errrors Pin
Weiye Chen23-Aug-05 21:31
Weiye Chen23-Aug-05 21:31 
GeneralGet Sharing folders... Pin
mvnevis23-Aug-05 18:13
mvnevis23-Aug-05 18:13 
GeneralWhat's the process of Message Map to a MFC-based Application Programe Pin
shanzy23-Aug-05 18:09
shanzy23-Aug-05 18:09 
Hi,
I set some breakpoint in my code:
[code]
//myfirst.h

class CMyApp:public CWinApp
{
public:
virtual BOOL InitInstance();
};

class CMyFrameWnd:public CFrameWnd
{
public:
CMyFrameWnd();
protected:
afx_msg void OnPaint();
DECLARE_MESSAGE_MAP()
};

//////////////////////////////////////////////////////////////////////////

#include <afxwin.h>
#include "myfirst.h"

CMyApp theApp;

BOOL CMyApp::InitInstance()
{
m_pMainWnd = new CMyFrameWnd;
m_pMainWnd->ShowWindow(m_nCmdShow);
m_pMainWnd->UpdateWindow();

return TRUE;
}

BEGIN_MESSAGE_MAP(CMyFrameWnd, CFrameWnd)
ON_WM_PAINT()
END_MESSAGE_MAP()

CMyFrameWnd::CMyFrameWnd()
{
Create(NULL, _T("myfirstMFC"));
}

void CMyFrameWnd::OnPaint()
{
CPaintDC dc(this); //here I can't understand!!

CRect rect;

GetClientRect(&rect);

dc.DrawText(_T("MFC"),-1,&rect,DT_SINGLELINE|DT_CENTER|DT_VCENTER);
}
[/code]
and I see the context in the call stack window just like below:
---------------------------------------
CWnd::OnWndMsg(unsigned int 129, unsigned int 0, long 1244260, long * 0x0012fb1c)
CWnd::WindowProc(unsigned int 129, unsigned int 0, long 1244260)
AfxCallWndProc(CWnd * 0x023e4ed8 {CMyFrameWnd hWnd=0x00100552}, HWND__ * 0x00100552, unsigned int 129, unsigned int 0, long 1244260)
AfxWndProc(HWND__ * 0x00100552, unsigned int 129, unsigned int 0, long 1244260)
USER32! 77e2158f()
USER32! 77e1c19d()
USER32! 77e122c5()
NTDLL! 77f91baf()
USER32! 77e064b5()
BCCORE! 0c067fa0()
CFrameWnd::Create(const char * 0x00000000, const char * 0x004f001c, unsigned long 13565952, const tagRECT & {top=-2147483648 bottom=0 left=-2147483648 right=0}, CWnd * 0x00000000 {CWnd hWnd=???}, const char * 0x00000000, unsigned long 0, CCreateContext * 0x00000000)
CMyFrameWnd::CMyFrameWnd()
CMyApp::InitInstance()
AfxWinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x00132f73, int 1)
WinMain(HINSTANCE__ * 0x00400000, HINSTANCE__ * 0x00000000, char * 0x00132f73, int 1)
WinMainCRTStartup()
KERNEL32! 77e88989()
---------------------------------------

in the call stack window I can relatively clearly see a MFC-based Application programe is how to execute:

While the problem is:
I don't know what's KERNEL32! 77e88989()mean
and I don't know how the Message Map is occur?

who I help me??




shanzy
GeneralRe: What's the process of Message Map to a MFC-based Application Programe Pin
Christian Graus23-Aug-05 18:34
protectorChristian Graus23-Aug-05 18:34 
GeneralRe: What's the process of Message Map to a MFC-based Application Programe Pin
shanzy23-Aug-05 18:44
shanzy23-Aug-05 18:44 
Generalsharing folder.... Pin
mvnevis23-Aug-05 18:06
mvnevis23-Aug-05 18:06 
Generalupdating global variable using a mutex Pin
elephantstar23-Aug-05 16:51
elephantstar23-Aug-05 16:51 
GeneralRe: updating global variable using a mutex Pin
Rage23-Aug-05 21:53
professionalRage23-Aug-05 21:53 
GeneralRe: updating global variable using a mutex Pin
elephantstar24-Aug-05 7:34
elephantstar24-Aug-05 7:34 
QuestionHow to analyse a string type of CString? Pin
ebinaini23-Aug-05 16:46
ebinaini23-Aug-05 16:46 
AnswerRe: How to analyse a string type of CString? Pin
David Crow23-Aug-05 16:51
David Crow23-Aug-05 16:51 
Questionfile seek failed? Pin
alex.barylski23-Aug-05 11:59
alex.barylski23-Aug-05 11:59 
AnswerRe: file seek failed? Pin
trelliot23-Aug-05 13:05
trelliot23-Aug-05 13:05 
AnswerRe: file seek failed? Pin
Roland Pibinger23-Aug-05 13:20
Roland Pibinger23-Aug-05 13:20 
GeneralSupport for old versions of MFC Pin
mamtz23-Aug-05 11:38
mamtz23-Aug-05 11:38 
GeneralRe: Support for old versions of MFC Pin
Ravi Bhavnani23-Aug-05 14:04
professionalRavi Bhavnani23-Aug-05 14:04 
GeneralUSB question Pin
Tom Wright23-Aug-05 11:19
Tom Wright23-Aug-05 11:19 
GeneralRe: USB question Pin
Alexander M.,23-Aug-05 15:04
Alexander M.,23-Aug-05 15:04 
Generaldouble click on MainFrame Caption Pin
llapanowski23-Aug-05 10:11
llapanowski23-Aug-05 10:11 
GeneralRe: double click on MainFrame Caption Pin
Maximilien23-Aug-05 10:23
Maximilien23-Aug-05 10:23 

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.