Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
MyClient.cpp
Package: c++builder6编程实例.ZIP [view]
Upload User: lulishicai
Upload Date: 2010-03-01
Package Size: 13202k
Code Size: 1k
Category:
Delphi-C++Builder
Development Platform:
C++ Builder
- //---------------------------------------------------------------------------
- #include <vcl.h>
- #pragma hdrstop
- #include "MyClient.h"
- //---------------------------------------------------------------------------
- #pragma package(smart_init)
- #pragma resource "*.dfm"
- TClientForm *ClientForm;
- //---------------------------------------------------------------------------
- __fastcall TClientForm::TClientForm(TComponent* Owner)
- : TForm(Owner)
- {
- }
- //---------------------------------------------------------------------------
- void __fastcall TClientForm::Button1Click(TObject *Sender)
- {
- DdeClientConv1->SetLink("Server","DdeServerConv1");
- DdeClientItem1->DdeItem="DdeServerItem1";
- }
- //---------------------------------------------------------------------------
- void __fastcall TClientForm::DdeClientItem1Change(TObject *Sender)
- {
- Memo1->Lines=DdeClientItem1->Lines;
- }
- //---------------------------------------------------------------------------
- void __fastcall TClientForm::Button2Click(TObject *Sender)
- {
- TDdeClientConv *DdeClient;
- DdeClient=DdeClientItem1->DdeConv;
- if(DdeClient!=NULL)
- DdeClient->PokeDataLines("DdeServerItem1",Memo2->Lines);
- }
- //---------------------------------------------------------------------------
- void __fastcall TClientForm::Button3Click(TObject *Sender)
- {
- Application->Terminate();
- }
- //---------------------------------------------------------------------------