Go Back   GameKiller - Maple Story Hacks, Combat Arms Hacks & WonderKing Hacks > Programming & Reversing > General Programming & Reversing

another

This is a discussion on another within the General Programming & Reversing forums, part of the Programming & Reversing category; im using build solution with the new Microsoft Visual C++ 2010 beta and now get this error message when i ...


Reply
 
LinkBack Thread Tools Display Modes
Old 01-05-2010, 09:05 PM   #1
Hacker
Feedback Score: 0 reviews
 
ChronicSomething's Avatar
 
Join Date: Dec 2009
Location: Texas
Posts: 390
Thanks: 198
Thanked 62 Times in 55 Posts
Send a message via MSN to ChronicSomething
Default another

im using build solution with the new Microsoft Visual C++ 2010 beta and now get this error message when i hit build solution.

1>------ Build started: Project: sample1, Configuration: Debug Win32 ------
1> sample1.cpp
1>cusers\owner\documents\visual studio 2010\projects\sample1\sample1\sample1.cpp(7): warning C4627: '#include <iostream>': skipped when looking for precompiled header use
1> Add directive to 'StdAfx.h' or rebuild precompiled header
1>cusers\owner\documents\visual studio 2010\projects\sample1\sample1\sample1.cpp(20): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source?
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
ChronicSomething is offline   Reply With Quote
Sponsored Links

Old 01-05-2010, 10:32 PM   #2
Newbie
Feedback Score: 0 reviews
 
Join Date: Jan 2010
Posts: 20
Thanks: 2
Thanked 6 Times in 2 Posts
Default Re: another

Can you post your source code?
xbOw00 is offline   Reply With Quote
Old 01-05-2010, 11:09 PM   #3
Hacker
Feedback Score: 0 reviews
 
ChronicSomething's Avatar
 
Join Date: Dec 2009
Location: Texas
Posts: 390
Thanks: 198
Thanked 62 Times in 55 Posts
Send a message via MSN to ChronicSomething
Default Re: another

/* This is a simple C++ program.

Call this file Sample.cpp.

*/

#include <iostream>

using namespace std;

// A C++ program begins at main().

int main()

{

cout << "C++ is power programming.";

return 0;

}

yes im a noob at C++ but im doing a tut and am stuck.
ChronicSomething is offline   Reply With Quote
Old 01-05-2010, 11:22 PM   #4
Newbie
Feedback Score: 0 reviews
 
Join Date: Jan 2010
Posts: 20
Thanks: 2
Thanked 6 Times in 2 Posts
Default Re: another

When I input the code into my C++ compiler, I get no error message. And by reading the code, there seems to be nothing wrong.

I guess it wouldn't do much if you add endl, so that the coding line becomes

cout << "C++ is power programming." << endl;
xbOw00 is offline   Reply With Quote
Old 01-06-2010, 12:17 AM   #5
Hacker
Feedback Score: 0 reviews
 
ChronicSomething's Avatar
 
Join Date: Dec 2009
Location: Texas
Posts: 390
Thanks: 198
Thanked 62 Times in 55 Posts
Send a message via MSN to ChronicSomething
Default Re: another

hmm well...ill go try it and if it works ill let you know and thank you =)

I am still getting a lot of errors...idk im trying pretty hard to learn C++ but its just not going my way.
ChronicSomething is offline   Reply With Quote
Old 01-06-2010, 12:25 AM   #6
Super Moderator

Feedback Score: 1 reviews
 
freedompeace's Avatar
 
Join Date: Jul 2009
Location: Melbourne, Australia
Posts: 3,657
Thanks: 64
Thanked 2,170 Times in 543 Posts
Default Re: another

You don't have "StdAfx.h"/

Try repairing your Visual Studio installation.
freedompeace is offline   Reply With Quote
Old 01-06-2010, 12:42 AM   #7
Hacker
Feedback Score: 0 reviews
 
ChronicSomething's Avatar
 
Join Date: Dec 2009
Location: Texas
Posts: 390
Thanks: 198
Thanked 62 Times in 55 Posts
Send a message via MSN to ChronicSomething
Default Re: another

again not trying to sound like a noob...but how do i repair it? lol
ChronicSomething is offline   Reply With Quote
Old 01-06-2010, 01:23 AM   #8
Super Moderator

Feedback Score: 1 reviews
 
freedompeace's Avatar
 
Join Date: Jul 2009
Location: Melbourne, Australia
Posts: 3,657
Thanks: 64
Thanked 2,170 Times in 543 Posts
Default Re: another

Originally Posted by frickfrack View Post
again not trying to sound like a noob...but how do i repair it? lol
Start > Control Panel > Add/Remove Programs (may also be called 'Uninstall Programs') > Visual Studio > Repair
freedompeace is offline   Reply With Quote
The Following User Says Thank You to freedompeace For This Useful Post:
ChronicSomething (01-06-2010)
Old 01-06-2010, 01:50 AM   #9
Hacker
Feedback Score: 0 reviews
 
ChronicSomething's Avatar
 
Join Date: Dec 2009
Location: Texas
Posts: 390
Thanks: 198
Thanked 62 Times in 55 Posts
Send a message via MSN to ChronicSomething
Default Re: another

okay im repairing it now ill let you know if that helped.

the repair didnt work for me...are there any other IDE's that i can code C++ in with a compiler and all that jazz?
ChronicSomething is offline   Reply With Quote
Old 01-06-2010, 07:23 AM   #10
Newbie
Feedback Score: 0 reviews
 
Join Date: Jan 2010
Posts: 20
Thanks: 2
Thanked 6 Times in 2 Posts
Default Re: another

Well, like you, I'm just getting started out, and Code::Blocks seems to be working pretty well for me. You should give that a try
xbOw00 is offline   Reply With Quote
The Following User Says Thank You to xbOw00 For This Useful Post:
ChronicSomething (01-06-2010)
Old 01-06-2010, 01:03 PM   #11
Hacker
Feedback Score: 0 reviews
 
ChronicSomething's Avatar
 
Join Date: Dec 2009
Location: Texas
Posts: 390
Thanks: 198
Thanked 62 Times in 55 Posts
Send a message via MSN to ChronicSomething
Default Re: another

do you have a link or a website for it i can go to?

i found code::blocks...but it says on there site that i need a new compiler that this one wont work for windows 7

i have figured out all i needed thank you xbOw00.
ChronicSomething is offline   Reply With Quote
Old 01-06-2010, 04:26 PM   #12
Newbie
Feedback Score: 0 reviews
 
Join Date: Jan 2010
Posts: 20
Thanks: 2
Thanked 6 Times in 2 Posts
Default Re: another

No problem ^^"
xbOw00 is offline   Reply With Quote
Old 01-06-2010, 05:13 PM   #13
Hacker
Feedback Score: 0 reviews
 
ChronicSomething's Avatar
 
Join Date: Dec 2009
Location: Texas
Posts: 390
Thanks: 198
Thanked 62 Times in 55 Posts
Send a message via MSN to ChronicSomething
Default Re: another

Also thank you freedompeace for trying to help me repair my Microsoft Visual C++...but i fail at repair not your fault it didnt work its mine lol.
ChronicSomething is offline   Reply With Quote
Old 01-06-2010, 06:15 PM   #14
Overlord
Feedback Score: 0 reviews
 
Dwarf's Avatar
 
Join Date: Jul 2009
Location: Texas
Posts: 797
Thanks: 75
Thanked 190 Times in 66 Posts
Default Re: another

Add
Code:
#include "stdafx.h"
on top of your code.
Dwarf is offline   Reply With Quote
Old 01-06-2010, 06:58 PM   #15
xD
Feedback Score: 0 reviews
 
Innovation's Avatar
 
Join Date: Aug 2009
Location: USA
Posts: 111
Thanks: 0
Thanked 20 Times in 13 Posts
Send a message via MSN to Innovation
Default Re: another

Either include "StdAfx.h" at the top, or make a new project with the "Empty Project" template.

Originally Posted by freedompeace View Post
You don't have "StdAfx.h"/

Try repairing your Visual Studio installation.
[Only Registered and Activated Users Can See Links. Click Here To Register...]

Repairing the installation won't help. He probably chose the "Win32 Console Application" template at the template selection window and accidentally removed the include because he copy and pasted the code from the tutorial he had recently written.
Innovation is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



GameKiller.net is not responsible for any content in any posting made by users on the site.