CDC *pDC=new CDC;
and
CDC *pDC;
what's the different?
Posted on 2003-10-11 12:08:12 by gaoym0
Well... the first one declares a variable of type CDC* and calls a function that creates an object of type CDC and assigns the address of the newly created object to pDC. The second one just reserves space for the variable pDC without setting it to anything.
Posted on 2003-10-11 12:22:26 by Sephiroth3

Well... the first one declares a variable of type CDC* and calls a function that creates an object of type CDC and assigns the address of the newly created object to pDC. The second one just reserves space for the variable pDC without setting it to anything.


Sorry,I forget this is Win32Asm forum!
But,Think You!
Posted on 2003-10-11 12:38:17 by gaoym0