一级士官
UID2334428
U币1
G币177
技术0
主题2
精华0
阅读权限30
注册时间2015-4-22
最后登录2022-2-14
在线时间13 小时
一级士官
|
1>D:\NX7.5\ugopen\NXOpen/UI.hxx(157) : warning C4003: “CreateDialogA”宏的实参不足
1>D:\NX7.5\ugopen\NXOpen/UI.hxx(157) : error C2059: 语法错误 : “,”
1>.\b.cpp(64) : warning C4003: “CreateDialogA”宏的实参不足
具体错误在标红处
try
{
// Initialize the NX Open C++ API environment
b::theSession = NXOpen::Session::GetSession();
b::theUI = UI::GetUI();
theDialogName = "b.dlx";
theDialog = b::theUI->CreateDialog(theDialogName.c_str());//CreateDialogA”宏的实参不足
// Registration of callback functions
theDialog->AddApplyHandler(make_callback(this, &b::apply_cb));
theDialog->AddOkHandler(make_callback(this, &b::ok_cb));
theDialog->AddUpdateHandler(make_callback(this, &b::update_cb));
theDialog->AddCancelHandler(make_callback(this, &b::cancel_cb));
theDialog->AddInitializeHandler(make_callback(this, &b::initialize_cb));
theDialog->AddFocusNotifyHandler(make_callback(this, &b::focusNotify_cb));
theDialog->AddKeyboardFocusNotifyHandler(make_callback(this, &b::keyboardFocusNotify_cb));
theDialog->AddDialogShownHandler(make_callback(this, &b::dialogShown_cb));
}
|
|