Jump to content
  • Advertisement
Sign in to follow this  
Odiee

[SOLVED] suggestions on building event mechanism in allegro

This topic is 3883 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

System: VisualStudio 2003/C++ Hi. I'm trying to build event-driven mechanism in allegro. I had in mind to build EventManager thread object witch would process any specified event. But I can't use CreateThread or WaitForMultipleObjects because that functions are specified in "windows.h" and If I try to include it, the BITMAP struct specified in allegro will collide with windows-one. Any idea on how to build event-mechanism without win32 thread functions? Or at least how to fix this BITMAP collide error? I'm using standard win32 console project and I had to
#define USE_CONSOLE
to get rid of "error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup" linker error. [Edited by - Odiee on December 5, 2007 2:57:24 AM]

Share this post


Link to post
Share on other sites
Advertisement
The problem is solved by including <winalleg.h> after including <allegro.h>
this gives access to all win32 thread specific functions.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!