----boundary-LibPST-iamunique-986737576_-_-
Content-type: text/plain
Hello, CFB!
>> -----Original Message-----
>> From: blackbox{([at]})nowhere.xy
>> Behalf Of Alexander Iljin
>> Sent: Thursday, 30 November 2006 6:37 PM
>> To: BlackBox Mailing List
>> Subject: [BlackBox] - Settings
>>
>>
>> Hello!
>>
>> Is there a standard way in BlackBox for keeping program's settings
>> between runs?
>> HostRegistry is not a good idea, because it is not portable.
>> I'm talking about some sort of configuration files, like ini-files?
>> Did anyone work with those? Do you have any modules of subsystems
>> you could share?
>>
CS> Hi Alexander,
CS> I don't know about a standard way for BlackBox but I've done some work
CS> on this using GPCP and have designed a system that can be
CS> interchangeable between Ini files and Registry keys. The following
CS> snippet should give you a feel for how it works:
[cut]
Thank you very much, Chris!
It's been a long time since I posted that message. Today (15 jan
2007) I received your reply, and I find it an interesting approach
to the problem of storing settings.
I've already come up with a solution of my own, but thanks anyway!
---=====---
Alexander
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
----boundary-LibPST-iamunique-986737576_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhlbGxvLCBDRkIhXHBhcg0KXHBhcg0KPj4gLS0t
LS1PcmlnaW5hbCBNZXNzYWdlLS0tLS1ccGFyDQo+PiBGcm9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