二次开发初级菜鸟求助 我使用的是4.0 版本 #include "protoolkit.h" #include "promdl.h" #include "prosolid.h" #include "proobjects.h" #include "prowstring.h" int user_initialize(int argc,char *argv[]) { int partopen(); partopen(); return(0); } void user_terminate() { printf("pro/toolkit application terminated successfully/n"); return; } int partopen() { profamilyname name; promdl part; prostringtowstring (name,"aaa.part.1"); promdlretrieve (name,pro_part,&part); proobjectwindowcreate( name,pro_part,null); prosoliddisplay (part); return(0); } 生成时 发生错误如下 1>------ 已启动生成: 项目: 123, 配置: Debug Win32 ------ 1>正在编译... 1>aaa.c 1>c:/documents and settings/lq/桌面/aaa.c(19) : error C2065: 'profamilyname' : undeclared identifier 1>c:/documents and settings/lq/桌面/aaa.c(19) : error C2146: syntax error : missing ';' before identifier 'name' 1>c:/documents and settings/lq/桌面/aaa.c(19) : error C2065: 'name' : undeclared identifier 1>c:/documents and settings/lq/桌面/aaa.c(20) : error C2065: 'promdl' : undeclared identifier 1>c:/documents and settings/lq/桌面/aaa.c(20) : error C2146: syntax error : missing ';' before identifier 'part' 1>c:/documents and settings/lq/桌面/aaa.c(20) : error C2065: 'part' : undeclared identifier 1>c:/documents and settings/lq/桌面/aaa.c(21) : warning C4013: 'prostringtowstring' undefined; assuming extern returning int 1>c:/documents and settings/lq/桌面/aaa.c(22) : warning C4013: 'promdlretrieve' undefined; assuming extern returning int 1>c:/documents and settings/lq/桌面/aaa.c(22) : error C2065: 'pro_part' : undeclared identifier 1>c:/documents and settings/lq/桌面/aaa.c(23) : warning C4013: 'proobjectwindowcreate' undefined; assuming extern returning int 1>c:/documents and settings/lq/桌面/aaa.c(23) : error C2065: 'null' : undeclared identifier 1>c:/documents and settings/lq/桌面/aaa.c(24) : warning C4013: 'prosoliddisplay' undefined; assuming extern returning int 1>生成日志保存在“file://c:/Documents and Settings/LQ/My Documents/Visual Studio 2005/Projects/123/123/Debug/BuildLog.htm” 1>123 - 8 个错误,4 个警告 ========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========怎么回事呀?
|