找回密码
 立即注册

QQ登录

只需一步,快速开始

微信扫码登录

搜索
查看: 2249|回复: 0

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

[复制链接]

2

主题

8

回帖

202

积分

一级士官

积分
202
发表于 2017-4-24 20:32:55 | 显示全部楼层 |阅读模式

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));
    }
QQ图片20170424202838.png
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

咨询QQ:1359218528|发帖须知!|Archiver|手机版|小黑屋|UG爱好者论坛 ( 京ICP备10217105号-2 )

GMT+8, 2025-1-10 05:44

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表