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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dlltst1.cpp

?? 包含常用Internet協議TCP,UDP、HTTP、FTP、Telnet等
?? CPP
字號:
/*---------------------------------------------------------------------------

Author:       Fran鏾is PIETTE
Creation:     April 08, 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:


---------------------------------------------------------------------------*/
#include <vcl.h>
#include <vcl\inifiles.hpp>
#pragma hdrstop
#include "DllTst1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
#define SectionWindow      "Window"
#define KeyTop             "Top"
#define KeyLeft            "Left"
#define KeyWidth           "Width"
#define KeyHeight          "Height"
TDllTestForm *DllTestForm;
typedef __declspec(dllimport) int __stdcall (*TIcsDllDemo)(char *HostName,
                                                           char *Port,
                                                           char *Buffer,
                                                           int  *BufSize);
HANDLE      DllHandle;
TIcsDllDemo IcsDllDemo;
//---------------------------------------------------------------------------
__fastcall TDllTestForm::TDllTestForm(TComponent* Owner)
        : TForm(Owner)
{
    // Build Ini file name
    FIniFileName = LowerCase(ExtractFileName(Application->ExeName));
    FIniFileName = FIniFileName.SubString(1, FIniFileName.Length() - 3) + "ini";
}
//---------------------------------------------------------------------------
void __fastcall TDllTestForm::FormShow(TObject *Sender)
{
    TIniFile    *IniFile;

    if (!FInitialized) {
        FInitialized     = TRUE;
        IniFile          = new TIniFile(FIniFileName);
        Top              = IniFile->ReadInteger(SectionWindow, KeyTop,    Top);
        Left             = IniFile->ReadInteger(SectionWindow, KeyLeft,   Left);
        Width            = IniFile->ReadInteger(SectionWindow, KeyWidth,  Width);
        Height           = IniFile->ReadInteger(SectionWindow, KeyHeight, Height);
        delete IniFile;
        DisplayMemo->Clear();

        DllHandle = LoadLibrary("IcsDLL1.dll");
        if (DllHandle == 0) {
            Application->MessageBox("ICSDLL1.DLL not found", "Error", MB_OK);
            Application->Terminate();
            return;
        }

        IcsDllDemo = (TIcsDllDemo)GetProcAddress(DllHandle, "IcsDllDemo");
        if (IcsDllDemo == NULL) {
            Application->MessageBox("IcsDllDemo not found (ICSDLL1.DLL)", "Error", MB_OK);
            Application->Terminate();
            return;
        }
    }
}
//---------------------------------------------------------------------------
void __fastcall TDllTestForm::FormDestroy(TObject *Sender)
{
    if (DllHandle) {
        FreeLibrary(DllHandle);
        DllHandle = 0;
    }
}
//---------------------------------------------------------------------------
// Display a message in our display memo. Delete lines to be sure to not
// overflow the memo which may have a limited capacity.
void __fastcall TDllTestForm::Display(AnsiString Msg)
{
    DisplayMemo->Lines->BeginUpdate();
    try {
        if (DisplayMemo->Lines->Count > 200) {
            while (DisplayMemo->Lines->Count > 200)
                DisplayMemo->Lines->Delete(0);
        }
        DisplayMemo->Lines->Add(Msg);
    } __finally {
        DisplayMemo->Lines->EndUpdate();
        SendMessage(DisplayMemo->Handle, EM_SCROLLCARET, 0, 0);
    }
}
//---------------------------------------------------------------------------
void __fastcall TDllTestForm::FormClose(TObject *Sender, TCloseAction &Action)
{
    TIniFile *IniFile;

    IniFile = new TIniFile(FIniFileName);
    IniFile->WriteInteger(SectionWindow, KeyTop,    Top);
    IniFile->WriteInteger(SectionWindow, KeyLeft,   Left);
    IniFile->WriteInteger(SectionWindow, KeyWidth,  Width);
    IniFile->WriteInteger(SectionWindow, KeyHeight, Height);
    delete IniFile;
    if (DllHandle) {
        FreeLibrary(DllHandle);
        DllHandle = 0;
    }
}
//---------------------------------------------------------------------------
void __fastcall TDllTestForm::CallDllButtonClick(TObject *Sender)
{
    AnsiString Buffer;
    int        BufSize;
    int        Status;

    Display("Calling DLL...");
    BufSize = 100;
    Buffer.SetLength(BufSize);
    Status = IcsDllDemo(HostnameEdit->Text.c_str(),
                        PortEdit->Text.c_str(),
                        &Buffer[1], &BufSize);
    Buffer.SetLength(BufSize);
    if (Status)
        Display("Error #" + IntToStr(Status));
    Display(Buffer);
    Display("Done with DLL");
}
//---------------------------------------------------------------------------

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本乱人伦一区| 欧美丰满高潮xxxx喷水动漫| 国产一区视频网站| 日产精品久久久久久久性色| 丝袜亚洲另类欧美综合| 日韩精品电影在线| 免费观看91视频大全| 久久99精品久久久| 国产91在线观看丝袜| 99在线热播精品免费| 91黄视频在线| 91精品国产91久久久久久一区二区| 日韩欧美中文字幕制服| 久久久久青草大香线综合精品| 久久久精品天堂| 亚洲乱码国产乱码精品精98午夜| 亚洲一二三四区不卡| 美国十次了思思久久精品导航| 国产伦精品一区二区三区在线观看| 国产成人精品亚洲日本在线桃色| 91在线观看地址| 日韩欧美123| 中文字幕日韩精品一区| 视频一区欧美日韩| 国产高清在线精品| 色8久久精品久久久久久蜜| 日韩午夜激情电影| 国产精品国产成人国产三级| 五月婷婷另类国产| 国产成人鲁色资源国产91色综| 色噜噜夜夜夜综合网| 日韩精品一区二区三区老鸭窝| 国产精品人人做人人爽人人添| 五月天精品一区二区三区| 国产福利电影一区二区三区| 欧美日韩激情一区| 国产精品免费aⅴ片在线观看| 三级欧美韩日大片在线看| www.欧美日韩国产在线| 精品成人在线观看| 亚洲成人av一区| 91视频国产资源| 久久综合国产精品| 亚洲国产你懂的| gogogo免费视频观看亚洲一| 欧美一区二区三区公司| 亚洲资源中文字幕| av一区二区三区四区| 久久久美女艺术照精彩视频福利播放| 亚洲宅男天堂在线观看无病毒| 国产伦精品一区二区三区免费迷 | 一区二区高清免费观看影视大全| 免费日本视频一区| 欧美影院精品一区| 亚洲四区在线观看| 国产精品99久久久久久久女警 | 在线观看www91| 国产精品免费观看视频| 国产精品一区久久久久| 日韩精品中文字幕在线一区| 三级久久三级久久久| 91黄色激情网站| 一区二区三区在线免费| 成人av免费在线| 亚洲国产成人在线| 成人精品国产福利| 亚洲国产成人在线| www.日本不卡| 亚洲天堂网中文字| 91九色02白丝porn| 亚洲一级二级在线| 欧美日韩大陆一区二区| 五月婷婷综合激情| 欧美精品乱码久久久久久| 五月婷婷欧美视频| 日韩欧美在线影院| 久久丁香综合五月国产三级网站| 欧美成人综合网站| 国产精品996| 亚洲国产精品成人综合| www.亚洲在线| 亚洲一级二级三级在线免费观看| 欧美综合久久久| 日韩黄色免费电影| 26uuu色噜噜精品一区二区| 久久97超碰国产精品超碰| 久久久一区二区| 99久久久国产精品免费蜜臀| 亚洲一线二线三线久久久| 制服丝袜亚洲播放| 国产精品888| 亚洲人成7777| 欧美一级高清片| 国产91精品精华液一区二区三区| 国产精品伦理一区二区| 色久优优欧美色久优优| 免费在线视频一区| 国产精品美女久久久久高潮| 在线视频你懂得一区| 香蕉影视欧美成人| 久久久不卡网国产精品一区| 91久久国产综合久久| 精彩视频一区二区| 最新国产成人在线观看| 日韩午夜精品电影| 色综合中文字幕| 久久66热偷产精品| 亚洲精品欧美二区三区中文字幕| 日韩视频永久免费| 波多野结衣精品在线| 视频在线观看国产精品| 国产三级一区二区| 欧美丰满美乳xxx高潮www| 成人午夜av电影| 免费xxxx性欧美18vr| 亚洲特黄一级片| 久久久久久久国产精品影院| 在线视频国内自拍亚洲视频| 国产精品一区二区视频| 日本伊人精品一区二区三区观看方式| 国产日韩三级在线| 日韩欧美国产午夜精品| 欧美无砖砖区免费| 91无套直看片红桃| 粉嫩高潮美女一区二区三区| 日韩制服丝袜先锋影音| 玉米视频成人免费看| 中文字幕欧美激情一区| 精品国产一区二区三区不卡| 欧美理论电影在线| 91久久人澡人人添人人爽欧美| 国产成人日日夜夜| 国产一区二区久久| 精品一区二区三区香蕉蜜桃| 亚洲午夜免费电影| 亚洲视频1区2区| 中文字幕亚洲一区二区va在线| 久久久蜜臀国产一区二区| 欧美一区二区三区播放老司机| 欧美性猛片xxxx免费看久爱| 91浏览器入口在线观看| 国产成人久久精品77777最新版本| 九九精品视频在线看| 免费国产亚洲视频| 日本不卡在线视频| 男男视频亚洲欧美| 久久99这里只有精品| 日本成人在线网站| 美女视频黄频大全不卡视频在线播放 | 欧美日韩成人一区二区| 在线观看一区二区精品视频| 在线看不卡av| 欧美久久久久久久久中文字幕| 欧美日韩卡一卡二| 91.com视频| 26uuu亚洲| 国产精品理论片| 一区二区三区91| 丝袜国产日韩另类美女| 蜜桃一区二区三区在线观看| 另类小说图片综合网| 国产精品亚洲一区二区三区在线| 丰满少妇久久久久久久| 色哟哟亚洲精品| 正在播放亚洲一区| 久久久另类综合| 中文字幕视频一区二区三区久| 亚洲精品欧美专区| 日韩和的一区二区| 国产成人精品aa毛片| 91久久精品日日躁夜夜躁欧美| 在线不卡的av| 久久久久久久网| 亚洲美女视频一区| 免费观看成人av| www.在线欧美| 日韩一区二区三区在线视频| 亚洲精品在线观| 一级特黄大欧美久久久| 日本成人中文字幕在线视频| 国产精品白丝av| 欧美日韩高清影院| 国产精品素人视频| 亚洲国产综合色| 国产suv精品一区二区883| 欧美中文字幕一区二区三区| 欧美精品一区二区在线观看| 亚洲精选免费视频| 国产一区二区三区不卡在线观看| 色94色欧美sute亚洲13| 欧美mv日韩mv国产网站app| 综合久久一区二区三区| 久久精品国产一区二区三区免费看| av一区二区不卡| 精品国产乱码久久久久久老虎 | 久久婷婷久久一区二区三区| 一区二区欧美精品| 国产91富婆露脸刺激对白| 日韩一区二区三区电影 | 4438成人网|