From: Jonathan de Boyne Pollard on 25 Mar 2010 00:18 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> <blockquote cite="mid:d53d9f85-1fa2-475d-9cd4-8d15e964a4fd(a)r1g2000yqj.googlegroups.com" type="cite"> <p wrap="">My application uses a config.ini file to store some variables, [...] such as [...] the position and size of the window [...] I'm wondering, isn't there an easier way, to read and write the data?<br> </p> </blockquote> <p><a href="http://support.microsoft.com/kb/310294">Use the registry</a>, perhaps? <a href="http://www.delphi3000.com./articles/article_852.asp">Like this</a>. Note the caution in the MSKB article.<br> </p> </body> </html>
From: Jonathan de Boyne Pollard on 25 Mar 2010 15:06 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> <blockquote cite="mid:cxJqn.15005$pv.8244(a)news-server.bigpond.net.au" type="cite"> <p>You are overreacting. </p> </blockquote> <p>No, xe isn't. He's stressing a basic lesson in program design that people who want to be future-proof and portable have to learn. Moreover, it's better to learn this lesson <em>before</em> one finds onesself locked into the limitations of a file format that one designed ten years ago, which in M. Piranha's case is <em>right now</em>. Go and read <a href="http://www.lysator.liu.se./c/ten-commandments.html">Henry Spencer's Tenth Commandment</a>, <a href="http://stackoverflow.com/questions/2193472/are-files-dumped-with-fwrite-portable-across-different-systems">the writings of Martin York</a>, or <a href="http://fadden.com./techmisc/file-formats.htm">the writings of Andy McFadden</a>. <em>Learn</em> from other people's mistakes in this area. There are enough examples of them to learn from.</p> </body> </html>
|
Pages: 1 Prev: C++ Win32 forum? Next: Task Manager "System Cache" vs. Performance Monitor "System Ca |