Read Port
[code lang=”delphi”]function ReadPortB( wPort : Word ) : Byte; begin asm mov dx, wPort in al, dx mov result, al end; end; [/code]…
Write Port
[code lang=”delphi”]procedure WritePortB( wPort : Word; bValue : Byte ); begin asm mov dx, wPort mov al, bValue out dx, al end; end;…
Information On OpenTools API – Where?
> Can you tell me what the possibilities are from Open Tools API? > Or can you give me links to sample codes…
Check for valid URL
Parsing out a URL/Web Address/Email Address Getting a list of URLs from a common sentence, or a line of text: Written by: Nelson…
Get your internet IP address
//How to get your local IP (internet). //You will have to include Winsock.pas [code lang=”delphi”]function TForm1.LocalIP : string; type TaPInAddr = array [0..10]…
Getting the Local IP Address
> How can you get the IP address for the local computer? > Your help is appreciated… The following function will give you…
ActiveX: MS Testcontainer doesn’t close Delphi ActiveX
MS Testcontainer doesn’t close whith Delphi ActiveX. Same problem in MS C++ Solution: – look in the source AxCtrls.pas – look at the…
DateTime: Get Number of Days in a month
Q: How do i get how meny days there are in January 2002? How do i do that..? Thanks!! A1: NbrDays := EncodeDate(2002,2,1)…
DateTime: TDateTimePicker without seconds
> I am using the TDateTimePicker with Kind = dtkTime. I cannot seem to get > rid of the seconds in the control.…
DateTime: Time Parse
[code lang=”delphi”]// First we need to create a record type TimeParse = record timeDay : Integer; timeHour : Integer; timeMin : Integer; timeSec…