Jump to content
IGNORED

Need help getting some C++ code to work


CodeMonkey666

Recommended Posts

Hey, I am new to programming, learning C++ right now. Anyhow, I decided to check out GameTutorials.com to see how their tutorials are. I downloaded some of their .Net tutorials for Visual Studio.Net I think it is, and then I used the code in Microsoft Visual Studio.Net 2003.

 

Anyhow, everytime I try to build the code so I can see the results, it gives this one error that says, "Unexpected end of file while looking for precompiled header directive." Now that happens for every code tutorial I tried from gametutorials, and I seriously doubt the code writers are making the exact same mistake every time; so what exactly is the problem and how do I get the code to work??

Link to comment
Share on other sites

Yeah, it occurred to me to try that about 5 minutes after I had made this thread (googling the phrase). It turns out the code usually will work, it's just a lot of those programs do not have the " 'stdafx.h' using namespace std" coding in them, so they compile fine except for that one error. Usually that fixes it though.

 

Thanx for the help however

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...