Can anyone give me an example of creating a PCSZ string dynamically
using new, or is this possible
Regards
Adrian Suri
> Can anyone give me an example of creating a PCSZ string dynamically
> using new, or is this possible
It makes no sense to allocate storage which you cannot write to, so I don't
see the point. What are you trying to do?
Only use I see for it is to protect the data when passing it from class
to class in OO code - I use it frequently there just to forestall fat
finger problems. It also reduces code size by a minuscule amount as it
allows a true reference passing without replication.
--
Will Honea <who...@yahoo.com>
Van you possibly show how you initialise this... have you any sample code..
adrian
I had assumed, I might be wrong that if you can create
a PCSZ on the fly one can produce a pointer to a variable, initialised
at run time, and not compile time. In other words without having to use
too much memory, as one can using an array of char
Adrian