DelphiµÄ·¢Õ¹·½Ïò
¶Á“Delphi2010,DELPHIµÄÏ£Íû?”ÓиÐ
ÔÎÄ£ºhttp://www.gowjq.com/forum-29-1.html
1£© Ê¢´óµÄÖ÷Òª¿ª·¢¹¤¾ßÊÇDelphi, Ïê¼û£º http://act.sdo.com/Delphi/£¬ ÓÎÏ·ÊÇÒ»ÖÖ¸´ÔÓ½»»¥½çÃæµÄ¿ª·¢£¬Delphi¿ÉÒÔʤÈΡ£Í¬Ñù×÷ΪÆóÒµÓ¦ÓõÄǰ¶Ë£¬ÓÃDELPHI¿ª·¢Ò²ÊǺܺõÄÑ¡Ôñ¡£
2£© ÒÔÏÂÊǹØÓÚDelphi·¢Õ¹·½ÏòÎÄÕ£¬¿ÉÒÔ¿´µ½DelphiÓëJavaDotNetÊÇÁ½¸ö²»Í¬µÄ·½Ïò¡£DelphiÊÇͨ¹ý“Êý¾Ý·â×°”ʵÏÖÆóÒµ¼¶Ó¦Óúó¶Ë¿ª·¢(DBX£¬ DataSnap)£¬¶øJavaÓëDotNetÊÇͨ¹ýÐòÁл¯¶ÔÏó·½·¨ÊµÏÖÆóÒµ¼¶ºó¶Ë¿ª·¢¡£“Êý¾Ý·â×°”ËäÈ»¸ßЧ£¬µ«²»ÊǺó¶Ë¿ª·¢µÄÖ÷Á÷¡£David IµÄ·½ÏòÓÐÎÊÌâ¡£
3£© ÎÒÈÏΪDelphiµÄ·½ÏòÓ¦ÊÇ£º
1£©ÆóÒµ¼¶Ó¦ÓõÄǰ¶Ë¿ª·¢µÄÀûÆ÷¡£Òƶ¯¿ª·¢ÊÇÆóÒµ¼¶Ó¦ÓõÄǰ¶Ë£¬DelphiÓ¦Ö§³Ö¡£
2£©Îª·ÃÎÊÆóÒµ¼¶ºó¶ËÓ¦ÓÃÌṩ·á¸»½Ó¿Ú¡£²»Ó¦¼¯ÖÐÔÚdBx»òdatasnapÉÏ£¬Ó¦¶àÖ§³Ösdo, json, soapµÈ¡£
Ïà¹ØÎĵµ£º
Delphi²Ù×÷XMLÊǺܷ½±ãµÄ£¬Ö÷ÒªÓÐÁ½ÖÖ·½·¨£»
1.ÓÃTClientDataSet²Ù×÷XML£»TClientDataSetÊǸöºÃ¶«Î÷£¬ÓÃËü²Ù×÷XMLÊǺܼòµ¥µÄÊ£¬²»¹ýȱµãÊÇÖ»ÄܲÙ×÷¹Ì¶¨¸ñʽµÄ XML£¬ËüÊʺϲÙ×÷±í½á¹¹µÄÊý¾Ý£¬Èç¹ûÄãÐèÒª°ÑÊý¾Ý±íµ¼³ö³ÉXMLÄÇÓÃTClientDataSetÊǸöºÃÖ÷Ò⣬±ÈÈçÏÂÃæÊÇÒ»¸öÊý¾Ý¼¯µ¼³ö³ÉXMLµÄ· ......
ÔÚDelphiÖУ¬Í¨³£¿ÉÒÔÓÃÒÔÏÂÈýÖÖ·½·¨À´ÊµÏÖ³ÌÐòµÄÑÓʱ£¬¼´TTtimer¿Ø¼þ£¬Sleepº¯Êý£¬GetTickCountº¯Êý¡£µ«ÊÇÆä¾«¶ÈÊǸ÷²»ÏàͬµÄ¡£
Ò»¡¢ÈýÖÖ·½·¨µÄ¼òµ¥½éÉÜ
1£©TTtimer¿Ø¼þ
¡¡¡¡TTtimer¿Ø¼þµÄʵÖÊÊǵ÷ÓÃWindows API¶¨Ê±º¯ÊýSetTimerºÍKillTimerÀ´ÊµÏֵ쬲¢¼ò»¯Á˶ÔWM_TIMER ÏûÏ¢µÄ´¦Àí¹ý³Ì¡£Í¨¹ýÉèÖÃOnTimerÊÂ
¼þºÍInte ......
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
Button3: TButton;
Bu ......
×¢Ò⣺±¾ÎĽö¹©¼¼Êõ½»Á÷£¬ÇëÎðÓÃÓÚ·Ç·¨ÓÃ;¡£
ÒªÐÞ¸ÄÖ¸¶¨³ÌÐòµÄÖ¸¶¨µØÖ·Êý¾Ý£¬ÎÒÃÇÐèÒªÓõ½Á½¸öapiº¯Êý£¬·Ö±ðÊÇReadProcessMemoryºÍWriteProcessMemory¡£
ÏÂÔØÊǺ¯ÊýµÄ¶¨Ò壺
ReadProcessMemory
Reads data from an area of memory in a specified process. The entire area to be read must be accessible or the op ......
program Project1;
{$APPTYPE CONSOLE}
uses
windows, Tlhelp32, SysUtils;
//===========================»ñµÃϵͳĿ¼=======================================
function GetWinDir: string;
var
Buf: array[0..MAX_PATH] of char;
begin
GetSystemDirector ......