设为首页 加入收藏

TOP

最简单的MFC程序
2014-11-11 08:45:06 】 浏览:9822
Tags:简单 MFC 程序

  建立一个Win32空项目后,然后手工打造的最简单的MFC程序:


  1: //stdafx.h


  2: #pragma once


  3: #include


  4: #include


  5: #include


  6: #include 1: //stdafx.cpp


  2: #include "stdafx.h" 1: //MainApp.h


  2: #pragma once


  3: class CMainApp : public CWinAppEx


  4: {


  5: public:


  6: virtual BOOL InitInstance();


  7: }; 1: //MainApp.cpp


  2: #include "stdafx.h"


  3: #include "MainApp.h"


  4: #include "MainWindow.h"


  5:


  6: CMainApp mianApp;


  7:


  8: BOOL CMainApp::InitInstance()


  9: {


  10: CWinAppEx::InitInstance();


  11:


  12: SetRegistryKey(TEXT("Hello MFC app."));


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇IplImage和CBitmap转化 下一篇计算机二级C++技巧:QT技巧

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目