如何在vc.2003(.net)编译时指定程序入口(main)?

Aydge 2003-10-21 08:57:25
我有一份源代码,标准c,之前运行在*nix下,后来有人移至win32
win32下本来时console的,后来有人写了个gui的界面
目前我打开工程后编译出来的都是console界面的,发现它还有一个winmain.c是gui的初始程序,怎么指定编译入口是这个?
...全文
111 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
Aydge 2003-11-16
  • 打赏
  • 举报
回复
感谢各位,
ahuu 2003-10-24
  • 打赏
  • 举报
回复
to zgoalh

He is my apprentice.
zgoalh 2003-10-24
  • 打赏
  • 举报
回复
Where is saucer(思归) from ?

Are you Chinese ?

You are 5-star-member , How wonderful you are !!!
saucer 2003-10-21
  • 打赏
  • 举报
回复
if you are using Visual Studio 6, change your linker settings (Project - Settings - Link tab - Project Options) to /subsystem:windows (it should have had /subsystem:console)

Also, remove the define _CONSOLE in the Preprocessor section of the C/C++ tab.

saucer 2003-10-21
  • 打赏
  • 举报
回复
you also need to change your linker settings from

/subsystem:console
===>
/subsystem:windows
Aydge 2003-10-21
  • 打赏
  • 举报
回复
vs.2003
我已经删除了_CONSOLE,还是没用说...

7,540

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 VC.NET
社区管理员
  • VC.NET社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧