DelphiÖÐ×ÊÔ´ÎļþʹÓ÷½·¨Ïêϸ½²Êö
Ò»£®±àд RC ½Å±¾Îı¾
¡¡¡¡ÓüÇʱ¾»òÆäËüÎı¾±à¼Æ÷±àдһ¸öÀ©Õ¹ÃûΪ“.rc”µÄÎļþ¡£¸ñʽÈçÏ£º
¡¡¡¡AVI ÎÞÉù¶¯»
¡¡¡¡BITMAP λͼÎļþ
¡¡¡¡CURSOR ¹â±êÎļþ
¡¡¡¡ICON ͼ±êÎļþ
¡¡¡¡WAVE ÉùÒôÎļþ
ÒÔÉÏËùÁоùΪ±ê×¼×ÊÔ´ÀàÐÍ£¬Ò²¿ÉÒÔ¸ø×ÊÔ´×Ô¶¨ÒåÒ»¸öÀàÐÍ£¬È磺“mytype”¡£²»¹ýÁ½ÕßÔÚµ÷Ó÷½Ê½ÉÏÓÐЩ²»Í¬¡£
¶þ£®¸ù¾Ý RC ½Å±¾Îļþ±àÒë³É RES ×ÊÔ´Îļþ
¡¡¡¡ÔÚÃüÁîÌáʾ·ûÖÐÊäÈëÒÔÏÂÄÚÈÝ£º brcc32 FileName.rc //×¢£ºbrcc32.exeÔÚDelphiX\BinĿ¼ÖÐ
Èý£®ÔÚDelphiµ¥ÔªÖмÓÈë×ÊÔ´Îļþ
½«Éú³ÉµÄ RES ×ÊÔ´Îļþ¸´ÖƵ½ÏàÓ¦³ÌÐòËùÔÚµÄĿ¼ÖУ¬ÔÚµ¥ÔªÎļþÖеē{$R *DFM}”ºóÃæ¼ÓÉÏ“{$R FileName.res}”£¬±àÒëºó×ÊÔ´Îļþ¾Í±»°üº¬ÔÚ¿ÉÖ´ÐÐÎļþÖÐÁË¡£
˵Ã÷£ºÈç¹ûÏÓ2¡¢3Á½²½Âé·³£¬¿ÉÒÔ²ÉÓøü¼ò±ãµÄ×ö·¨£¬¼´£º½« RC ÎļþÖ±½ÓÌí¼Óµ½ÏîÄ¿ÖУ¬ÔÚ±àÒëDelphiÏîĿʱ£¬»á×Ô¶¯±àÒë¸Ã×ÊÔ´Îļþ¡£
ËÄ£®×ÊÔ´Îļþµ÷ÓÃʾÀý
¡¡¡¡£¨1£©´æÈ¡×ÊÔ´ÎļþÖеÄλͼ
//RC: testBmp bitmap res\test.bmp
Image1.Picture.Bitmap.LoadfromResourceName(HInstance, 'res\test.bmp');
//RC: testBmp bmptype res\test.bmp
var
resStream: TResourceStream;
begin
resStream := TResourceStream.Create(HInstance, 'testBmp', 'bmptype');
Image1.Picture.Bitmap.LoadfromStream(resStream);
resStream.Free;
end;
Çë×¢ÒâÉÏÃæÁ½ÖÖµ÷Ó÷½Ê½µÄ²»Í¬Ö®´¦¡£
£¨2£©´æÈ¡×ÊÔ´ÎļþÖеÄͼ±ê
½«Í¼±ê·ÅÔÚ×ÊÔ´ÎļþÖУ¬¿ÉÒÔʵÏÖ¶¯Ì¬¸Ä±äÓ¦ÓóÌÐòµÄͼ±ê¡£
//RC: testIcon icon res\test.ico
Application.Icon.Handle := LoadIcon(HInstance, 'testIcon');
£¨3£©´æÈ¡×ÊÔ´ÎļþÖеÄAVI¶¯»
//RC:
Ïà¹ØÎĵµ£º
Delphi ÖÐWebBrowser¿Ø¼þÏê½âʵÀý ת
2008-05-07 12:07
ºÜ¾Ã¶¼Ã»ÓÐÔ´´ÁË£¬Ç°¼¸Ìì°ïÅóÓÑ×öÁ˸öÍøÖ··¢²¼³ÌÐò£¬Ö÷ÒªÓ¦Óõ½ÁËWebBrowser¿Ø¼þ¡£
½ñÌìÖ÷Òª¸ø´ó¼ÒÑÝʾһϹý³Ì£¬Èôó¼ÒѧϰһÏÂDelphi¹¤¾ß¡£
WebBrowser¹¦ÄÜ£º
1¡£×Ô¶¯¼ÓÔØÍøÒ³
2¡£È¥³ýWebBrowser¹ö¶¯Ìõ
3¡£WebB ......
procedure TForm1.Button2Click(Sender: TObject);
var
o : Olevariant;
begin
webbrowser1.Navigate('http://www.163.com');
delay(2000);
o := WebBrowser1.OleObject.document.all.item('username',0);
o.value := 'username';
o := W ......
ÓÉÓÚÐèÒªÔÚ´°ÌåÖÐÉ趨һ¸öÈÕÆÚʱ¼ä£¬³öȥͨÓÃÐÍ¿¼ÂÇ£¬²ÉÓÃÁËTDateTimePicker¿Ø¼þ¡£
ÒòΪÕâ¸ö¿Ø¼þµÄĬÈÏ״ֻ̬ÄÜÏÔʾÈÕÆÚ£¬Ôì³ÉʹÓÃÉϵIJ»±ã£¬ËùÒÔÐèÒª×öÈçϵÄÉ趨£º
ÔڿؼþµÄformatÊôÐÔÀ¸ÀïÉèÖÃÈçÏÂÖµ£ºyyyy-mm-dd hh:mm:ss£»
É趨Íê³ÉºóµÄʱ¼äΪµ±Ç°µÄϵͳʱ¼ä£¬²»ÄÜͨ¹ýµ¯³öÈÕÀúÉ趨£¬Ö»ÄÜÔÚÎı¾¿òÖÐÉ趨¡£ ......
ת:DELPHI ÖÐÈçºÎÌáÉý½ø³ÌÁîÅÆ
½üÒ»¶Îʱ¼äÔÚÓÃDELPHIд¸ö³ÌÐò,µ±ÎÒдµ½Ò»¸ö½áÊøÆäËû½ø³ÌµÄÄ£¿éµÄʱºòÓÐʱ²»³É¹¦,ÄÇÊÇÒòΪÆäËû½ø³Ì,È粡¶¾½ø³ÌµÄȨÏÞ¸ß,ͨ¹ý³£¹æµÄ½áÊø½ø³ÌµÄº¯ÊýÐв»Í¨,ÒªÊ×ÏÈÌá¸ß×ÔÉí³ÌÐòµÄȨÏÞ,ÔÙ½áÊøÆäËû½ø³Ì
ÔÚÍøÉÏÒ²¿´µ½ÁËһЩÌáÉý½ø³ÌÁîÅƵĺ¯Êýµ«¶¼²»ÔõôºÃÓÃ,×îºóÎÒ»¹ÊÇ´ÓÒ»¸öºÚ¿ÍºóÃųÌÐòµÄÔ´´ú ......
ÔÚÏîÄ¿ÖУ¬ÐèÒª×öÒ»¸öÈÕÆÚµÄÌáÐѹ¦ÄÜ£¬Í¦ÓôÃƵģ¬¶ÔÈÕÆڵļÆËã:
ºÜÐÒÔ˵ÄÊÇÔÚdelphi ÖÐÓÐÏÖÓеļÆË㺯Êý£¬DateUtilsµ¥Ôª£»
·¾¶:*\Delphi7\Source\Rtl\Common Ŀ¼Ï¡£
Ìù³öÒ»²¿·Ö:
function IncYear(const AValue: TDateTime;
const ANumberOfYears: Integer = 1): TDateTime;
// function Inc ......