Re: Copying Bitmap



The goal also included avoiding 'new'.
joe
On Sun, 03 Jun 2007 09:06:04 GMT, MrAsm <mrasm@xxxxxxx> wrote:

On Sat, 02 Jun 2007 21:57:13 -0400, Joseph M. Newcomer
<newcomer@xxxxxxxxxxxx> wrote:

The problem is to have a generic DC which could be either a window DC *or* a client DC,
and MFC does not support a generic way to get a DC which could be either, hence the need
to go around it.
joe

I did not test it, but would the following be OK?

CDC * pDC;
if ( FullWnd )
pDC = new CWindowDC( wnd );
else
pDC = new CClientDC( wnd );

// Use pDC ...

...

delete pDC;
pDC = NULL;


MrAsm
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Urgent replication not seeming to work
    ... even my enemies call me joe. ... There are two components to the whole PDC Chaining story. ... If the PDC is too busy or their is a network issue the password will not be forwarded onto the PDC, it will get there through normal AD replication eventually. ... There is really no such thing as urgent replication. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Urgent replication not seeming to work
    ... even my enemies call me joe. ... There are two components to the whole PDC Chaining story. ... If the PDC is too busy or their is a network issue the password will not be forwarded onto the PDC, it will get there through normal AD replication eventually. ... There is really no such thing as urgent replication. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Copying Bitmap
    ... and MFC does not support a generic way to get a DC which could be either, ... CDC * pDC; ... pDC = new CWindowDC(wnd); ...
    (microsoft.public.vc.mfc)
  • RE: DHCP question
    ... Since migration newsgroup mainly focus on the process of migration between ... Microsoft Online Partner Support ... >>I want to move the DHCP database from the NT 4 PDC onto the W2K3 machine ... >>ensure that all client PCs can still access the network before I finalise ...
    (microsoft.public.windows.server.migration)
  • RE: NT4.0 domain to WIN2003 interim mode
    ... Current PDC fileserver has goofy hardware that ... to PDC, upgrade it to 2003, then somehow move the PDC designation to the good ... 2003 server with SATA drives? ... > Microsoft Online Partner Support ...
    (microsoft.public.windows.server.migration)

Loading