|
马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
我用的MFC向导编写的UG开发程序主框架,想在这个程序中在连接一个动态链接库,这样能实现API函数创建特征的功能吗,我在编译动态链接库的时候总是编译不过去
#include "stdafx.h"
#include "zhou.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__,提示有错误,error C2146: syntax error : missing ';' before identifier 'THIS_FILE'
#endif
功能代码如下
int Project_Model_Create_Cyl1(char *height,char *diam)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState())
double origin[3]={0.0,0.0,0.0};
char *height="60";
char *diam="40";
double direction[3]={0.0,0.0,1.0};
tag_t *cyl_obj_id;
uf_list_p_t features;
int i,err;
char message[200];
UF_LAYER_set_status(1,UF_LAYER_WORK_LAYER);
err=UF_MODL_create_cyl1(UF_NULLSIGN,origin,height,diam,direction,&cyl_obj_id);
if(err!=0)
{
UF_get_fail_message( err,message);
uc1601(message,1);
return err;
}
UF_MODL_ask_list_item(features,0,p_cyl_tag);
UF_MODL_delete_list(&features);
return err;
} |
|