原创 操作系統核心對象與GDI對象

①核心對象(Kernel object):表現爲HANDLE,它由KERNEL32.DLL管理。   .核心對象可以有一個以上的擁有者,甚至可以是跨

原创 fatal error LNK1104: cannot open file "mfc42u.lib"

cannot open file "mfc42u.lib"怎麼回事,怎麼改動配置選項?    解決方法一:  下 了一個老外的示例代碼,放到VC 6

原创 MFC版的Hello World

MFC版的Hello World   使用MFC類庫寫個Hello示例程序比直接用Win32 API寫要簡單的多了。因爲MFC用幾個類封裝了應用程序的創建,消息循環等等東東。   閒話少說,先給來一個最簡單的MFC版Hello World

原创 繪圖基礎--使用畫筆和畫刷繪製網絡

繪圖基礎--使用畫筆和畫刷繪製網絡 // rect.cpp #include <afxwin.h> // Define the application class class CApp : public CWinApp { pub

原创 三大MSG宏

//afxwin.h  struct AFX_MSGMAP {     const AFX_MSGMAP* (PASCAL* pfnGetBaseMap)();     const AFX_MSGMAP_ENTRY* lpEntries;

原创 繪圖基礎--鼠標移動畫點

繪圖基礎--鼠標移動畫點 // draw1.cpp #include <afxwin.h> // Define the application class class CApp : public CWinApp { public:

原创 MFC7對應VC什麼版本?

MFC7.0 對應 VC.NET 2002 從VC4.2到VC6.0的MFC版本是4.2,後面沒有5.0和6.0 到後來推出的Visual Stud

原创 繪圖基礎--橢圓

繪圖基礎--橢圓 // ellipse.cpp #include <afxwin.h> // Define the application class class CApp : public CWinApp { public:

原创 MFC中SDI程序創建流程的回顧

SDI程序創建流程的回顧    從CWinApp.InitialInstance()開始, 1.首先應用程序對象創建文檔模板;   CSingleD

原创 Visual C++ 編程輔助工具

Visual C++ 編程輔助工具(轉載) 開發輔助工具大收集 除了我們日常開發使用的Visual C++、Delphi、JBuilder等等大傢伙

原创 個人多線程程序設計經驗總結

1.各線程的數據要分離開來,避免使用全局變量。 2.如果各線程一定要使用全局變量,哪麼該全局變量一定要讀寫保護(臨界區,互斥等技術)。 3.不要在線

原创 繪圖基礎--畫筆

繪圖基礎--畫筆 // line2.cpp #include <afxwin.h> // Define the application class class CApp : public CWinApp { public: vi

原创 MFC是否過時?如何學習MFC?

http://sunxiunan.com/?p=1649 MFC是否過時?如何學習MFC? 發表於 2010年05月31日 由 admin 過時與否

原创 繪圖基礎--多邊形1

繪圖基礎--多邊形1 // polygon1.cpp #include <afxwin.h> // Define the application class class CApp : public CWinApp { public

原创 MFC基礎類源碼CPP實現文件

WinMain.CPP---->AfxWinMain()  //近似可認爲是WinMain()函數的入口 VIEWCORE.CPP---->CVie