在线求9!!!如何在PB中调用Delphi编写的Dll
ptzzg 2004-08-28 05:46:14 Delphi编译的Dll中声明函数如下:
function ShowForm(PDept: PChar): boolean; stdcall;
在PB9.0中声明:
FUNCTION boolean ShowForm(ref String PDept) LIBRARY "project1.dll"
调用时出现:
PowerBuilder Application Execution Error(R0021)
Applicaton terminated.
Error:Bad runtime function reference at line 1 in clicked event fo object cb_1 of main
请问:这是个什么错误。我该如何调用这个函数(在Delphi中调用正常)