win32控制台程序中,使用MFC的方法

来源:互联网 发布:mysql 存储过程 事物 编辑:程序博客网 时间:2024/05/21 01:29
1.在项目属性->配置属性->常规->MFC的使用,选择"在共享DLL中使用MFC"

2.////Note:用于隐藏掉console框    
#pragma comment(linker, "/subsystem:/"windows/" /entry:/"mainCRTStartup/"" ) // 设置入口地址 

3.添加include文件afxwin.h
#include <stdio.h>
#include <afxwin.h>
#include <iostream>
0 0
原创粉丝点击