2013-04-21 45 views
0

此錯誤消息來自用於使用marmalade + C++設置原生UI移動應用程序的教程。我剛剛用IwNUI啓動了最基本的Marmalade C++應用程序,它給出了錯誤。這個消息是什麼意思?

錯誤消息:

Message: Failed to open file iwui_style/iwui_style.group 

這裏是主文件:

#include "IwNUI.h" 

using namespace IwNUI; 

int main() 
{ 
    CAppPtr app = CreateApp(); 
    CWindowPtr window = CreateWindow(); 

    app->AddWindow(window); 

    CViewPtr view = CreateView("canvas"); 

    CButtonPtr button1 = CreateButton(CAttributes() 
     .Set("name", "Button1") 
     .Set("caption", "Hello World!") 
     .Set("x1",  "10") 
     .Set("y1",  "10")); 

    view->AddChild(button1); 

    window->SetChild(view); 

    app->ShowWindow(window); 

    app->Run(); 

    return 0; 
} 

和MKB文件:

files 
{ 
    (source) 
    app.cpp 
} 

subprojects 
{ 
    s3e 
    IwNUI 
} 

defines 
{ 
    IW_USE_LEGACY_MODULES 
} 

任何幫助將是巨大的。謝謝!

回答

1

IwNUI模塊使用IwUI模塊作爲備份。作爲黑客,您可以將IwNUI基本示例項目的數據文件夾複製到項目中。數據文件夾將包含您在項目中包含的資源組文件。

相關問題