From: Tim Roberts on 18 Feb 2010 02:45 "Nic" <ncg3827(a)googlemail.com> wrote: > >In the VS 2005 I have been using, handles such as HWND and HISTANCE are >defined with DECLARE_HANDLE (..) which concerns me because I have been >casting these handles to LPVOID. Should I be concerned about this? DECLARE_HANDLE basically defines the handles as pointers to incomplete structures. The standards promise that you can convert a pointer (other than a pointer to function) to a void pointer and back again. -- Tim Roberts, timr(a)probo.com Providenza & Boekelheide, Inc. |