Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : delphi

ÓÃDelphi»­Ô²½ÇPanelµÄ·½·¨

ÓÃDelphi»­Ô²½ÇPanelµÄ·½·¨
procedure TForm1.Button5Click(Sender: TObject);
var fhr :Thandle;
begin
fhr:=createroundrectrgn(0,0,panel1.width,panel1.height,4,4);
setwindowrgn(panel1.handle,fhr,true);
end;
PanelµÄBevelInner ¼° BevelOuter ×îºÃÉè³É bvNone
......

delphiÓï·¨ÀàÐÍ

ÅÂÍü¼ÇÁË£¬Ð´ÔÚÕâ¶ù£¡
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
i,j:integer;
r:real;
ch:char;
s:string[7];
begin
i:=10;
j:=100;
r:=1.0;
ch:='b';
s:='1234567890';
showmessage(inttostr(i)+inttostr(j));
showmessage(floattostr(r));
showmessage(ch);
showmessage(b);
end;
end.
......

DELPHI±àд·þÎñ³ÌÐò×ܽá¶þ£­£­±àд¼¼ÇÉ

http://hi.baidu.com/sqldebug/blog/item/58a764624a44d74eeaf8f863.html
 
 
Ò»¡¢ÈçºÎÏÞÖÆϵͳ·þÎñºÍ×ÀÃæ³ÌÐòÖ»ÔËÐÐÒ»¸ö
ÈçºÎÏÞÖÆϵͳ·þÎñºÍ×ÀÃæ³ÌÐòÖ»ÔËÐÐÒ»¸ö
ÔÚ¹¤³Ì¼ÓÈëÏÂÁдúÂë¿ÉÒÔÉèÖÃϵͳ·þÎñºÍ×ÀÃæ³ÌÐòÖ»ÔËÐÐÒ»¸ö¡£
program FleetReportSvr;
uses
SvcMgr,
Forms,
SysUtils,
Windows,
SvrMain in 'SvrMain.pas' {FleetReportService: TService},
AppMain in 'AppMain.pas' {FmFleetReport}£»
{$R *.RES}
const
CSMutexName = 'Global\Services_Application_Mutex';
var
OneInstanceMutex: THandle;
SecMem: SECURITY_ATTRIBUTES;
aSD: SECURITY_DESCRIPTOR;
begin
InitializeSecurityDescriptor(@aSD, SECURITY_DESCRIPTOR_REVISION);
SetSecurityDescriptorDacl(@aSD, True, nil, False);
SecMem.nLength := SizeOf(SECURITY_ATTRIBUTES);
SecMem.lpSecurityDescriptor := @aSD;
SecMem.bInheritHandle := False;
OneInstanceMutex := CreateMutex(@SecMem, False, CSMutexName);
if (GetLastError = ERROR_ALREADY_EXISTS)then
begin
    DlgError('Error, Program or service already running!');
 & ......

Delphi±àд±ä³¤²ÎÊýµÄcdeclº¯Êý

ÎÄÕÂÀ´×Ô£ºhttp://hi.baidu.com/523399/blog/item/f36e2e9b25041fbdc9eaf4c6.html
ѧ¹ýCÓïÑÔµÄÈ˶¼ÖªµÀ£¬printfµÄ²ÎÊýÊDz»¹Ì¶¨µÄ£¬ÕâÖÖ²ÎÊýÐÎʽ½Ð×ö±ä³¤²ÎÊý¡£´øÓб䳤²ÎÊýµÄº¯Êý±ØÐëÊÇcdeclµ÷ÓÃÔ¼¶¨£¬Óɺ¯ÊýµÄµ÷ÓÃÕßÀ´Çå³ýÕ»£¬²ÎÊýÈëÕ»µÄ˳ÐòÊÇ´ÓÓÒµ½×ó¡£printfÊǸù¾Ý¸ñʽ»¯´®ÖеÄռλ±ê¼ÇÀ´²Â²âÕ»ÖеIJÎÊýµÄ¡£ÒÔϾÍÓÃDelphiÄ£ÄâÒ»¸ö¼òµ¥µÄÀàËÆprintfµÄº¯Êýsprintf¡£
type
   VA_FN = function(const par1, par2{, ...}: Pointer): Integer; cdecl varargs;
procedure CvtInt;
{ IN:
     EAX:   The integer value to be converted to text
     ESI:   Ptr to the right-hand side of the output buffer:   LEA ESI, StrBuf[16]
     ECX:   Base for conversion: 0 for signed decimal, 10 or 16 for unsigned
     EDX:   Precision: zero padded minimum field width
   OUT:
     ESI:   Ptr to start of converted text (not start of buffer)
  &nb ......

ȨÏÞ¹ÜÀíDelphi¶þάÊý×é·½°¸

ȨÏÞ¹ÜÀíDelphiʵÏÖËã·¨
ÔÚÔËÓÃDELPHI±àÖÆһЩӦÓÃϵͳʱ£¬Óкܶàʱºò¶¼ÐèÒª¸ø²»Í¬µÄÓû§¸³Ó費ͬµÄȨÏÞ£¬
¶ø²»Í¬µÄϵͳÓÖÓв»Í¬µÄȨÏÞ·ÖÅ䷽ʽ£¬
Èç¹ûÔÚ³ÌÐòÖÐȥΪÿһλÓû§·ÖÅäȨÏ޵Ļ°£¬²»½öʹµÃ³ÌÐòµÄ±àÖÆÊ®·ÖÂé·³£¬¶øÇÒÒ²²»ÀûÓÚ¹ÜÀí£¡
±ÊÕß½üÈÕÏëµÃÒ»×ÔÈÏΪ±È½ÏºÃµÄ·½·¨£¬Ô¸Óë´ó¼Ò¹²Ïí£¬²¢Íû¸÷λ¶àÖ¸½Ì£¡
ÔںܶàµÄϵͳÖУ¬È¨ÏÞͨ³£ÊDZ»·Ö³É¼¸¼¶µÄ¡£
ÿһ¼¶µÄÓû§ËùÄÜʵÏֵIJÙ×÷ÊDz»Í¬µÄ£¬¶øʵÏÖÕâÒ»¹¦Äܵķ½·¨Ò»°ã¶¼ÊÇÈò»Í¬È¨ÏÞµÄÓû§¼ûµ½²»Í¬µÄ²Ëµ¥¡£
¼òµ¥µÄ˵¾ÍÊǶԲ»¾ßÓÐijһȨÏÞµÄÓû§ÕâÒ»²Ëµ¥¾ÍÊDz»¿É¼ûµÄ£¡
ΪÁËʵÏÖÕâÒ»¿ØÖÆ£¬³ÌÐòÔ±ÃÇÍùÍùµÃ»¨·ÑºÜ¶àµÄʱ¼äÈ¥×öÕâһģ¿é£¬ÀË·ÑÁ˺ܶ౦¹óµÄʱ¼ä£¡
Ïë·¨ÊÇ£ºÈç¹ûÉèÒ»¸ö¶þάÊý×飬µÚһά´ú±íµÚÒ»¼¶²Ëµ¥£¬µÚ¶þά´ú±í×Ӳ˵¥£¬
ÿһ¸öÊý×éÔªËØÖ»´æ´¢0»ò1ÕâÁ½¸öÊý£¬Ä³Ò»È¨ÏÞµÄÓû§¶ÔÓ¦×ÅÒ»¸ö¶þάÊý×飬¶øÕâ¸öÊý×éÓÖ´ú±íÁËÏàÓ¦µÄ²Ëµ¥¡£
¸øijһ¼¶±ðµÄÓû§·ÖÅäȨÏÞºó£¬Ëû±ãÓµÓÐÁËÒ»¸öÏàÓ¦µÄÊý×é¡£
µÇ¼ʱ£¬´ÓÊý×éÖÐÈ¡³ö¸÷¸öÔªËصÄÖµ£¬Èç¹ûΪ1ÔòÏàÓ¦µÄ²Ëµ¥³öÏÖ£¬Îª0Ôò²»³öÏֲ˵¥¡£
ÓÃÕâÖÖ·½Ê½²»µ«¿ÉÒÔ·Ö¼¶£¬»¹ÄÜʵÏÖÔÚ²»Í¬µÄÓû§¼äʵÏÖȨÏÞϸ·Ö£¬Ö»ÒªÄãÐÞ¸ÄÏàÓ¦µÄÊýֵΪ0»ò1¼´¿É£¡
ÉÏÃæÊÇÒ»¸ö¼òµ¥Àý×ÓµÄÔËÐн ......

ȨÏÞ¿ØÖÆ(delphi actionlist)

ȨÏÞ¿ØÖÆ(delphi TActionList·½°¸)
ÔÚÈí¼þ¿ª·¢ÖУ¬ÎªÈí¼þ¼ÓÈëȨÏÞ¿ØÖƹ¦ÄÜ£¬Ê¹²»Í¬µÄÓû§Óв»Í¬µÄʹÓÃȨÏÞ£¬ÊǷdz£ÖØÒªµÄÒ»ÏÄÜ£¬
ÓÉÆäÔÚ¿ª·¢Êý¾Ý¿â·½ÃæµÄÓ¦Óã¬ÕâÏÄܸüΪÖØÒª¡£
µ«ÊÇ£¬ÒªÎªÒ»¸öÓ¦ÓüÓÈëÈ«ÃæµÄȨÏÞ¿ØÖƹ¦ÄÜ£¬ÓÖÔõÑùʵÏÖÄØ£¿
´ó¼ÒÖªµÀ£¬ÏÖÔÚµÄÓ¦Óã¬Ò»°ã¾ùÒԲ˵¥·ÃÎʹ¦ÄܵÄÐÎʽ³öÏÖ£¬°´ÕÕ³£¹æµÄ×ö·¨£¬
Ö»ÒªÈÃ×¢²á½øÈëÓ¦ÓõIJ»Í¬Óû§£¬¿ÉÒÔ·ÃÎʲ»Í¬µÄ¹¦Äܲ˵¥£¬´Ó¶øʵÏÖ¹¦ÄÜȨÏ޵ĿØÖÆ£¬
µ«ÊÇ£¬ÓÐÕâÑùÒ»¸öÎÊÌ⣬´ËÖÖ·½·¨±ãÎÞÄÜΪÁ¦£¬ÏÖÔÚµÄÓ¦ÓÃÈí¼þ£¬ÎªÁËÌá¸ßÈí¼þµÄÒײÙ×÷ÐÔ£¬
ͬһ¹¦ÄÜ¿ÉÄÜÓжàÖÖ²»Í¬µÄ·ÃÎÊ·½Ê½£¬È繤¾ßÌõ£¬ÓÒ¼ü²Ëµ¥µÈ£»
ͬÑù£¬Í¬Ò»¸ö¹¦ÄÜ£¬Ò²¿ÉÄÜÔÚÈí¼þµÄ²»Í¬µØ·½±»µ÷Ó㬶ø²»½ö½ö±»ÏÞÖÆΪÓóÌÐòµÄÖ÷²Ëµ¥À´µ÷Óã¬
ÕâÑù£¬²ÅÄܱ£Ö¤Ó¦ÓõÄÒ×ÓÃÐÔ¡£
дµ½Õ⣬ÎÊÌâÒѾ­·Ç³£Çå³þ£¬¶ÔÓÚÒªÏÞÖƵÄÈí¼þ¹¦ÄÜ£¬½öͨ¹ýÒ»´Î´úÂëÉè¼Æ£¬
ÎÞÂÛÔÚÕû¸öÓ¦ÓõÄÈκεط½»òͨ¹ýºÎÖÖÐÎʽµ÷Óô˹¦ÄÜ£¬¶¼Äܱ»¹¦ÄÜȨÏÞËùÏÞÖÆ¡£
±ÊÕßÀûÓÃDelphiƽ̨×÷Ó¦Óÿª·¢Ê±£¬Í¨¹ýDelphi7ÌṩµÄVCL¿Ø¼þ½â¾öÁËÕâÒ»ÎÊÌâ¡£
ÔÚÁ˽âÈçºÎʵÏÖ¹¦ÄÜȨÏÞ¿ØÖÆ֮ǰ£¬µÃÏÈ¿´Ò»ÏÂDelphi7ÌṩµÄпؼþTActionList£¬
ͨ¹ýTActionList,Ó¦ÓóÌÐò¿ÉÒÔͳһ¹ÜÀíÆäTAction,ÕâÀïµÄAction,¿ÉÒ ......
×ܼǼÊý:644; ×ÜÒ³Êý:108; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [96] [97] [98] [99] 100 [101] [102] [103] [104] [105]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ