To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 9617
9616  |  9618
Subject: 
Re: LDRAWPREDIRS LDRAWPOSTDIRS - Summary please!
Newsgroups: 
lugnet.cad.dev
Date: 
Mon, 15 Mar 2004 01:58:29 GMT
Viewed: 
3922 times
  
In lugnet.cad.dev, Don Heyse wrote:
In lugnet.cad.dev, Michael Lachmann wrote:
"Travis Cobbs" wrote:
The desire was to preserve standard Windows INI file formatting,
and each data line in an INI file has the form <key> = <value>
(spaces optional).  The numbers were suggested as keys, with
positive responses from the people that responded.

As a pratical manner, it's actually easier for a Windows program to
load the  settings this way, since it can repeatedly ask for the next
numeric key in the [LDrawSearch] section until it gets a failed read.

Easier ? Hmmm - when you read from a file its more easy to do it by
hand and read it line by line.
If you read from the registry there is a enum function which returns
every value in a key ...

I'm still somehow a favorit of no numbers and equals at the beginning
of the line .....

Ah, but we've already covered this ground.  In addition to the registry
functions, there are also Windows functions for reading and writing
to INI files in the format with the = sign.  Search in this thread
for getprivateprofilestring and/or writeprivateprofilestring.  It sounded
like Lars was going to use these functions, so I think we should stick
with that plan.

Don

Yes, I'd prefer numbers and equals signs.  All the functions I use to read INI
files require this format (or something similar. e.g. <string> <separator>
<string>)

-Orion



Message has 1 Reply:
  Re: LDRAWPREDIRS LDRAWPOSTDIRS - Summary please!
 
<SNIP (...) sounded (...) INI (...) Ok, Ok ... I agree! No problem with that, I just thought I could convice you for the different side of the river ;-> The solution is not beautyfull, but I can live with it. Michael (21 years ago, 15-Mar-04, to lugnet.cad.dev)

Message is in Reply To:
  Re: LDRAWPREDIRS LDRAWPOSTDIRS - Summary please!
 
(...) Ah, but we've already covered this ground. In addition to the registry functions, there are also Windows functions for reading and writing to INI files in the format with the = sign. Search in this thread for getprivateprofilestring and/or (...) (21 years ago, 15-Mar-04, to lugnet.cad.dev)

132 Messages in This Thread:
(Inline display suppressed due to large size. Click Dots below to view.)
Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR