在 Windows Mobile 6.1 设备上运行 directx SDK 示例

发布于 2024-08-26 17:55:43 字数 570 浏览 5 评论 0原文

我尝试在 Samsung Omnia 和模拟器上运行 ..\Windows Mobile 6 SDK\Samples\PocketPC\CPP\win32\directx\d3dm\tutorials 中的 directx 示例,但由于部署错误而无法运行。 我正在使用 Microsoft Visual Studio 2008 并安装了 Windows Mobile SDK Standard 和 Professional 刷新版。 设备已正确插入并设置为主动同步(我知道这一点是因为其他示例可以工作,创建 Win32 智能设备应用程序并运行它也可以工作)。 当我尝试运行 directx 示例应用程序时,它编译时没有错误,但出现消息:

“存在部署错误,继续?是/否”

如果我手动将应用程序从调试文件夹复制到设备并从那里运行它,它作品。

如果我在模拟器上尝试,则会出现相同的部署错误消息。其他应用程序正在成功部署。

有什么办法可以让部署工作吗?也许我需要设置一个晦涩的选项...

我所做的是: 将移动设备连接到电脑, 打开Visual Studio 2008, 打开一个 directx 示例项目, 单击“运行”(在“调试”或“发布”模式下)。

I tried to run the directx samples from ..\Windows Mobile 6 SDK\Samples\PocketPC\CPP\win32\directx\d3dm\tutorials on a Samsung Omnia and on the emulator and it doesn't work because of a deployment error.
I am using Microsoft Visual Studio 2008 and have installed Windows Mobile SDK Standard and Professional refresh.
The device is correctly plugged in and set up for active sync (I know this because other samples work, also a creating Win32 smart device application and running it works).
When I try to run a directx sample application it compiles without errors but the message:

" There were deployment errors, Continue? Yes/No" appears

If I manually copy the application from the debug folder to the device and run it from there, it works.

The same deployment error message appears if I try it on an emulator. Other applications are deploying successfully.

Is there any way to make the deployment work? Maybe there is an obscure option I need to set...

What I do is:
Connect the Mobile device to the PC,
Open Visual Studio 2008,
Open a directx sample project,
Click Run (in Debug or Release mode).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

谜兔 2024-09-02 17:55:43

部署的问题是找不到文件 msvcr80.dll
它在部署选项中被指定为附加文件“项目->属性->配置属性->部署”,然后是“常规->附加文件”
路径为 msvcr80.dll|$(BINDIR)\$(INSTRUCTIONSET)\|%CSIDL_WINDOWS%|0;
删除它即可部署成功。我仅在 Windows Mobile 6.1 设备上以及 WM6.1/WM6 模拟器上的 D3DM 参考驱动程序上对此进行了测试。

  • 我还没弄清楚的是 $(BINDIR)\$(INSTRUCTIONSET) 指向哪里。
  • 另外,如果实际不需要,我也不知道为什么 msvcr80.dll 会出现在附加文件中。
  • 实际上是否有在 ARM cpu 上为 Windows Mobile 平台编译的 msvcr80.dll?

The problem with the deployment is that the file msvcr80.dll could not be found.
It was specified at the deployment options as an additional file "Project->Properties->Configuration Properties->Deployment" then "General->Additional files"
with the paths msvcr80.dll|$(BINDIR)\$(INSTRUCTIONSET)\|%CSIDL_WINDOWS%|0;
Removing it makes the deployment successful. I have only tested this on a Windows Mobile 6.1 device and with the D3DM reference driver on an WM6.1/WM6 emulator.

  • What I haven't figured out is where does $(BINDIR)\$(INSTRUCTIONSET) point to.
  • Also I don't know why msvcr80.dll is in the addition files if it is not actually needed.
  • Is there actually a msvcr80.dll compiled for Windows Mobile platform on an ARM cpu?
素染倾城色 2024-09-02 17:55:43

在进行一些低级 Sysinternals 调试后,我能够解决此问题。它试图将 NETCFv35.Messages.EN.cab 部署到设备,在我的情况下,它由于某种原因被删除。重新安装 .NET CF 解决了我的问题。希望 VS 2008 会显示缺少什么文件,而不是一般消息。希望这也对您有帮助。

I was able to resolve this issue after doing some low-level Sysinternals Debugging. It was trying to deploy NETCFv35.Messages.EN.cab to the device and in my case it was deleted for some reason. Re-installing .NET CF fixed the issue for me. Wish VS 2008 said what file was missing instead of a generic message. Hope this helps you too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文