Browse Source

--- Merging r14942 into '.':
U packages/winunits-base/src/comserv.pp

# revisions: 14942
------------------------------------------------------------------------
r14942 | marco | 2010-02-26 13:04:21 +0100 (Fri, 26 Feb 2010) | 2 lines
Changed paths:
M /trunk/packages/winunits-base/src/comserv.pp

* replaced some unimplemented (RTE 217) methods with basic getters and setters.

------------------------------------------------------------------------

git-svn-id: branches/fixes_2_4@14984 -

marco 15 years ago
parent
commit
7a3495534d
1 changed files with 6 additions and 4 deletions
  1. 6 4
      packages/winunits-base/src/comserv.pp

+ 6 - 4
packages/winunits-base/src/comserv.pp

@@ -47,6 +47,8 @@ type
     fTypeLib: ITypeLib;
     fTypeLib: ITypeLib;
     fServerName,
     fServerName,
     fServerFileName: String;
     fServerFileName: String;
+    fHelpFileName : String;
+    fStartSuspended : Boolean;
   protected
   protected
     function CountObject(Created: Boolean): Integer; override;
     function CountObject(Created: Boolean): Integer; override;
     function CountFactory(Created: Boolean): Integer; override;
     function CountFactory(Created: Boolean): Integer; override;
@@ -232,7 +234,7 @@ end;
 
 
 function TComServer.GetHelpFileName: string;
 function TComServer.GetHelpFileName: string;
 begin
 begin
-  RunError(217);
+  result:=fhelpfilename;
 end;
 end;
 
 
 function TComServer.GetServerFileName: string;
 function TComServer.GetServerFileName: string;
@@ -242,7 +244,7 @@ end;
 
 
 function TComServer.GetServerKey: string;
 function TComServer.GetServerKey: string;
 begin
 begin
-  RunError(217);
+  result:='LocalServer32';
 end;
 end;
 
 
 function TComServer.GetServerName: string;
 function TComServer.GetServerName: string;
@@ -252,7 +254,7 @@ end;
 
 
 function TComServer.GetStartSuspended: Boolean;
 function TComServer.GetStartSuspended: Boolean;
 begin
 begin
-  RunError(217);
+  result:=fStartSuspended;
 end;
 end;
 
 
 function TComServer.GetTypeLib: ITypeLib;
 function TComServer.GetTypeLib: ITypeLib;
@@ -262,7 +264,7 @@ end;
 
 
 procedure TComServer.SetHelpFileName(const Value: string);
 procedure TComServer.SetHelpFileName(const Value: string);
 begin
 begin
-  RunError(217);
+  FHelpFileName:=value;
 end;
 end;
 
 
 procedure TComServer.RegisterServerFactory(Factory: TComObjectFactory);
 procedure TComServer.RegisterServerFactory(Factory: TComObjectFactory);