出处:http://blog.csdn.net/dpfordor
废话少说,感受一下wx的快捷&强大的兼容理念
1.vc新建一个win32工程,注意这里选控制台类型,空项目
2.新建项,选c++源文件,main.cpp
3.在main。cpp输入下面代码
#include<wx/wx.h>
#include<wx/string.h>
#include<stdio.h>
int main()
{
wxString str = "Hello World!";
printf("%s/n",str); // magic
return 0;
}
4.ctrl+F5
5.now see is there "Hello world"?!
why magic? There is no needing to link any wxlib!!!haha