Hi.
If I create a file for writing and then call PxConfigWrite*() with a NULL
section it crashes. I think it would be better if it did nothing and
returned 0 for this case. I was trying to write the ‘; Version = 1’ string
to the top of a file.
Is it possible to change the comment character from ‘#’ to ‘;’? We have
always used the ‘;’ to be the comment character in our ASCII setup files
(from the old assembler days!).
I would like to use a mix of PxConfig*() calls and regular C functions to
read/write the ASCII setup files.
TIA
Augie
Hi Augie,
I have spoken to the developer and he figures you
should call PxConfigSection() prior to calling PxConfigWrite*()
with NULL for section. It still shouldn’t crash though, so we are
raising a PR to this effect.
Hope this helps
Regards
Brenda
Augie Henriques <augiehenriques@hotmail.com> wrote:
Hi.
If I create a file for writing and then call PxConfigWrite*() with a NULL
section it crashes. I think it would be better if it did nothing and
returned 0 for this case. I was trying to write the ‘; Version = 1’ string
to the top of a file.
Is it possible to change the comment character from ‘#’ to ‘;’? We have
always used the ‘;’ to be the comment character in our ASCII setup files
(from the old assembler days!).
I would like to use a mix of PxConfig*() calls and regular C functions to
read/write the ASCII setup files.
TIA
Augie
Hi Brenda,
“Gui Group” <gui@qnx.com> wrote in message news:9j284k$6c4$1@nntp.qnx.com…
Hi Augie,
I have spoken to the developer and he figures you
should call PxConfigSection() prior to calling PxConfigWrite*()
with NULL for section. It still shouldn’t crash though, so we are
raising a PR to this effect.
Thanks.
How about my other question(s)?
Augie
Hope this helps
Regards
Brenda
Augie Henriques <> augiehenriques@hotmail.com> > wrote:
Hi.
If I create a file for writing and then call PxConfigWrite*() with a
NULL
section it crashes. I think it would be better if it did nothing and
returned 0 for this case. I was trying to write the ‘; Version = 1’
string
to the top of a file.
Is it possible to change the comment character from ‘#’ to ‘;’? We have
always used the ‘;’ to be the comment character in our ASCII setup files
(from the old assembler days!).
I would like to use a mix of PxConfig*() calls and regular C functions
to
read/write the ASCII setup files.
TIA
Augie
Hi Augie,
Unfortunately, it is not possible to change the comment character from
‘#’ to ‘;’.
Regards
Brenda
Augie Henriques <augiehenriques@hotmail.com> wrote:
Hi Brenda,
“Gui Group” <> gui@qnx.com> > wrote in message news:9j284k$6c4$> 1@nntp.qnx.com> …
Hi Augie,
I have spoken to the developer and he figures you
should call PxConfigSection() prior to calling PxConfigWrite*()
with NULL for section. It still shouldn’t crash though, so we are
raising a PR to this effect.
Thanks.
How about my other question(s)?
Augie
Hope this helps
Regards
Brenda
Augie Henriques <> augiehenriques@hotmail.com> > wrote:
Hi.
If I create a file for writing and then call PxConfigWrite*() with a
NULL
section it crashes. I think it would be better if it did nothing and
returned 0 for this case. I was trying to write the ‘; Version = 1’
string
to the top of a file.
Is it possible to change the comment character from ‘#’ to ‘;’? We have
always used the ‘;’ to be the comment character in our ASCII setup files
(from the old assembler days!).
I would like to use a mix of PxConfig*() calls and regular C functions
to
read/write the ASCII setup files.
TIA
Augie