2014-04-14 2 views
0

Windows에서도 재생하고 싶은 cocos2d-x 3.0 RC 프로젝트를 만들었습니다. CocosDension, libExtensions, libNetwork, libCurl 등과 같은 라이브러리를 프로젝트에 추가 했으므로 게임에 필요합니다. 모든 것을 컴파일 할 때 정상적으로 작동하지만 실행을 시도 할 때 다음 런타임 오류가 발생합니다. 아래에 언급 된 것은 예외입니다.윈도우 폰용 네이티브 코드 컴파일하기 (C++) 8

형 'System.IO.FileNotFoundException'의 예외 PhoneDirect3DXamlAppInterop.DLL 발생하지만 사용자 코드로 처리되지 않았다. 이 예외에 대한 처리기가 있으면 프로그램을 안전하게 계속 진행할 수 있습니다.

이 특정 예외는

private void DrawingSurfaceBackground_Loaded(object sender, RoutedEventArgs e) 
     { 
      if (m_d3dInterop == null) 
      { 
       m_d3dInterop = new Direct3DInterop(); 

       // Set WindowBounds to size of DrawingSurface 
       m_d3dInterop.WindowBounds = new Windows.Foundation.Size(
        (float)Application.Current.Host.Content.ActualWidth, 
        (float)Application.Current.Host.Content.ActualHeight 
        ); 

       // Hook-up native component to DrawingSurfaceBackgroundGrid 
       DrawingSurfaceBackground.SetBackgroundContentProvider(m_d3dInterop.CreateContentProvider()); 
       DrawingSurfaceBackground.SetBackgroundManipulationHandler(m_d3dInterop); 

       // Hook-up Cocos2d-x delegates 
       m_d3dInterop.SetCocos2dEventDelegate(OnCocos2dEvent); 
       m_d3dInterop.SetCocos2dMessageBoxDelegate(OnCocos2dMessageBoxEvent);` 
       m_d3dInterop.SetCocos2dEditBoxDelegate(OpenEditBox); 
      } 
     } 

예외가

m_d3dInterop = new Direct3DInterop(); 

가 나는 또한 아래의 오류 로그를 저장하고 라인에서 발생되는 코드의 블록 아래에서 발생합니다

The specified module could not be found. (Exception from HRESULT: 0x8007007E) 

    at System.StubHelpers.StubHelpers.GetWinRTFactoryObject(IntPtr pCPCMD) 
    at PhoneDirect3DXamlAppComponent.Direct3DInterop..ctor() 
    at PhoneDirect3DXamlAppInterop.MainPage.DrawingSurfaceBackground_Loaded(Object sender, RoutedEventArgs e) 
    at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args) 
    at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName) 

누구든지 어떤 아이디어를 가지고 있다면, 도와주세요

답변