ÓÃdelphi´òÔìÊôÓÚ×Ô¼ºµÄ²¥·ÅÆ÷
Èç½ñRealPlayerµÄÁ÷ʽýÌåÎļþÒÔÆäÇ¿´óµÄÊÓƵѹËõ±ÈÕýÖð²½ÇÄÈ»ÐËÆð¡£RealPlayer Plus²¥·ÅÆ÷Ò²ÀíËùµ±È»µØ³ÉΪ´ó¼Ò²¥·ÅRealPlayer¸ñʽÎļþµÄÊ×Ñ¡Èí¼þ¡£²»¹ýRealPlayer PlusÒ²²»ÊÇʮȫʮÃÀµÄ£¬±ÈÈçÆô¶¯Ê±¼äÂý£¬Õ¼Óÿռä´ó£¬ÁôÓÐÀúÊ·¼Ç¼µÈµÈ¡£ÆäʵÎÒÃÇ¿ÉÒÔÀûÓÃDelphi´òÔìÒ»¸öÍêÈ«·ûºÏ×Ô¼ºÒªÇóµÄRealPlayer²¥·ÅÆ÷¡£ÏÂÃæÎÒ½«Ïò´ó¼Ò½éÉÜÈçºÎÀûÓÃDelphiÀ´°ïÖúÄãʵÏÖÕâÒ»Ô¸Íû¡£µ«Ç°ÌáÊÇ£ºÄãµÄ»úÆ÷ÖбØÐë×°ÓÐRealPlayer Plus²¥·ÅÆ÷£¬ÒòΪÎÒÃÇÒªÓõ½Æä×Ô´øµÄActiveX¿Ø¼þ¡£
¡¡¡¡Ê×ÏÈ£¬ÎÒÃÇÒªÔÚDelphiÖе¼ÈëËùÐèµÄActiveX¿Ø¼þ¡£µã»÷²Ëµ¥“Component→Import ActiveX Control...”´ò¿ª“Import ActiveX”¶Ô»°¿ò£¬ÔÚ“Import ActiveX”Áбí¿òÖУ¬ÎÒÃÇ¿ÉÒÔ¿´µ½WindowsÖÐËùÓÐ×¢²áµÄAxctiveX¿Ø¼þ¡£Ñ¡ÔñÆäÖеēRealPlayer ActiveX Control Library(Version 1.0)”¿Ø¼þ¡£È»ºóµ¥»÷“Install”°´Å¥¡£
¡¡¡¡»Øµ½DelphiÖ÷½çÃ棬Äã»á·¢ÏÖÔÚVCLÃæ°åÖеÄActiveX±êÇ©ÖÐÔö¼ÓÁËÒ»¸öÃûΪRealAudioµÄ×é¼þ¡£ÎÒÃÇÏÈ°ÑËü·ÅÈë´°ÌåÖС£²»¹ýÔÚĬÈÏÇé¿öÖÐRealAudio×é¼þûÓÐÊÓƵ²¥·Å´°¿Ú£¬Ò²¾ÍÊÇÖ»Äܲ¥·ÅÉùÒô¡£ÕâÊÇÎÒÃDz»Ô¸¿´µ½µÄ£¬ÕâʱÎÒÃÇ¿ÉÒÔÔÚRealAudio×é¼þµÄControlsÊôÐÔÖÐÌí¼ÓÈçÏ´úÂ룺
¡¡¡¡IMAGEWINDOW,CONTROLPANEL,STATUSBAR
¡¡¡¡ÆäÖУºIMAGEWINDOW¡¢CONTROLPANEL¡¢STATUSBAR·Ö±ð±íʾÏÔʾÊÓƵ²¥·Å´°¿Ú¡¢¿ØÖÆÌõ״̬Ìõ¡£
¡¡¡¡Ìí¼Ó´úÂëºó£¬ÎÒÃÇ¿ÉÒÔ·¢ÏֿؼþÍâ¹ÛÒѾ¸Ä±ä³ÉÁËÊÓƵ²¥·Å´°¿ÚÐÎ×´¡£È»ºóÉèÖÃAlignÊôÐÔΪalClient£¬Ê¹²¥·Å´°¿Ú¿ÉÒÔËæ´°ÌåµÄ±ä»¯¶ø±ä»¯£¬·½±ã´ó¼ÒÔÚ¹Û¿´Ó°ÊÓ¶¯»Ê±¿ÉÒÔËæÒâÀ¶¯²¥·Å´°¿Ú´óС¡£
¡¡¡¡È»ºó£¬ÔÚ´°ÖмÓÈëTMainMenu×é¼þ¡¢TOpenDialog×é¼þ¸÷Ò»¸ö¡£ÓÃÓÚÑ¡Ôñ²¢´ò¿ª²¥·ÅÓ°ÊÓÎļþ¡£Ë«»÷TMainMenu×é¼þ£¬½øÈë²Ëµ¥Éè¼ÆÆ÷¡£ÔÚÕâÀÎÒÃÇÒªÉè¼ÆÒ»¸ö²Ëµ¥ÏîFile£¬¼°Æä2¸ö×Ӳ˵¥Open¡¢Exit¡£Éè¼ÆÍê±Ïºó£º
¡¡¡¡Ë«»÷OpenÌí¼ÓÈçÏ´úÂ룺
¡¡¡¡if OpenDialog1.Execute then
¡¡¡¡begin
¡¡¡¡ RealAudio1.source:=OpenDialog1.FileName;
¡¡¡¡ RealAudio1.doplay; //´ò¿ª²¢Æô¶¯²¥·ÅÆ÷
¡¡¡¡End;
¡¡¡¡Ë«»÷OpenÌí¼ÓÈçÏ´úÂ룺
¡¡¡¡Application.terminate; //ÖÕÖ¹³ÌÐòÔËÐÐ
¡¡¡¡ÎªÁËÔÚ´ò¿ªÒ»¸öÎļþʱ£¬±ãÓÚÓû§Ñ¡ÔñÎļþ£¬Òª½«OpenDialog×é¼þµÄFilterÊôÐÔÉèÖÃÈçÏ£ºËùÓÐýÌåÎļþ(*.rm,*.ram,*.ra,*.swf,*.mp3)|*.rm;*.ram;*.ra;*.swf;*.mp3|*.*|*.*¡£
Èç¹ûÏëÒªÔÚ¿´µç
Ïà¹ØÎĵµ£º
ÔÚ Delphi ÓïÑÔµÄÊý¾Ý¿â±à³ÌÖУ¬DBGrid ÊÇÏÔʾÊý¾ÝµÄÖ÷ÒªÊÖ¶ÎÖ®Ò»¡£µ«ÊÇ DBGrid ȱʡµÄÍâ¹ÛδÃâÏԵõ¥µ÷ºÍȱ·¦´´Òâ¡£Æäʵ£¬ÎÒÃÇÍêÈ«¿ÉÒÔÔÚÎÒÃǵijÌÐòÖÐͨ¹ý±à³ÌÀ´´ïµ½ÃÀ»¯DBGrid Íâ¹ÛµÄÄ¿µÄ¡£Í¨¹ý±à³Ì£¬ÎÒÃÇ¿ÉÒԸıä DBGrid µÄ±íÍ·¡¢Íø¸ñ¡¢Íø¸ñÏßµÄÇ°¾°É«ºÍ±³¾°É«£¬ÒÔ¼°Ïà¹ØµÄ×ÖÌåµÄ´óСºÍ·ç¸ñ¡£
......
Delphi TStream Ïêϸ½éÉÜ
Stream¶ÔÏó£¬ÓÖ³ÆÁ÷ʽ¶ÔÏó£¬ÊÇTStream¡¢THandleStream¡¢TFileStream¡¢TMemoryStream¡¢TResourceStreamºÍTBlobStreamµÈµÄͳ³Æ¡£ËüÃÇ·Ö±ð´ú±íÁËÔÚ¸÷ÖÖý½éÉÏ´æ´¢Êý¾ÝµÄÄÜÁ¦£¬ËüÃǽ«¸÷ÖÖÊý¾ÝÀàÐÍ(°üÀ¨¶ÔÏóºÍ²¿¼þ)
ÔÚÄÚ´æ¡¢Íâ´æºÍÊý¾Ý¿â×Ö¶ÎÖеĹÜÀí²Ù×÷³éÏóΪ¶ÔÏó·½·¨£¬²¢ÇÒ³ä·ÖÀûÓÃÁËÃæÏò¶Ô ......
Delphi UÅ̲åÈ벦³ö¼ì²â£º
1¡¢Ð½¨¹¤³Ì£»
2¡¢ÔÚform1ÉÏ·ÅÒ»¸öLabel£»
3¡¢¶¨ÒåÒ»¸ö˽Óйý³Ì
procedure WMDeviceChange(var Msg: TMessage); message WM_DEVICECHANGE;
ÍêÕû´úÂëÈçÏ£º
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics ......
ÔڵͰ汾ÖÐÉ趨MSCOMM¿Ø¼þ£¬Êǵ¼ÈëMSCOMM×é¼þ£¬È»ºó¾Í¿ÉÒÔ¿´¼ûMSCOMM¿Ø¼þµÄµç»°µÄͼ±êÁË£¬µ«ÊÇÔÚDELPHI 2005»òÒÔÉÏ°æ±¾ÖоͱØÐëÏȰѴ˿ؼþ´´½¨µ½°üÖУ¨BPL£©È»ºóµ¼ÈëBPL£¬ÄǸöµç»°Í¼±ê¾Í¿ÉÒÔ¿´¼ûÔÚ¹¤¾ßÌõÉÏÁË¡£ÎÒÊÔÁ˶àÉٻزÅÊÔ³öÀ´µÄ¡£ ......
µÚÒ»ÖÖ·½·¨£º
µÚÒ»²½£º ÐÞ¸ÄÊôÐÔ
1¡¢kind -> dtktime Ò²¿ÉÒÔÊÇdtkdate µ«ÊÇÔÚÓÃdtkdateµÄʱºòÐèÒª½«datemodeÊôÐÔÐ޸ijÉdmUpDown
2¡¢parseinput -> true
µÚ¶þ²½£ºÔÚonUserInputʼþÖÐдһ¾ä´úÂë
DateTimePicker1.DateTime:=DateAndTime;
×¢£ºÒÔÉÏ·½·¨ËäÈ»¿ÉÒԴﵽĿµÄ£¬µ ......