求助,写了个winmd,一运行就报错。

qq_15546957 2014-09-10 07:18:12
#pragma once

namespace IAP
{
public ref class WP8IAP sealed
{
};
}


cpp里就一行include头文件

一运行就报错:
+ $exception {System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at PhoneDirect3DXamlAppInterop.MainPage..ctor()
--- End of inner exception stack trace ---
at System.Windows.Navigation.PageResourceContentLoader.EndLoad(IAsyncResult asyncResult)
at System.Windows.Navigation.NavigationService.ContentLoader_BeginLoad_Callback(IAsyncResult result)} System.Exception {System.Reflection.TargetInvocationException}
...全文
313 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
北极猩猩 2014-09-11
  • 打赏
  • 举报
回复
> System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) 看起来好像是编译器的设置有问题,可能是编译结果和目标平台不匹配。最好把整个工程的设置放上来

7,655

社区成员

发帖
与我相关
我的任务
社区描述
Windows Phone是微软发布的一款手机操作系统,它将微软旗下的Xbox LIVE游戏、Zune音乐与独特的视频体验整合至手机中。
社区管理员
  • Windows客户端开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧