#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}