Quote Originally Posted by schifers View Post
Is there another way, using the same WIN32 API function DialogBox and not using a global pointer?
CornedBee suggested using TLS, which is a good suggestion.
Is it a good design to use a global pointer?

Is it object oriented design doing this?
Answer to both above questions: No, but unless you defined a completely new interface for the Win32 API, you can't really fix the problem any other way, other than some semi-global way, e.g. using TLS.

--
Mats