james at piku.org.uk
Sat Mar 2 11:11:00 PST 2002
On Sat, Mar 02, 2002 at 09:32:51PM +0100, Walter Haslbeck wrote:
| > 2. is a bit more involved, and I'm not sure (you'd need to know where
| > the program was installed to, maybe, but Windows users don't have
| > homedirectories really).
| Does it make sense to use the registry instead of a configfile
| on Win32?
I suppose. And in NT4 upwards it seems to be normal. However then you'd
need to somehow talk to the registry, which would involve including
windows.h (and random bits of the MFC I think), and then your program's
nolonger portable unless you hide all the windows stuff behind some
#ifdef ... #endif pairs (which would make sense really).
Talking to the registry using MSVC++ is quite easy, it's the same as
writing to an ini file, only in NT4 > it goes into the registry. The
stuff in the MSDN that deals with it isn't too conflicting or confusing
And then there's the mac (OS9,8,7 or X?) :-)
Garlic gum is not funny
6AD6 865A BF6E 76BB 1FC2 | www.piku.org.uk/public-key.asc
E4C4 DEEA 7D08 D511 E149 | www.piku.org.uk wnzrf at cvxh.bet.hx (rot13'd)
More information about the SDL