Jump to content
  • Advertisement
Sign in to follow this  
Zero Volt

How to run this AI program(C++) ?

This topic is 1959 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

Hello, 
 
I have the source code of a book, but the project doesn't compile when I run it, it give me a message like this :

.

" Resources.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'. "

 

the file is in the attachment, please anyone try and let me know how he compiled the project.

Edited by Zero Volt

Share this post


Link to post
Share on other sites
Advertisement
This is a VC6 project file. VC6 is long dead. It was released fifteen years ago in 1998.

Assuming you did get a working MFC project going, your code will still not compile.

The code is assuming a version of Windows API from 1998.

It is assuming the language is from 1998. Before the C++ standard.




You can still read the code and learn theory from it, just understand that the code will not compile on a modern machine.

Share this post


Link to post
Share on other sites

If you are really lucky, just replace the include of afxres.h with windows.h. Pretty much depends on the project and if you get a lot of errors about stuff not having been declared, it's not going to help.

Share this post


Link to post
Share on other sites

If you're not having any luck, you could perhaps consider trying to contact this guy, who seems to have made it a bit of a mission to get old source samples to compile and run.

 

 

Personally, I'd probably either just try your best to learn from the theory, or look for more modern sources to learn from.

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!