#Mod .INI's w/WriteProf..
14-Oct-91 16:29:17
Sb: #Mod .INI's w/WriteProf..
Fm: Brightwork Development 75300,1415
To: Don E Wanless 72730,3700
Thanks, Don and Dennis,
Checked out the Windows Programming Reference, and discovered the functions
there. Something interesting, I've noticed though, is the inability to add
a "like" keyname. For instance, I need to add another "device= <blah>"
line in the [386enh] section of a SYSTEM.INI. However, according to the
reference, WritePrivateProfileString only provides for adding if the
specified keyname doesn't exist. Otherwise, it finds the first (if there's
more than one) occurance of the specified keyname and overwrites it with
your specified string.
The only way I can see around this is to add the device I need to add to
the end of an existing "device= " line (i.e. "device = blah.dev, mydevice",
which appears to work).
Any suggestions?
Tom Sollas
There are 2 Replies.