On 06/06/2012 14:54, Cesar Mello wrote: > It compiles nicely, but fails to link. Please can you tell me how to > specify user32 and gdi32 libraries for the linker? Sorry if I'm being > too newbie. :-) For example like this link test.obj user32.lib msvcrt.lib msvcprt.lib - Dmitry Sokolov.