k, here's the dubs: if you use dev-c++ to create a project and specify the target as win32 gui, the 3 libraries get auto-linked in. the ide does everything. if you were using gcc from a command line, you'd have to specify -mwindows as a link option, or manually (i don't know if it would work) link in libkernel32.a, libuser32.a, libgdi32.a. if you were using msvc++ (the ide, if you're using the toolkit, you'll have to specify the libs manually), you'ld see that those 3 libs are always autolinked in.
wa...@wa... wrote: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
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
---------------------------------
Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now |