Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Please notice, that the whole projects are already created, you don’t have to do this by yourself. However, this tutorial will help you to get a better start using the components. First, create a new project and save it as ServerUnit.pas respectively Server,dpr. Then add a new project to the project Group and save it as ClientUnit.pas and Client.dpr. Create a new unit csGlobals.pas and add csGlobals to the uses section of both, client and server. | Application InterProcess Communication Tutorial Copyright 2002-2003 by Peter Sippel Datentechnik In this Tutorial you will learn how easy it is to link your applications working together as one. See here how to use the TAIPC-Classes. If you have detailed questions about the classes members please see the online help. Create your projects and the project group Please notice that the whole projects are already created you don t have to do this by yourself. However this tutorial will help you to get a better start using the components. First create a new project and save it as ServerUnit.pas respectively Server dpr. Then add a new project to the project Group and save it as ClientUnit.pas and Client.dpr. Create a new unit csGlobals.pas and add csGlobals to the uses section of both client and server. csGlobals.pas unit Globals interface uses classes type TStatusMsg record status string 32 percent integer end PStatusMsg TStatusMsg TTestBuffer record i integer d double s string 32 end PTestBuffer TTestBuffer type TTestObject class TComponent private fd double fi integer fs string public NotAccessible integer published property i integer read fi write fi property d double read fd write fd property s string read fs write fs end implementation initialization Registerclass TTestObject finalization UnRegisterClass TTestObject end. Only the published members will be sended to the receiver. We register the class in the initialization and unregister in the finalization section. The Server project Now we are going to create the Server program. Add the following components to the form A panel change Align to alLeft Caption and BevelOuter to bvNone A splitter change the width to 5 A listview change ViewStyle to vsReport ReadOnly to true and create 5 columns Handle Name Kind Status Progress 3 checkboxes set the captions to Active Ask on Login and AllowDupNames 4 buttons set the captions to Unlink client Send ClientList Send Testbuffer and SendText set enabled to false Of course an .