论坛


2008年11月17日 星期一

一个serversocket/clientsocket编程示例(转)

小城太阳| 网络天空vistra-Delphi |23:24:00

  WinSock是一组API,用于在网络上传输数据和交换信息。虽然现在有很多工具如FTP程序可以在网络上传输数据和文件,但是通过WinSock编程有更大的灵活性,它不需要关心网络连接的细节,然而用WinSock编程却很复杂,但是在Delphi中我们并不需要直接与WinSock的API打交道,因...

WinSock API 邮件发送单元 For Delphi【转载】

小城太阳| 网络天空vistra-Delphi |23:16:00

一个WinSock API写的邮件发送单元。调用方法:Sends(SMTP服务器地址, 发送MAIL用户名, 发送MAIL的密码, 发送MAIL全名, 接收MAIL[可和发送MAIL相同],信笺主题, 信笺内容):Bool;{   Send Email Unit One By Anskya   Email:Anskya@Gmail.com&nbsp...

DELPHI下的Winsock编程--从TClientSocket控件出发(转载)

小城太阳| 网络天空vistra-Delphi |23:15:00

DELPHI下的SOCK编程       题外话:我认为学习编程就如同学习外语一样,最好的方式是你先学会如何去运用它,然后才是了解它的语言特性、语法之类的东西。不过很可惜,我们以前的外语教育使用了相反的过程。软件编程也是一样,在很多?..

delphi winsock 函数详解

小城太阳| 网络天空vistra-Delphi |22:11:00

用于初始化Winsock[声明]int WSAStarup(WORD wVersionRequested,LPWSADATA lpWSAData);[参数]wVersionRequested - 要求使用Winsock的最低版本号lpWSAData - Winsock的详细资料[返回值]当函数成功调用时返回0失败时返回非0的值2、socket函数用于生成socket(soket Desc...

delphi 下的 winsock 编程【转载】

小城太阳| 网络天空vistra-Delphi |22:06:00

在谈论TServerSocket等组件编写之前,这里先对Winsock中一些基本概念和API函数做一个简单的说明。一、定址        要通过Winsock建立通信,必须了解如何利用指定的协议为工作站定址。Winsock 2引入了几个新的、与协议无关的函数...

合并多个连续的空格为一个

rarnu| 橙子的Delphi技术专区-delphi |13:14:00

需要使用到第三方正则表达式库uses RegExpr;function MergeSpaces(str: String): String;varre: TRegExpr;beginre := TRegExpr.Create;re.Expression := '\s+';result := re.Replace(str, ' ');re.Free;end;类别:delphi技术 查看评论

How to Shut Down / Reboot Windows 2000 / XP / NT from Delphi code

About.com| About.com Delphi Programming |13:00:49

TIPS :: Under NT-based platforms, there are TOKEN PRIVILEGES. In these privileges, you have one for Shutdown allowance ("SeShutDownPrivilege"). So, the reason why you can't shutdown or reboot Win 2K...

How to write your own components in less than 3 minutes...

delphi3000| delphi3000.com |12:00:00

This tutorial was kept as short as possible, since Delphi can be rather overwhelming, and since this is aimed at the beginner aide any conceptual support, this tutorial will give you a quick and easy start into writing [modifying] components. It w...

How to write your own progressbar in less than 2 minutes...

delphi3000| delphi3000.com |12:00:00

This very short tutorial shows you how to add a progress bar to any web browser programs you make in less than 2 minutes. It is very basic, and kept as short as possible, you can figure out most of the code just by looking at it. Aimed at beginner...

How to create your own splash screen in less than 3 minutes...

delphi3000| delphi3000.com |12:00:00

This is a basic and very short tutorial for creating your own splash screen. The best way to learn Delphi is to have an example, and study the code. Do not rely on 3rd party components when you do not have to! Create your own splash screen in less...

Turbo Pascal version 1.0 - compiler directives

David I| Sip from the Firehose |09:27:31

In the Turbo Pascal version 1.0 manual the compiler directives default values are given special attention in several places.? Early in the manual, there is a note that says: READ THIS !!! Turbo Pascal provides a number of compiler directives to c...