NX二次开发 CreateDialog函数在UI.hxx文件和WinUser.h中的冲突
在UG二次开发中,若使用MFC库,一旦加上#include<Afx.h>头文件,下面这句话就报错
theDialog = GetPoints::theUI->CreateDialog(theDlxFileName);
解决方法添加以下代码
#ifdef CreateDialog
#undef CreateDialog
void* CreateDialog();
#endif
NX二次开发 CreateDialog函数在UI.hxx文件和WinUser.h中的冲突
在UG二次开发中,若使用MFC库,一旦加上#include<Afx.h>头文件,下面这句话就报错
theDialog = GetPoints::theUI->CreateDialog(theDlxFileName);
解决方法添加以下代码
#ifdef CreateDialog
#undef CreateDialog
void* CreateDialog();
#endif