Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Mar 1995 11:08:07 -0500 (EST)
From:      Duncan C Smith <dcs@ssc.siemens.com>
To:        oi-users@freefall.cdrom.com
Subject:   Re: my modifications to the .cf file are lost.
Message-ID:  <Pine.3.89.9503091144.B15648-0100000@lmux02>

next in thread | raw e-mail | index | archive | help


Try putting those modifications in a separate file, for example 
my_application.my_configs rather than in the my_application.cf file.

Then, in your main() after the .cf has been read in, read in your own 
.myconfigs file:



if (topLevel = cp->build_from_configuration_file(
               OI_translate_filename("my_application.cf"), OI_no ))
{
   if (cp->add_resources(
          OI_translate_filename("my_application.my_configs"),OI_SET_DATABASE))
   {
       .
       .
       .
   }
   else
      // error reading my_application.my_configs
}
else
   // error reading my_application.cf or no TopLevel resource.


Dunks.

===========================================================
 Duncan C. Smith                 Tel:  [+1] (407) 942 8175
 Siemens Stromberg-Carlson       Fax:  [+1] (407) 942 8188
 Lake Mary, Florida 32746.       Email dcs@ssc.siemens.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.3.89.9503091144.B15648-0100000>