to make the hinstance compare to make hwnd ok