爱问知识人 爱问教育 医院库

pb如何调用c#写的dll

首页

pb如何调用c#写的dll

pb如何调用c#写的dll?

提交回答
好评回答
  • 2018-02-02 00:05:27
      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。
       --------------------------- 确定 --------------------------- 。

    t***

    2018-02-02 00:05:27

类似问题

换一换
  • C#/.NET 相关知识

  • 电脑网络技术
  • 电脑网络

相关推荐

正在加载...

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):