同时支持dos和window的程序
我想先做一只纯DOS下的dos16.exe,然后做一只window下的win32.exe,在VC++里编译
win32.exe文件时用dos16.exe换掉winstub.exe,但不知如何替换。
我在Vc++菜单/project/project settings/link/projext Options:下加入
/Stub:dos16.exe
或者在程序中加入:#pragma comment(linker,"/Stub:dos16.exe")
虽然发现dos16.exe已被加到win32.exe中,但在dos方式下还是This program can't
....(原winstub的内容)。
linking时都有:
warning LNK4060: stub file missing full MS-DOS header; rebuild stub with /KNOWEAS 16-bit LINK option
如何解决呢?谢老大们帮忙。