Creating Programs for Windows 9x and NT with Visual C++ 2008創建程序的Windows 9x操作系統和NT用Visual C + + 2008年
Note: this content originally from 注:此內容來自 http://mygreenpaste.blogspot.com http://mygreenpaste.blogspot.com . 。 If you are reading it from some other site, please take the time to visit 如果你讀它從其他一些網站,請花點時間訪問 My Green Paste, Inc 我國綠色的漿糊,公司 . 。 Thank you. 謝謝您。
A recent topic最近的一項專題 in the在 Development forum發展論壇 at在 Sysinternals Forums論壇的Sysinternals contains some information about how to use Visual C++ 2008 to create binaries that run on Windows 9x and NT.包含了一些有關如何使用Visual C + + 2008年創建的二進制文件運行在Windows 9x和NT 。 For NT, it seems to just be a matter of changing the Subsystem Version to 4.0.對於新台幣,這似乎只是一個問題,改變子系統版本至4.0 。 One might think to use the人們或許以為使用 /SUBSYSTEM linker switch /子系統連接器開關 for this.對於這一點。 However, when one attempts to do so, the shipping link.exe reports:然而,當一個人試圖這樣做,航運鏈接器報告:
LINK : warning LNK4010: invalid subsystem version number xy; default subsystem version assumed 友情鏈接:警告LNK4010 :無效的子系統版本號碼代理;默認子系統版本假定
In this case, the default subsystem version is 5.0, and NT needs 4.0.在這種情況下,默認的子系統版本是5.0 ,需要4.0元。 One can use an older copy of EditBin.exe to change this (I found the version that shipped with Visual Studio .NET 2003 to work):一個可以使用的舊副本EditBin.exe改變這種(我發現的版本,隨Visual Studio 。 NET的2003年工作) :
editbin /SUBSYSTEM:CONSOLE,4.0 c:\path\to\your.exe editbin /子系統:控制台, 4.0 ç : \路徑\到\ your.exe
The same requirement also exists to get the executable to run on Windows 9x, but one needs to do a bit more work.同樣的要求還存在讓運行可執行文件在Windows 9x ,而是一個需要做一點工作。
Louis Solomon路易斯所羅門 has taken the time and已採取的時間和
... Written by «/\/\Ø|ö±ò\/»®© on 撰寫的« / \ / \一個〜 | à ¶為± à ² \ /一個»最大®上最大的© May 25th, 2008 2008年5月二十五號 with 帶有 no comments 沒有評論 . 。
Read more articles on 閱讀更多文章 Windows ME Windows ME的 and 和 Visual Studio 2008 2008年的Visual Studio and 和 NT 4.0 NT 4.0中 and 和 c ç and 和 link.exe 鏈接器 and 和 editbin.exe editbin.exe and 和 Sysinternals Forum 論壇的Sysinternals and 和 sysinternals 的Sysinternals and 和 windows 98 Windows 98中 and 和 windows 9x Windows 9x的 and 和 Development 發展 and 和 otherSoftware otherSoftware and 和 c++ C + +語言 . 。















