beginner question

Tech-Archive recommends: Fix windows errors by optimizing your registry



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?


.