beginner question
- From: "Lloyd Dupont" <net.galador@ld>
- Date: Fri, 5 Aug 2005 11:08:09 +1000
how do I redefine the new operator?
for all the structure I use at once!
(some of them comes from C include files).
The rationale:
I'm writting a managed C++ wrapper around C API (external headers &
structure definition).
it's very handy to use "new SCRIPT_ITEM[N];" however I want to handle
OutOfMemory gracefully,
that is dealloc everything 1st and then throw a managed exception, I also
want to initialize all my struct to 0 with new.
Also, if I have not enough memory in a C++ constructor, should the object
delete itself?
.
- Follow-Ups:
- Re: beginner question
- From: Tamas Demjen
- Re: beginner question
- Prev by Date: Re: Automating third-party applications
- Next by Date: VC++ .net 2005 express beta 2
- Previous by thread: Crystal Reports
- Next by thread: Re: beginner question
- Index(es):