您的位置:首页 > 其它

修改函数入口的方法

2012-02-27 20:17 246 查看
#pragma comment(linker, "/entry:函数名")

#pragma comment(lib, "msvcrt.lib")

#include <stdio.h>
void hehe()
{
#pragma comment(linker, "/entry:hehe")
#pragma comment(lib, "msvcrt.lib")
printf("hehe\n");
}


这样, 不用main函数, 就可以直接运行了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐