Windows 2008 Server和ProcessShellCommand [英] Windows 2008 Server and ProcessShellCommand

查看:111
本文介绍了Windows 2008 Server和ProcessShellCommand的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将在Windows 2003 Server下正常运行的SDI应用程序移植到64位平台上的Windows 2008 Server。由于应用程序的InitInstance方法对ProcessShellCommand的强制调用,应用程序在Microsoft基础类(MFC)内崩溃。在我探测过的时候,崩溃似乎是因为尝试创建一个新的FrameWindow。



有没有人有这种问题的经验?是否有针对它的Visual Studio .NET 2010更新?



提前致谢。



我最好的,

Fran Porretto

解决方案

请看我对这个问题的评论。我们没有足够的信息来解决问题,但是:



你应该明白,在所有现代Windows平台上,x86(32位)应用程序都可以无论什么是CPU 指令集架构,都在WoW64上执行。请参阅:

http://en.wikipedia.org/wiki/WoW64 [< a href =http://en.wikipedia.org/wiki/WoW64target =_ blanktitle =New Window> ^ ],

http://en.wikipedia.org/wiki/Instruction_set [ ^ ],

http ://en.wikipedia.org/wiki/X86 [ ^ ],

http://en.wikipedia.org/wiki/X86-64 [ ^ ]。

http://en.wikipedia.org/wiki/Itanium [ ^ ]。



你应该总是了解您正在使用的系统上的CPU指令集架构。要了解Windows上使用的体系结构,请转到控制面板,系统,环境变量,查看变量PROCESSOR_ARCHITECTURE。



-SA

I'm trying to port an SDI application that runs fine under Windows 2003 Server to Windows 2008 Server on a 64-bit platform. The application crashes inside the Microsoft Foundation Classes (MFC) as a result of the application's InitInstance method's mandatory call to ProcessShellCommand. As deep as I've probed it, the crash appears to result from the attempt to create a new FrameWindow.

Does anyone have any experience with this sort of problem? Is there an update to Visual Studio .NET 2010 that addresses it?

Thanks in advance.

All my best,
Fran Porretto

解决方案

Please see my comments to the question. We don't have enough information to resolve the problem, but:

You should understand that, on all contemporary Windows platforms, x86 (32-bit) application can be executed on WoW64, no matter what is the CPU instruction-set architecture. Please see:
http://en.wikipedia.org/wiki/WoW64[^],
http://en.wikipedia.org/wiki/Instruction_set[^],
http://en.wikipedia.org/wiki/X86[^],
http://en.wikipedia.org/wiki/X86-64[^].
http://en.wikipedia.org/wiki/Itanium[^].

You should always know the CPU instruction-set architecture on the system you are working with. To learn the architecture used on Windows, go to Control Panel, System, Environment variables, see the variable PROCESSOR_ARCHITECTURE.

—SA


这篇关于Windows 2008 Server和ProcessShellCommand的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆