MS DOS overlay programming

Richard legalize at
Thu Dec 28 19:25:05 CST 2006

In article <d67e42a90612281640h7a71e83dh796a428725a63127 at>,
    "Eric J Korpela" <korpela at>  writes:

> void initialization_routine() {
>   init_var *tmpvars=new(init_vars);
>   // do initialization stuff
>   // add noops here if necessary to pad the routine to sizeof(init_vars)
>   *init=*tmpvars;
>   delete tmpvars;
> }

Classic case of abusing new/delete when all you need to do is declare
an instance of init_vars on the stack...
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download

        Legalize Adulthood! <>

More information about the cctech mailing list