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

java通过JNI与delphi是什么?

首页

java通过JNI与delphi是什么?

java通过JNI与delphi是什么?

提交回答

全部答案

    2018-03-22 09:43:19
  •   本程序介绍如何在局域网内安装了信使服务的Windows 2000计算机之间传递消息。
    向窗体上添加两个TLabel组件、两个TEdit组件和一个TButton组件
    首先声明NetMessageBufferSend函数,该函数在netapi32。
      dll库中: type NET_API_STATUS = LongInt; function NetMessageBufferSend(servername: LPCWSTR; msgname: LPCWSTR; fromname: LPCWSTR; buf: Pointer; buflen: DWORD): NET_API_STATUS; stdcall;external ’netapi32。
      dll’; 在程序运行过程中,单击Send按钮,就会向Computer文本框指定的计算机发送Content文本框中输入的消息,响应代码如下: procedure TForm1。Button1Click(Sender: TObject); var WideMsg:PWideChar; DestName:PWideChar; begin DestName:=PWideChar(WideString(Edit1。
      Text)); WideMsg:=PWideChar(WideString(Edit2。Text)); NetMessageBufferSend(nil,DestName,nil,WideMsg,Length(Edit2。
      Text)*2); end; 程序代码如下: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type NET_API_STATUS = LongInt;。

    刘***

    2018-03-22 09:43:19

类似问题

换一换

相关推荐

正在加载...
最新问答 推荐信息 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

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

确定举报此问题

举报原因(必选):