help.....

this funtion always return 0…
SwapBuffers(dc.m_ps.hdc)

help…

Umm…what kind of device context is that?? If you could be more clear, i would be glad to help you…Maybe post a fraction of your code to clarify?