|
From: <wa...@wa...> - 2004-05-28 09:01:14
|
On 28 May 2004 at 8:51, Oladipo Odumosu wrote: > the kernel32 and user32 libraries aren't for GDI. > they're for basic Windows services. kernel32 handles > OS interfacing, and user32 handles the UI. there are > some function calls that one might think belong to the > GDI set, but actually are UI functions. example is > DrawText(), which iirc uses a device context, which is > GDI-related. for Win32 programs generally, just link > with all 3, that is libkernel32.a, libuser32.a, and > libgdi32.a, so you don't miss anything. Are they automatically linked in? To the best of my knowledge, I've never had to link those libraries into anything I've compiled... including DrawText and any of the example programs from Petzold's book or Hart's Win32 System programming book or any of the graphics books I've played around with. Watson |