pb如何调用c#写的dll
pb如何调用c#写的dll?
Macintosh These are declarations of global external functions for the functions in an export file on the Macintosh。
The arguments for the LIBRARY keyword (for example, PBSample1。dll) are fragment names, not shared library filenames。
For more information, see Application Techniques。 FUNCTION integer f_addnumbers(integer i1, integer i2)& LIBRARY "PBSample1。
dll " FUNCTION long f_copystring(ref string dst, & string src) LIBRARY "PBSample1。dll " SUBROUTINE f_incrementnumber(ref integer i1, & integer i2) LIBRARY "PBSample1。
dll " --------------------------------------------------------------------- UNIX TheWind/UlayerofPowerBuilderprovidesUNIXsharedlibraryversionsofthreeWindowsSDKDLLs。
OnSolaris,declarationsofWindowsSDKfunctionslooklikethis( onAIXandHP-UX): FUNCTION long GetModuleHandle(string modulename) & LIBRARY " " FUNCTION boolean GetModuleUsage(long hWnd) & LIBRARY " " -------------------------------------------- 声明为ref的为实参,既为传入值也为传出值 -------------------------------------------- 调用 函数名( 参数1,参数2) 有返回的变量 val = 函数名( 参数1,参数2) 或者: PB中如何调用C#中的。
dll动态连接库, C#中的代码如何写? 我是这样写的! C#中:文件名ClassLibrary。dll using System; class MyClass { public int Main(out int i) { return i; } } PB中: 定义 FUNCTION int Main(int i) Library "ClassLibrary。
dll " 事件中: int c,d d=Main(c) MessageBox(string(d),strign(c)) 错误提示: --------------------------- PowerBuilder Application Execution Error (R0021) --------------------------- Application terminated。
Error: Bad runtime function reference at line 2 in clicked event of object cb_1 of w_dll。
--------------------------- 确定 --------------------------- 。
答:在 VS 2008中,我们就开发人员所关心的一些常见的使用场景在性能上作了很大的改进.我们对新的产品功能以及现有的产品功能都设置了明确的性能指标。 例如,对于新...详情>>