ゞ殷小天 发表于 2017-4-24 20:32:55

NX二次开发+BlockUI 调用动态链接库,添加<windows.h>后程序报错


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));
    }
页: [1]
查看完整版本: NX二次开发+BlockUI 调用动态链接库,添加<windows.h>后程序报错