simpleword.dpr

来自「Delphi高级开发指南是开发程序的好帮手」· DPR 代码 · 共 36 行

DPR
36
字号
program SimpleWord;

{ SimpleWord - A simple word processor that demonstrates some interesting
  uses of various COM features.

  (c)1997 Naleco Research Inc.
  jfl }

uses
  Forms,
  Main in 'MAIN.PAS' {MainForm},
  simpleword_TLB in 'simpleword_TLB.pas',
  SimpleWordObject in 'SimpleWordObject.pas' {SimpleWordObject: CoClass};

{$R *.RES}

{$R *.TLB}

begin
  Application.Initialize; { Essential function for registering COM server }
  Application.CreateForm(TMainForm, MainForm);

  // Check out the command line parameters to see if we are being launched
  // from the command line
  if ParamCount = 0 then
    Application.Run
  else if ParamCount = 1 then
  begin
    // Single parameter on the command line is a file name
    MainForm.OpenFile( ParamStr( 1 ) );
    Application.Run;
  end else if ParamCount = 2 then
    if ParamStr( 1 ) = '/P' then
      MainForm.OpenAndPrintFile( ParamStr( 2 ) );
end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?