如何用pb9.0调用pb9.0自己生成的dll文件,出错提示为:error : bad runtime function reference at line 5 in open event of object bbb
ppp9 2005-01-17 12:59:37 如何用pb9.0调用pb9.0自己生成的dll文件.解答正确给200分
aaa.dll 内容为:
公用函数为f_add a,b,c 为integer型
a=a*100
b=b*50
c= a + b
return 0
bbb调用内容:
声明:
FUNCTION INT f_add (int a,int b, ref int c) Library "aaa.DLL"
调用:
open事件中内容:
int a,b,c
a=100
b=200
c=0
f_add(a,b,c)
messagebox('',string(c))
并且也将aaa.dll做为pbl的样式加入到了bbb.pbt中.
调用时出现以下错:
出错提示为:error : bad runtime function reference at line 5 in open event of object bbb