On Fri, 23 Mar 2012 10:07:05 +0100, Eugen Dedu <eugen.d...@pu-pm.univ-fcomte.fr> wrote: > Stephen, where do you check if a header needs to have another header > included (such as windows.h)? > > I have found a very interesting thread: > http://old.nabble.com/windows.h-dependency-td15175386.html
It is very interesting indeed. As far as I know the way to check whether another header is needed it to look up the documentation on MSDN, although it does tend to be incomplete — for instance the documentation for DNS functions only mentions windns.h, even though windns.h needs windows.h (or more typically, winsock2.h). In general, if a header doesn't build on its own, adding windows.h before it fixes things. It's not satisfactory, I know, but I don't think there's anything better... Regards, Stephen
signature.asc
Description: PGP signature