01 Windows编程——Hello World
2021-03-29 17:26
阅读:595
标签:ESS inf windows编程 instance show ide 入口 类型 closed
源码


#include "stdafx.h" #includeint WINAPI WinMain(HINSTANCE hInst,HINSTANCE tmp,LPSTR strCmd,int nShow) { MessageBox(NULL, "Hello World!", "Title", 0); }
报 类型参数不匹配 bug
原因是字符集设置有问题,改成ASCII
修改后不再报 类型参数不匹配,build一下,build失败
原因是入口函数没有设置正确。WIndows窗体程序的入口函数是WinMain。控制台程序的入口函数是main。
修改如下
此时可以正常运行
01 Windows编程——Hello World
标签:ESS inf windows编程 instance show ide 入口 类型 closed
原文地址:https://www.cnblogs.com/kelamoyujuzhen/p/9296786.html
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:01 Windows编程——Hello World
文章链接:http://soscw.com/index.php/essay/69615.html
文章标题:01 Windows编程——Hello World
文章链接:http://soscw.com/index.php/essay/69615.html
评论
亲,登录后才可以留言!