我想先做一只纯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
                                如何解决呢?谢老大们帮忙。

解决方案 »

  1.   

    http://expert.csdn.net/Expert/topic/1542/1542192.xml?temp=.7407648
      

  2.   

    TO StdAfx(任杰):
      我所做的同先生所说的好象没什么不同啊?为什么不行呢?
      麻烦您指教。                   多谢。
      

  3.   

    不知道你是不是在纯DOS下运行来检查的?
    它需要纯DOS环境实在不行的话你就手工link这两个东西吧。因为很可能集成环境下还需要别的设置才能生效。
      

  4.   

    我在测试win32.exe用了winme启动盘,应该是纯DOS环境。
    我不明白VC++的如下警告:
      warning LNK4060: stub file missing full MS-DOS header; rebuild stub with /KNOWEAS 16-bit LINK option
      

  5.   

    你要用 Microsoft 的 16位开发环境并加上 /KNOWEAS LINK选项
    编出来的DOS程序才能作为 stub 使用。
      

  6.   

    to icansaymyabc(学习与进步):
      请教先生,我用TC编译的DOS16.exe,该怎么做呢?Tlink 是不认/KNOWEAS LINK的。
    Microsoft 的 16位开发环境,那我用什么工具(常用).
      

  7.   

    Linker Tools Warning LNK4060
    stub file missing full MS-DOS header; rebuild stub with /KNOWEAS 16-bit LINK optionThe MS-DOS application specified with the /STUB option does not have a full 40-byte header. The stub program may not run as expected.To rebuild the 16-bit stub with a full 40-byte header, use the undocumented /KNOWEAS option with the 16-bit LINK version 5.5x or higher.
      

  8.   

    to StdAfx(任杰):
      老大,16-bit LINK version 5.5x or higher您有吗?给我一份好吗?
                      [email protected]
                                                    多谢提携。