开发者

Wrong OS version in Windows CE binary (with Visual Studio 2010)

开发者 https://www.devze.com 2023-03-12 04:14 出处:网络
I\'m trying to create an executable for a Windows CE 5.0 device. The SDK has been selected right (STANDARDSDK_500 (SH4)) and connection to the device works. However, the binary created by Visual Stud

I'm trying to create an executable for a Windows CE 5.0 device.

The SDK has been selected right (STANDARDSDK_500 (SH4)) and connection to the device works. However, the binary created by Visual Studio refuses to be "deployed" on the device, claiming that the Windows version is not high enough.

Having a look at the EXE file (with the amazing Dependency Walker utility that supports WinCE binaries) shows "OS Ver" 6.0 and "Subversion" 6.0. I want them to be 5.0!

WHERE does o开发者_如何学运维ne set this, or WHERE can something be overriding the SDK selection I've made? This is rather frustrating. I'd like to like Visual Studio 2010, but it simply makes too much pain, too often. Things should just work.


Grep on the files revealed that the .vcproj file had lines with

AdditionalOptions=" /subsystem:windowsce,6.00"

Removing such corrected the problem.

What's sad is that the setting was completely missing on the IDE side, so there's no way to fix it there. It wasn't even shown on the "command line" summaries of what the IDE presumably sends to the actual compiler.

This is why IDE's often suck.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号