因為要跑vc6的程式,而老闆的電腦是Win7
然而Win7和Vista不支援vc6 囧
很多軟體其實都還不支援在Vista和Win7上阿!!!!!!!!!!!!!!!!! (especially、一些網路的程式)
但是小女沒有這個斗膽將老闆的電腦灌成XP(抖)
所以只好開始找方法
看有沒有辦法找到補丁將這個破洞補起來
試過很多方法@@ (噩夢實在不想提)
不過像是VC6版本殘缺這種都不是正解(我中英版都灌過了)
或是灌時不要選TOOLS里面的OLE/COM OBJECT VIEWER
或是把setupwiz.ini 刪掉等等的都不是正解
再灌好之後的的setupwiz.ini ERROR其實只是個開頭
接下來你用VC6要開專案會當掉
接下來當你進入系統除錯時
就會跑出
Access Violation (0xC0000005) in DEVSHL.DLL at 0×5003eaed.
DevShl.Dll referenced memory at 0×0000000. The memory could not be read.
這個錯誤
而這個部分
我在經過一陣瘋狂搜索後
終於在網路的某個角落找到方法了
MSDN其實有提供補丁方式,只是非常低調吧(我想)
至少我找不到阿 囧
以下貼自:http://alg.we2y.com/?author=1
他们提供一个补丁filetool,并提供解决步骤:
Installing the Add-In
- Run FileTool.Exe to extract the Visual C++ 6.0 project.
- Build the project in Visual C++ in Release or Debug configuration.
- In Visual C++, click Customize from the Tools menu.
- In the Customize dialog box, click the Add-Ins and Macro Files tab.
- Click the Browse button and locate the FileTool.dll file that was built in step 2.
- Click OK to save the settings.
过上几秒钟这个dll就自动加进去了,然后关闭对话框,
这时会看到界面上多了一个菜单条,A就是add file to project,O就是OPEN,代替原来相应的操作。
記住要用系統管理員下去執行程式
不然在加入DLL時會出現錯誤喔
以上即可解決問題~