by mlepage » Apr 28, 2004 @ 4:01pm
There is a syntax called "placement new" which will allow you to construct an object into existing, preallocated memory. I'm not sure if it is supported in eVC3 or eVC4, but if it is, that's another way to do what you want, without writing your own new operator.
Don't do arcane casting tricks. They are dangerous and there are other, proper ways to do what you want.