Python, MFC and the good old Hello World
timo.becker at inosoft.de
timo.becker at inosoft.de
Wed Feb 21 05:23:22 EST 2001
hi,
can anybody give me a brief introduction in using mfc from python? Is it
possible to port the following hello world to python and what would it look
like?
----- 8< ----- 8< ----- 8< ----- 8< ----- 8< -----
class CMainWindow : public CFrameWnd {
public:
CMainWindow() { Create(NULL,"Hello World!"); }
};
class CHelloApp : public CWinApp {
public:
virtual BOOL InitInstance() {
m_pMainWnd = new CMainWindow();
m_pMainWnd->ShowWindow(m_nCmdShow);
m_pMainWnd->UpdateWindow();
return TRUE;
}
};
CHelloApp HelloApp;
----- 8< ----- 8< ----- 8< ----- 8< ----- 8< -----
thanks in advance
Timo
----- Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web -----
http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
NewsOne.Net prohibits users from posting spam. If this or other posts
made through NewsOne.Net violate posting guidelines, email abuse at newsone.net
More information about the Python-list
mailing list