节选自MSDN/SUBSYSTEM:{CONSOLE|EFI_APPLICATION|EFI_BOOT_SERVICE_DRIVER| EFI_ROM|EFI_RUNTIME_DRIVER|NATIVE|POSIX|WINDOWS|WINDOWSCE} [,major[.minor]] where: CONSOLE Win32 character-mode application. Console applications are given a console by the operating system. If main or wmain is defined, CONSOLE is the default. Extensible Firmware Interface The EFI_* subsystems. See the EFI specification for more information. For example, see the Intel web site. The minimum version and default version is 1.0. NATIVE Device drivers for Windows NT. If /DRIVER:WDM is specified, NATIVE is the default. POSIX Application that runs with the POSIX subsystem in Windows NT. WINDOWS Application does not require a console, probably because it creates its own windows for interaction with the user. If WinMain or wWinMain is defined, WINDOWS is the default. WINDOWSCE Application that runs on a Windows CE device. major and minor (optional) Specify the minimum required version of the subsystem. The arguments are decimal numbers in the range 0 through 65,535. See the Res for details. There are no upper bounds for version numbers. Res The /SUBSYTEM option tells the operating system how to run the .exe file. The choice of subsystem affects the default starting address for the program. For more information, see the Entry-Point Symbol (/ENTRY:function) option.The optional minimum and default major and minor version numbers for the subsystems are as follows.
:呵呵,你的名字也了得:)
不行呀,我看了以下,用winrar压缩后还有2.17M,没法发呀
能直接教教我怎么建工作空间吗?
总不能以后一碰到此类问题就来找你帮忙吧
然后再这个workspace中加入你上面的文件就可以了。
回复人: liuxianhui(无知) :
照你说的作了,出错提示如下:
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
////
知道原因吗??
vc98/lib目录下有很多.lib文件,是不是mfc的类都是由它们+.dll文件封装的阿?
中没有这个函数申明,另外#include "stdafx.h"加了没有,_WinMain@16都没有????把你的Release Debug 删了,在压缩,发给我看看,
E-mail: [email protected]
my.cpp
mfc.h
my.h
用winrar压缩后还有2.17M强强!!!!!!!!!!!!
楼主很强...
vc,vb,pb,sql server...........
LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
我从新建立工作空间加入.CPP .H 以及资源文件,问题解决,
project->setings->link->project Option编辑筐中把/subsystem:console改为/subsystem:windows
不过你的思维有点逻辑错误,
应该是把windows改成console吧:)不过我很想知道把这里的/subsystem:windows改成/subsystem:console的原因?望赐教
EFI_ROM|EFI_RUNTIME_DRIVER|NATIVE|POSIX|WINDOWS|WINDOWSCE}
[,major[.minor]]
where: CONSOLE
Win32 character-mode application. Console applications are given a console by the operating system. If main or wmain is defined, CONSOLE is the default. Extensible Firmware Interface
The EFI_* subsystems. See the EFI specification for more information. For example, see the Intel web site. The minimum version and default version is 1.0. NATIVE
Device drivers for Windows NT. If /DRIVER:WDM is specified, NATIVE is the default. POSIX
Application that runs with the POSIX subsystem in Windows NT. WINDOWS
Application does not require a console, probably because it creates its own windows for interaction with the user. If WinMain or wWinMain is defined, WINDOWS is the default. WINDOWSCE
Application that runs on a Windows CE device.
major and minor (optional)
Specify the minimum required version of the subsystem. The arguments are decimal numbers in the range 0 through 65,535. See the Res for details. There are no upper bounds for version numbers.
Res
The /SUBSYTEM option tells the operating system how to run the .exe file. The choice of subsystem affects the default starting address for the program. For more information, see the Entry-Point Symbol (/ENTRY:function) option.The optional minimum and default major and minor version numbers for the subsystems are as follows.
谢谢,结帖了~