应用程序"is not a valid Pocket PC Application"的解决方法
2009-03-25 15:16
489 查看
Windows Mobile 程序 MDd 与 MTd 编译选项的选择
当使用VC+开发Windows Mobile程序时,由于Windows Mobile( WINCE
)架构上的特殊性,当其使用DLL库文件时,如果有同名的DLL文件,只要已经有程序在启动时加载过,无论这个文件处于什么位置、内容是否一致,都不会再
加载(与Windows系统不一样)。
这就会带来一个问题,如果多个程序要求不同版本的DLL文件,就有可能会出现冲突或因版本不匹配而出现错误;版本不匹配时,系统一般会提示
“ XXX.exe is not a valid Pocket PC Application: Troubleshooting guidelines”。
解决的办法:将Windows Mobile程序编译为静态程序(/MT 或 /MTd选项),这样就不会因DLL问题而造成程序无法正常启动。
当然还有一个办法就是将程序使用的msvcr80[d].dll, mfc80u[d].dll程序拷贝到windows mobile中去,但如前所述,并不能保证程序每次都能正常启动并使用正确的版本
当使用VC+开发Windows Mobile程序时,由于Windows Mobile( WINCE
)架构上的特殊性,当其使用DLL库文件时,如果有同名的DLL文件,只要已经有程序在启动时加载过,无论这个文件处于什么位置、内容是否一致,都不会再
加载(与Windows系统不一样)。
这就会带来一个问题,如果多个程序要求不同版本的DLL文件,就有可能会出现冲突或因版本不匹配而出现错误;版本不匹配时,系统一般会提示
“ XXX.exe is not a valid Pocket PC Application: Troubleshooting guidelines”。
解决的办法:将Windows Mobile程序编译为静态程序(/MT 或 /MTd选项),这样就不会因DLL问题而造成程序无法正常启动。
当然还有一个办法就是将程序使用的msvcr80[d].dll, mfc80u[d].dll程序拷贝到windows mobile中去,但如前所述,并不能保证程序每次都能正常启动并使用正确的版本
相关文章推荐
- "Borland license information was found,but it is not valid for delphi." 的解决方法
- 解决方法WindowsError: [Error 193] %1 is not a valid Win32 application
- 解决方法WindowsError: [Error 193] %1 is not a valid Win32 application
- is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)解决方法
- Ubuntu技巧之"xxx is not in the sudoers file"解决方法
- "xxx is not in the sudoers file"解决方法
- The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法
- Linux 'XXXXXX' "is not in the sudoers file. This incident will be reported" 解决方法
- Host "localhost " is not allowed to connect to mysql server解决方法
- Unable to add window -- token null is not for an application错误的解决方法 android开发
- 关于 QWidget+Qml程序部署到linux时,'module"QtQuick”is not installed' 的解决方法
- Openfire更服务器名称后报Found RSA certificate that is not valid for the server domain的解决方法
- WindowManager$BadTokenException——token null is not for an application解决方法
- 解决vmware fusion + centos 7安装vmtools时提示The path "" is not a valid path to the xxx kernel headers.
- centos解决The path "" is not a valid path to the 3.2.0-4-amd64 kernel headers.问题
- "Could not connect to AppWrapper, Please make sure TCP port 12005 is not blocked"解决方法
- VMware "VMnet0 is not running"错误的解决方法
- IntelliJ IDEA导入JDK出现The selected directory is not a valid home for JDK问题的解决方法
- "Could not find mime type application octet-stream"错误的解决方法
- "The /usr/local directory is not writable."解决方法