搜索
首页 电脑/网络 程序设计 C#/.NET

pb如何调用c#写的dll

pb如何调用c#写的dll?

全部回答

2018-02-02

0 0

    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。
   --------------------------- 确定 --------------------------- 。  。

类似问题换一批

热点推荐

热度TOP

相关推荐
加载中...

热点搜索 换一换

电脑/网络
C#/.NET
程序设计
电脑装机
操作系统/系统故障
硬件
笔记本电脑
百度
互联网
反病毒
软件
程序设计
C#/.NET
数据库
C/C++
VB
JAVA相关
VC++
汇编语言
其他编程语言
C#/.NET
C#/.NET
举报
举报原因(必选):
取消确定举报