Forráskód Böngészése

* some fcl examples compile again after changes

git-svn-id: trunk@1594 -
tom_at_work 20 éve
szülő
commit
efa68a1275
2 módosított fájl, 5 hozzáadás és 3 törlés
  1. 1 1
      fcl/net/tests/rpccli.pp
  2. 4 2
      fcl/tests/cfgtest.pp

+ 1 - 1
fcl/net/tests/rpccli.pp

@@ -1,6 +1,6 @@
 program RPCCli;
 
-uses SysUtils, Classes, fpAsync, XMLRPC;
+uses SysUtils, Classes, fpAsync, xmlrpc;
 
 type
 

+ 4 - 2
fcl/tests/cfgtest.pp

@@ -13,7 +13,8 @@ begin
 
   WriteLn('Writing a sample XML configuration to "testcfg.xml"...');
 
-  cfg := TXMLConfig.Create('testcfg.xml');
+  cfg := TXMLConfig.Create(nil);
+  cfg.Filename := 'testcfg.xml';
   cfg.SetValue('cfgtest/MainWindow/Constraints/Width', 600);
   cfg.SetValue('cfgtest/MainWindow/Constraints/Height', 400);
   cfg.SetValue('cfgtest/MainWindow/Caption', 'TXMLConfig Test');
@@ -23,7 +24,8 @@ begin
 
   WriteLn('Ok; now I''ll try to read back all values...');
 
-  cfg := TXMLConfig.Create('testcfg.xml');
+  cfg := TXMLConfig.Create(nil);
+  cfg.Filename := 'testcfg.xml';
 
   i := cfg.GetValue('cfgtest/MainWindow/Constraints/Width', 0);
   if i <> 600 then