以下是引用吹水佬在2022-2-20 09:11:06的发言:
测试了一下,API最多25个参数,VFP函数就26个
** DLLIMPORT void test(
** int* a,int* b,int* c,int* d,int* e,int* f,int* g,int* h,int* i,int* j,
** int* k,int* l,int* m,int* n,int* o,int* p,int* q,int* r,int* s,int* t,
** int* u,int* v,int* w,int* x,int* y,int* z)
** {
** *a=1, *b=2, *c=3, *d=4, *e=5, *f=6, *g=7, *h=8, *i=9, *j=10,*k=11,*l=12,*m=13;
** *n=14,*o=15,*p=16,*q=17,*r=18,*s=19,*t=20,*u=21,*v=22,*w=23,*x=24,*y=25,*z=26;
** }
DECLARE test IN test.dll ;
long@,long@,long@,long@,long@,long@,long@,long@,long@,long@,;
long@,long@,long@,long@,long@,long@,long@,long@,long@,long@,;
long@,long@,long@,long@,long@,long@
STORE 0 TO a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z
test(@a,@b,@c,@d,@e,@f,@g,@h,@i,@j,@k,@l,@m,@n,@o,@p,@q,@r,@s,@t,@u,@v,@w,@x,@y,@z)
? a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z
测试了一下,API最多25个参数,VFP函数就26个
** DLLIMPORT void test(
** int* a,int* b,int* c,int* d,int* e,int* f,int* g,int* h,int* i,int* j,
** int* k,int* l,int* m,int* n,int* o,int* p,int* q,int* r,int* s,int* t,
** int* u,int* v,int* w,int* x,int* y,int* z)
** {
** *a=1, *b=2, *c=3, *d=4, *e=5, *f=6, *g=7, *h=8, *i=9, *j=10,*k=11,*l=12,*m=13;
** *n=14,*o=15,*p=16,*q=17,*r=18,*s=19,*t=20,*u=21,*v=22,*w=23,*x=24,*y=25,*z=26;
** }
DECLARE test IN test.dll ;
long@,long@,long@,long@,long@,long@,long@,long@,long@,long@,;
long@,long@,long@,long@,long@,long@,long@,long@,long@,long@,;
long@,long@,long@,long@,long@,long@
STORE 0 TO a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z
test(@a,@b,@c,@d,@e,@f,@g,@h,@i,@j,@k,@l,@m,@n,@o,@p,@q,@r,@s,@t,@u,@v,@w,@x,@y,@z)
? a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z
昨天折腾完了,api定义最多25个。
感谢版主