PDA

View Full Version : winAPI functions



01-08-2006, 04:49 AM
Hi,

I've just transfered a dev cpp program from my computer at university to the one at my home, and it won't compile. It says that some winAPI functions such as swapbuffers (also some functions referring to the pixel format) are refered to without definition, whilst recognising others. I have a win32 devpak (I think it's the most recent version) so I can't really imagine what is the problem. I was wondering if anybody might be able to help.

Regards,

Woods

songho
01-08-2006, 06:43 PM
<Woods>,
Make sure your project type is "Win32 GUI".

Check the following;
Project Option >> General >> Type.

Once it is set as "Win32 GUI", then you don't have to link GUI libs manually in Dev-C++. But, if it keeps complaining about WinAPIs, try to add "-lwinmm -lgdi32" at the linker parameter section.
==song==