DelphiµÄÃüÁîÐбàÒëÃüÁî
Borland³öÆ·µÄDelphi£¬ÓÐ×ÅÉÁµç°ãµÄ±àÒëËÙ¶È£¬µ«ÊÇÔÚ½çÃæ¿Ø¼þʹÓý϶ࡢ¹¤³ÌÏîÄ¿½Ï´óµÄʱºò£¬±àÒëÒ»¸ö¹¤³ÌÈÔÐèÒªÒ»¶Îʱ¼ä£¬´ò¿ªÅÓ´óµÄDelphi IDE£¬Ò²ÐèҪʱ¼ä¡£Æäʵ£¬ÔÚÒ»¸ö¹¤³Ì¿ª·¢½áÊø£¬µ÷ÊÔÍê³ÉÖ®ºóµÄRelease±àÒ룬ÍêÈ«¿ÉÒÔÓÃÃüÁîÐÐÀ´Ö´ÐУ¬ÒòΪDelphiµÄ±àÒëÆ÷²ÎÊý²»ÏñC++±àÒëÆ÷ÄÇÑù¸´ÔÓ¡£
±ÊÕß°ÑDelphiÁª»úÊÖ²áÖйØÓÚÃüÁîÐбàÒë(command-line compiler)µÄ¼¸ÆªÖ÷Ìâ×÷ÁË·Ò룬ϣÍû¶ÔDelphi¿ª·¢ÈËÔ±ÓаïÖú¡£
Ŀ¼
1. Command-line compiler
ÃüÁîÐбàÒëÆ÷
2. Command-line compiler options
ÃüÁîÐбàÒëÆ÷Ñ¡Ïî
3. Compiler directive options
±àÒëÆ÷Ö¸ÁîÑ¡Ïî
4. Compiler mode options
±àÒëģʽѡÏî
5. DCC32.CFG file
±àÒëÆ÷ÅäÖÃÎļþDCC32.CFG
6. Debug options
µ÷ÊÔÑ¡Ïî
7. Directory options
Ŀ¼ѡÏî
8. IDE command-line options
IDEÃüÁîÐÐÑ¡Ïî
9. Generated files
¼¸¸öIDE×Ô¶¯Éú³ÉµÄÎļþ½éÉÜ
Command-line compiler
ÃüÁîÐбàÒëÆ÷
Delphi's command-line compiler (dcc32.EXE) lets you invoke all the functions of the IDE compiler (DELPHI32.EXE) from the DOS command line (see IDE command-line options. Run the command-line compiler from the DOS prompt using the syntax:
Delphi’sÃüÁîÐбàÒëÆ÷(dcc32.exe)ÔÊÐíÄã´ÓDOSÃüÁîÐз½Ê½(²ÎÕÕ£ºIDEÃüÁîÐÐÑ¡Ïî)ʵÏÖIDE±àÒëÆ÷(delphi32.exe)µÄËùÓй¦ÄÜ¡£ÓÃDOSÃüÁîÔËÐÐÃüÁîÐбàÒëÆ÷Óï·¨ÈçÏ£º
dcc32 [options] filename [options]
dcc32 [Ñ¡Ïî] [ÎļþÃû] [Ñ¡Ïî]
where options are zero or more parameters that provide information to the compiler and filename is the name of the source file to compile. If you type dcc32 alone, it displays a help screen of command-line options and syntax.
Áã»ò¶à¸ö²ÎÊý¸ø±àÒëÆ÷ÌṩÐÅÏ¢£¬ÎļþÃûÖ¸¶¨ÐèÒª±àÒëµÄÔ´ÎļþÃû¡£Èç¹ûÄãµ¥¶ÀÊäÈëdcc32£¬Ëü»áÏÔʾһ¸ö¹ØÓÚÃüÁîÐбàÒëµÄÑ¡ÏîºÍÓï·¨µÄÆÁÄ»¡£
If filename does not have an extension, the command-line compiler assumes .dpr, then .pas, if no .dpr is found. If the file you're compiling to doesn't have an extension, you must append a period (.) to the end of the filename.
Èç¹ûÎļþÃûûÓÐÀ©Õ¹Ãû£¬ÃüÁîÐбàÒ
Ïà¹ØÎĵµ£º
Ãû³Æ ÀàÐÍ ËµÃ÷
abort º¯Êý ÒýÆð·ÅÆúµÄÒâÍâ´¦Àí
abs º¯Êý ¾ø¶ÔÖµº¯Êý
addexitproc º¯Êý ½«Ò»¹ý³ÌÌí¼Óµ½ÔËÐÐʱ¿âµÄ½áÊø¹ý³Ì±íÖÐ
addr º¯Êý ·µ»ØÖ¸¶¨¶ÔÏóµÄµØÖ·
adjustlinebreaks º¯Êý ½«¸ø¶¨×Ö·û´®µÄÐзָô·ûµ÷ÕûΪcr/lfÐòÁÐ
align ÊôÐÔ Ê¹¿Ø¼þλÓÚ´°¿Úij²¿·Ö
alignment ÊôÐÔ ¿ ......
Ò»Äêǰ¿ª·¢ÁËÒ»¸öMIDASµÄ³ÌÐò,×î½üÐ޸ķþÎñ¶Ë,¿ÉÊÇÕâ¸ö·þÎñÎÞ·¨×¢²á,×îºóÖÕÓÚÕÒµ½Á˽â¾ö°ì·¨,Õâ¸öÏà¹ØÎÄÕÂÈçÏÂ:(ËãÊDZ¸·Ý°É)
£¨Ò»£©MIDASÊÇʲô£¿
DelphiÖÐMIDASµ½µ×ÊÇÊ²Ã´ÄØ?ºÍËûÏà¹Ø×é¼þÊÇÊ²Ã´ÄØ?
MIDAS(Multitiered Distributed Application Services)¶à²ã·Ö²¼Ê½Ó¦Ó÷þÎñ¡£
DelphiËùÌá³ö ......
ÔÀ´ÊÇÒªÔÚFormCreateÖмÓÈëÒÔÏ´úÂë:
procedure TTntForm1.TntFormCreate(Sender: TObject);
begin
//Õâ¾äºÜ¹Ø¼ü.¶ÔÓÚÆ½Ì¨µÄÖ§³Ö.
if Win32Platform = VER_PLATFORM_WIN32_NT then
Font.Name := 'MS Shell Dlg 2'
else
Font.Name := 'MS Shell Dlg';
......
unit Servicescontrol;
interface
uses Windows,Messages,SysUtils,Winsvc,Dialogs;
function StartServices(Const SvrName:String):Boolean;
function StopServices(Const SvrName:String):Boolean;
function QueryServiceStatu(Const SvrName:  ......