Browse Source

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

git-svn-id: trunk@14942 -
marco 15 years ago
parent
commit
83646f93ed
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);