hello my problem is that i cant print this on the screen im nwew on this and dont know hot it works, so i will apreciate any help, i want to print a message on the screen when a i press a button and i dont know why dont work
You're all messed up. Can't use BeginPaint() except in WM_PAINT handlers. You can use GetDC() to paint, but it won't persist (its an extremely poor practice to get into).