From owner-oi-users Thu Mar 9 11:44:12 1995 Return-Path: oi-users-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA19610 for oi-users-outgoing; Thu, 9 Mar 1995 11:44:12 -0800 Received: from lmux02.ssc.siemens.com (ssc.siemens.com [192.132.51.1]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id LAA19604 for ; Thu, 9 Mar 1995 11:44:04 -0800 Received: by lmux02.ssc.siemens.com (5.65/Ultrix3.0-C) id AA00813; Thu, 9 Mar 1995 14:44:33 -0500 Date: Thu, 9 Mar 1995 14:44:33 -0500 (EST) From: Duncan C Smith Subject: Re: my modifications to the .cf file are lost. To: oi-users@freefall.cdrom.com In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: oi-users-owner@FreeBSD.org Precedence: bulk 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