Silverlight应用程序无法启动HRESULT hr = m_pApplication-> LoadResourceDictionary(& appXaml,NULL); [英] Silverlight application fails to start at HRESULT hr = m_pApplication->LoadResourceDictionary(&appXaml,NULL);
问题描述
我遇到了WCE7和silverlight应用程序的问题,我安装了最新的更新,我仍然得到同样的错误。
我有1个按钮的XAML项目,当我想在visual studio 2008中启动silverlight应用程序并将其部署到设备时失败at
HRESULT App :: InitializeComponent()
{
XRXamlSource appXaml( GetHInstance(),IDR_T_APP);
HRESULT hr = m_pApplication-> LoadResourceDictionary(& appXaml,NULL);return hr;
}
// InitializeComponent
关闭应用程序后hr为0xc00cee2b。我知道这是更新3的问题,但使用/ balmoff dosnt帮助。
你们有任何建议吗?
致以最好的问候,
Luka
1>检查 IDR_T_APP是否指向正确的XAML文件
2>打开调试区域,查看是否看到任何输出消息
如果可能,请共享应用程序的XAML文件。我将尝试重新解决问题并建议您解决方案。
这是最基本的应用程序之一。它不应该失败。
Hi,
i have a problem with WCE7 and silverlight application, i installed latest updateds and i still get the same error.
I have XAML project with 1 button and when i want to start silverlight application in visual studio 2008 and deploy it to device it fails at
HRESULT App::InitializeComponent() { XRXamlSource appXaml(GetHInstance(), IDR_T_APP); HRESULT hr = m_pApplication->LoadResourceDictionary(&appXaml,NULL);
return hr; } // InitializeComponent
The hr is 0xc00cee2b after closing application. I know this is a problem with update 3 but using /balmoff dosnt help.
Do you guys have any sugsestions?
Best regards,
Luka
1> Check if IDR_T_APP is pointing to the right XAML file
2> Turn debug zone ON and see if you see any output messages
If possible, please share the XAML file of the application. I shall try to repro the issue and suggest you the solution.
This is one of the most basic application. It should not fail.
这篇关于Silverlight应用程序无法启动HRESULT hr = m_pApplication-> LoadResourceDictionary(& appXaml,NULL);的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!