亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? dlltst_1.pas

?? 包含常用Internet協(xié)議TCP,UDP、HTTP、FTP、Telnet等
?? PAS
字號(hào):
{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Author:       Fran鏾is PIETTE
Creation:     April 02, 2000
Description:  This is a demonstration program for IcsDll1.dll. It will
              dynamically load the DLL, get IcsDllDemo entry point and call
              it. Then display result from DLL.
Version:      1.00
EMail:        francois.piette@pophost.eunet.be    francois.piette@swing.be
              francois.piette@rtfm.be             http://www.rtfm.be/fpiette
Support:      Use the mailing list twsocket@rtfm.be See website for details.
Legal issues: Copyright (C) 2000 by Fran鏾is PIETTE
              Rue de Grady 24, 4053 Embourg, Belgium. Fax: +32-4-365.74.56
              <francois.piette@pophost.eunet.be><francois.piette@swing.be>

              This software is provided 'as-is', without any express or
              implied warranty.  In no event will the author be held liable
              for any  damages arising from the use of this software.

              Permission is granted to anyone to use this software for any
              purpose, including commercial applications, and to alter it
              and redistribute it freely, subject to the following
              restrictions:

              1. The origin of this software must not be misrepresented,
                 you must not claim that you wrote the original software.
                 If you use this software in a product, an acknowledgment
                 in the product documentation would be appreciated but is
                 not required.

              2. Altered source versions must be plainly marked as such, and
                 must not be misrepresented as being the original software.

              3. This notice may not be removed or altered from any source
                 distribution.

              4. You must register this software by sending a picture postcard
                 to the author. Use a nice stamp and mention your name, street
                 address, EMail address and any comment you like to say.

History:


 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
unit DllTst_1;

{$IFDEF VER80}
'Sorry, this is a demo program calling a 32 bit DLL.'
'Upgrade to latest Delphi version to use it.'
{$ENDIF}

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  IniFiles, StdCtrls, ExtCtrls, Buttons;

type
  TIcsDllDemo = function (HostName : PChar;
                          Port     : PChar;
                          Buffer   : PChar;
                          BufSize  : PInteger): Integer; stdcall;

  TDllTestForm = class(TForm)
    ToolsPanel: TPanel;
    DisplayMemo: TMemo;
    HostnameEdit: TEdit;
    Label1: TLabel;
    Label2: TLabel;
    PortEdit: TEdit;
    CallDllButton: TButton;
    procedure FormShow(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure FormCreate(Sender: TObject);
    procedure CallDllButtonClick(Sender: TObject);
    procedure FormDestroy(Sender: TObject);
  private
    FIniFileName : String;
    FInitialized : Boolean;
  public
    procedure Display(Msg : String);
    property IniFileName : String read FIniFileName write FIniFileName;
  end;

var
  DllTestForm : TDllTestForm;
  DllHandle   : THandle;
  IcsDllDemo  : TIcsDllDemo;

implementation

{$R *.DFM}

const
    SectionWindow      = 'Window';
    KeyTop             = 'Top';
    KeyLeft            = 'Left';
    KeyWidth           = 'Width';
    KeyHeight          = 'Height';


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TDllTestForm.FormCreate(Sender: TObject);
begin
    FIniFileName := LowerCase(ExtractFileName(Application.ExeName));
    FIniFileName := Copy(FIniFileName, 1, Length(FIniFileName) - 3) + 'ini';
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TDllTestForm.FormDestroy(Sender: TObject);
begin
    if DllHandle <> 0 then begin
        FreeLibrary(DllHandle);
        DllHandle := 0;
    end;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TDllTestForm.FormShow(Sender: TObject);
var
    IniFile : TIniFile;
begin
    if not FInitialized then begin
        FInitialized := TRUE;

        IniFile      := TIniFile.Create(FIniFileName);
        Width        := IniFile.ReadInteger(SectionWindow, KeyWidth,  Width);
        Height       := IniFile.ReadInteger(SectionWindow, KeyHeight, Height);
        Top          := IniFile.ReadInteger(SectionWindow, KeyTop,
                                            (Screen.Height - Height) div 2);
        Left         := IniFile.ReadInteger(SectionWindow, KeyLeft,
                                            (Screen.Width  - Width)  div 2);
        IniFile.Destroy;
        DisplayMemo.Clear;

        DllHandle := LoadLibrary('IcsDLL1.dll');
        if DllHandle = 0 then begin
            Application.MessageBox('ICSDLL1.DLL not found', 'Error', MB_OK);
            Application.Terminate;
            Exit;
        end;

        IcsDllDemo := GetProcAddress(DllHandle, 'IcsDllDemo');
        if @IcsDllDemo = nil then begin
            Application.MessageBox('IcsDllDemo not found (ICSDLL1.DLL)',
                                   'Error', MB_OK);
            Application.Terminate;
            Exit;
        end;
    end;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TDllTestForm.FormClose(Sender: TObject; var Action: TCloseAction);
var
    IniFile : TIniFile;
begin
    IniFile := TIniFile.Create(FIniFileName);
    IniFile.WriteInteger(SectionWindow, KeyTop,         Top);
    IniFile.WriteInteger(SectionWindow, KeyLeft,        Left);
    IniFile.WriteInteger(SectionWindow, KeyWidth,       Width);
    IniFile.WriteInteger(SectionWindow, KeyHeight,      Height);
    IniFile.Destroy;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TDllTestForm.Display(Msg : String);
begin
    DisplayMemo.Lines.BeginUpdate;
    try
        if DisplayMemo.Lines.Count > 200 then begin
            while DisplayMemo.Lines.Count > 200 do
                DisplayMemo.Lines.Delete(0);
        end;
        DisplayMemo.Lines.Add(Msg);
    finally
        DisplayMemo.Lines.EndUpdate;
        SendMessage(DisplayMemo.Handle, EM_SCROLLCARET, 0, 0);
    end;
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
procedure TDllTestForm.CallDllButtonClick(Sender: TObject);
var
    Buffer  : String;
    BufSize : Integer;
    Status  : Integer;
begin
    Display('Calling DLL...');
    BufSize := 100;
    SetLength(Buffer, BufSize);
    Status := IcsDllDemo(PChar(HostnameEdit.Text),
                         PChar(PortEdit.Text),
                         @Buffer[1], @BufSize);
    SetLength(Buffer, BufSize);
    if Status <> 0 then
        Display('Error #' + IntToStr(Status));
    Display(Buffer);
    Display('Done with DLL');
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}

end.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美视频在线播放| 91亚洲精品久久久蜜桃| 91精品国产综合久久久蜜臀图片| 亚洲午夜久久久久久久久电影网 | 久久99精品久久久久久| 日韩视频国产视频| 精品在线你懂的| 亚洲国产成人在线| 91免费看`日韩一区二区| 亚洲国产一区二区a毛片| 91精品国产91热久久久做人人| 蜜臀久久99精品久久久久久9| 精品精品国产高清一毛片一天堂| 国产精品一区二区无线| 国产精品福利一区二区三区| 欧美天堂亚洲电影院在线播放| 日韩电影一区二区三区| 久久久久一区二区三区四区| 色综合天天性综合| 青青草原综合久久大伊人精品优势| 欧美成人一区二区三区在线观看| 高清免费成人av| 亚洲综合一区在线| 精品久久久网站| 91麻豆免费在线观看| 日韩在线a电影| 国产精品无圣光一区二区| 欧美少妇一区二区| 国产白丝网站精品污在线入口| 亚洲区小说区图片区qvod| 91精品国产手机| 成人国产精品视频| 日本少妇一区二区| 亚洲视频电影在线| 精品精品国产高清一毛片一天堂| 91亚洲精华国产精华精华液| 久久91精品久久久久久秒播| 尤物视频一区二区| 中文字幕免费观看一区| 日韩一区二区在线观看| 色婷婷综合视频在线观看| 国产精品一区二区91| 亚洲va天堂va国产va久| 中文字幕一区二区在线观看| 日韩欧美国产一区二区在线播放 | 日韩电影免费在线| 国产精品美女久久久久久久久久久 | 亚洲色图丝袜美腿| 久久久国产午夜精品| 欧美疯狂性受xxxxx喷水图片| 国产成人精品亚洲日本在线桃色| 日本午夜精品一区二区三区电影| 玉足女爽爽91| 亚洲欧洲国产日韩| 国产精品三级电影| 久久久99精品久久| 精品少妇一区二区三区视频免付费| 欧美手机在线视频| 色中色一区二区| 99久久免费精品高清特色大片| 国产黄色成人av| 国产一区不卡视频| 国模无码大尺度一区二区三区| 日本不卡1234视频| 日韩国产欧美三级| 香蕉影视欧美成人| 亚洲高清在线视频| 亚洲综合免费观看高清在线观看| 亚洲视频免费看| 亚洲六月丁香色婷婷综合久久 | 午夜影院久久久| 亚洲福利国产精品| 午夜精品一区在线观看| 五月婷婷综合网| 亚洲国产一区二区三区| 一区二区三区精品| 亚洲二区在线观看| 偷窥少妇高潮呻吟av久久免费| 一区二区三区中文字幕精品精品 | 天堂av在线一区| 亚洲高清免费观看高清完整版在线观看| 亚洲综合在线观看视频| 亚洲色图视频网站| 亚洲一区在线播放| 亚洲综合精品自拍| 日韩在线a电影| 久久精品国产99久久6| 人人精品人人爱| 激情深爱一区二区| 成人久久视频在线观看| 不卡一二三区首页| 欧美这里有精品| 91精品久久久久久久久99蜜臂| 5566中文字幕一区二区电影| 欧美tickling挠脚心丨vk| 在线播放视频一区| 26uuu欧美日本| 国产精品欧美一区二区三区| 水野朝阳av一区二区三区| 天堂久久久久va久久久久| 激情综合亚洲精品| 91在线观看下载| 欧美日韩一区二区在线观看| 欧美精品久久99久久在免费线| 日韩欧美色综合网站| 中文在线免费一区三区高中清不卡| 中文字幕一区二区5566日韩| 亚洲成av人片观看| 狠狠狠色丁香婷婷综合激情| 99天天综合性| 日韩一区二区三区在线视频| 国产精品免费久久久久| 亚洲大片在线观看| 国产真实精品久久二三区| 91丨porny丨蝌蚪视频| 欧美乱妇20p| 中文字幕欧美激情一区| 亚洲电影视频在线| 国产91在线看| 在线综合视频播放| 中文字幕在线观看一区二区| 奇米影视在线99精品| 国产91精品久久久久久久网曝门| 欧美撒尿777hd撒尿| 国产视频一区二区三区在线观看| 亚洲欧美色图小说| 国产一区999| 91精品国产免费久久综合| 综合自拍亚洲综合图不卡区| 精品一区二区日韩| 欧美剧情片在线观看| 国产精品日韩成人| 美女视频黄频大全不卡视频在线播放| yourporn久久国产精品| 欧美tk—视频vk| 天堂av在线一区| 欧洲精品一区二区三区在线观看| 久久久久综合网| 日韩主播视频在线| 日本韩国欧美一区二区三区| 国产亚洲视频系列| 奇米精品一区二区三区四区 | 日韩成人免费电影| 色婷婷综合久久| 亚洲欧洲国产专区| 国产成人免费视频精品含羞草妖精| 欧美一级精品在线| 亚洲二区在线观看| 91电影在线观看| 亚洲人成网站在线| 高潮精品一区videoshd| 日韩精品一区在线| 蜜臀久久久久久久| 91精品综合久久久久久| 亚洲亚洲精品在线观看| 91在线播放网址| 亚洲免费av高清| 一本色道**综合亚洲精品蜜桃冫| 国产精品三级在线观看| 国产成人av电影在线| 久久嫩草精品久久久精品一| 麻豆精品一区二区三区| 日韩欧美国产一区二区在线播放| 日本在线不卡一区| 欧美人狂配大交3d怪物一区 | 蜜桃在线一区二区三区| 日韩一区二区三| 奇米777欧美一区二区| 日韩免费视频一区| 久久国产麻豆精品| 日韩精品最新网址| 国内精品久久久久影院薰衣草| 欧美大尺度电影在线| 久久国产麻豆精品| 久久九九全国免费| 白白色 亚洲乱淫| 亚洲激情男女视频| 欧美亚洲动漫另类| 日韩成人伦理电影在线观看| 日韩一区二区中文字幕| 国产一区二区三区在线观看免费 | 国产精品久久免费看| 91网页版在线| 一区二区三区四区av| 色老汉av一区二区三区| 日韩在线观看一区二区| 久久综合久久综合亚洲| 成人激情小说网站| 一区二区在线观看免费视频播放 | 蜜臀av性久久久久av蜜臀妖精| 精品国产伦理网| 成人一区二区在线观看| 亚洲人成精品久久久久| 欧美浪妇xxxx高跟鞋交| 国产一区二三区好的| 亚洲精品高清在线| 日韩精品一区二区三区四区视频| 国产成人福利片| 一区二区三区精品在线观看| 日韩午夜三级在线|