yuwan wrote:
extern int uc1616 (char * cp1, int * ia2, int ip3, double * rr4 );原型
int ir6;
char *cp1="point construct";
double *rr4;
char buffer[UF_UI_MAX_STRING_LEN];
int ia2=0;
ir6=uc1616(cp1,[$ia2,0,&rr4)]
就这么简单,可是编译出现警告:
'double *' differs in levels of indirection from 'double ** '
different types for formal and actual parameter 4
连接没问题,但是在UG运行时就出现问题,得不到rr4数组!
我看例子里也是这样编的,为什么不行呢??
pzytony wrote:
把 double *rr4; 改成 double rr4; (对!)
把 ir6=uc1616(cp1,[$ia2,0,&rr4)] 改成 ir6=uc1616(cp1,[$ia2,0,rr4)] (错!)
不信你试试
欢迎光临 iCAx开思工具箱 (https://t.icax.org/) | Powered by Discuz! X3.3 |