why SwapBuffers crashes with HDC*?
HDC myHDC;
HDC *p_HDC;
createMywindow(); // works ok
p_HDC = &myHDC; // myHDC its ok.
SwapBuffers(*p_HDC); // crashes the application, but with myHDC runs fine.
Thanks a lot
The same code works fine with HDC instead of HDC*, why?