点击查看详细介绍

UG二次开发(UG/Open API编程基础十四章)的问题

zengshengqu 19年前 8025 4

购买与咨询 NX 二次开发视频教程,请联系微信号:13890821008  QQ号:85585969  


在清华的那本UG/Open API编程基础十四章中,那个例子为程序加了一个CVertex的类,可是我做例子的时候有编译错误,如下:
--------------------Configuration: testforccc - Win32 Debug--------------------
Compiling...
test_template.c
e:\ug open ex\bug\my_source\复件 testforccc\vertex.h(12) : error C2061: syntax error : identifier 'CVertex'
e:\ug open ex\bug\my_source\复件 testforccc\vertex.h(12) : error C2059: syntax error : ';'
e:\ug open ex\bug\my_source\复件 testforccc\vertex.h(13) : error C2449: found '{' at file scope (missing function header?)
e:\ug open ex\bug\my_source\复件 testforccc\vertex.h(18) : error C2059: syntax error : '}'
e:\ug open ex\bug\my_source\复件 testforccc\test_template.c(120) : error C2065: 'CHANGE_cbs' : undeclared identifier
e:\ug open ex\bug\my_source\复件 testforccc\test_template.c(120) : error C2099: initializer is not a constant
e:\ug open ex\bug\my_source\复件 testforccc\test_template.c(315) : warning C4047: 'function' : 'struct UF_STYLER_callback_info_s *' differs in levels of indirection from 'int '
e:\ug open ex\bug\my_source\复件 testforccc\test_template.c(315) : warning C4024: 'UF_STYLER_create_dialog' : different types for formal and actual parameter 2
Error executing cl.exe.

testforccc.dll - 6 error(s), 2 warning(s)
不知道为什么,请教大家,如何添加一个C 的类呢?
这个例子先用UIstyler做一个界面,然后用VC创建一个win32dll工程,将UIstyler生成的。h和。c文件加载到工程你中,然后为工程创建一个类。可见附件。

0

最新回复 (4)
  • zengshengqu 19年前
    1

    原来不是创建win32dll,而是用UG wizard创建一个工程,然后将uistyler生成的文件覆盖ugwizard里面的文件

  • zengshengqu 19年前
    2

    原来不是创建win32dll,而是用UG wizard创建一个工程,然后将uistyler生成的文件覆盖ugwizard里面的文件

  • liangalan 18年前
    3

    可以帮你,但是你说的都没有说明白

  • gde_cyj 18年前
    4

    可以帮你,但是你说的都没有说明白

请登录后发表新帖