Subject:
|
Re: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Wed, 18 Feb 2004 19:05:45 GMT
|
Viewed:
|
5185 times
|
| |
| |
"Don Heyse" <dheyse@hotmail.spam.go.away.com> schrieb im Newsbeitrag
news:HtAD4n.BCJ@lugnet.com...
<SNIP>
> Ok, so let's look at Michael's .ini file format. <SNIP>
> I like the idea of defaulting to relative paths off of <LDRAWDIR>, but
> Lars has a point. I'd like an easy, platform independent way of
> quickly identifying an absolute path. What about using a URL for
> absolute paths? eg. "file://wherever/the/path/is". This might come
> in handy later for files available via http or ftp.
FILE:// style is fully machine dependend as well, so there is no need to put
file in front, but I'm open to additionaly allow ftp and http urls for
future versions. For now I would make things far to complex and complicated
...
>
> I think I still like <MODELDIR> over MODELDIR since it's not relative
> to <LDRAWDIR>. However, I might even go for "." instead of <MODELDIR>
> because it's so concise.
I can agree with that as well, if it speeds up things.
>
> The only other problem I have with Michael's format is that it's not
> in "key=value" format. Maybe that's just because I don't do enough
> Windows programming. I know GetPrivateProfileString() works with
>
> [section]
> key=value
>
> formatted entries. Can someone point out the windows function to
> parse the MLCAD style entries?
I finaly got the point now. There is no such function :-| but however the
use of ini files on windows is just to have the settings in a file for
plattform independency, windows only programs should use the registry not
files - at least this is a microsoft guideline. I used the ini file for
things which do not fit within the key - value thing to be more flexible.
But you got me on thinking about multi line registry entries, how do they
look like when written into a file? I'll go and check that if I have time. -
Just for completeness multiline entries have one key but the value can be
saved in multiple lines each separated by a 0 at the end of the line. The
value is complete if you got two 0s. Theoretically I would guess in a file
you should get something like
KEY=VALUE-LINE1
VALUE-LINE2
VALUE-LINE3
NextKey = Value.
But its just a guess.
>
> Don
Michael
|
|
Message has 1 Reply:
Message is in Reply To:
| | Re: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths
|
| (...) ME and the NT variants store the environment in the registry so this would only make things worse for 95 and 98. That said, I'd still prefer to keep things short for the environment version of this. One variable, with as many shortcuts as (...) (21 years ago, 18-Feb-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
|
|
|
|