【发布时间】:2014-02-17 21:38:30
【问题描述】:
我正在开发一个 UI 应用程序并尝试将CAlertDialogPtr 与IwNUI 系统一起使用。我收到一个我无法解读的错误,我尝试添加其他库和系统,但仍然没有用。错误是:
IwAssert failure (GX, 1339). Message: Could not find resource named alertdialog (of type CIwUIElement)
Callstack: CIwResManager::GetResNamed
请帮助我/发送一些反馈,我需要解决这个问题。这是我的一些代码:
class AppPorBen {
//public attribute
CAlertDialogPtr home_aTest;
//this comes from my main method
home_aTest = CreateAlertDialog(CAttributes()
.Set("name", "AlertDialog")
.Set("title", "s3eNUIAlertDialog")
.Set("message", "Quiere cerrar esta alerta?")//.Set("message", scrollPosition.m_Y)
.Set("positiveButtonCaption", "Yes")
.Set("negativeButtonCaption", "No")
.Set("neutralButtonCaption", "Maybe")
);
//this uses the alert dialog on a handler
home_aTest->Show();
};
谢谢!
【问题讨论】:
标签: c++ user-interface dialog alert marmalade