Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Beginning [C++]
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
jackyyll
Expert Cheater
Reputation: 0

Joined: 28 Jan 2008
Posts: 143
Location: here

PostPosted: Thu Aug 21, 2008 6:49 pm    Post subject: Reply with quote

Shigure wrote:
ok thanks, but now I'm stuck again, I'm doing one of those Hello world things and I don't know what kind of project to open up..... which should I use?


W/e your compiler has for a console application.
Back to top
View user's profile Send private message AIM Address MSN Messenger
lucid
Master Cheater
Reputation: 0

Joined: 23 Jan 2008
Posts: 424

PostPosted: Thu Aug 21, 2008 7:02 pm    Post subject: Reply with quote

ummm.... Visual studios C++... This is what the entire topic is about. And what decompiler should I use? I don't have one... Its a Hello World program, the kind that they use here
Back to top
View user's profile Send private message
rapion124
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Mar 2007
Posts: 1095

PostPosted: Thu Aug 21, 2008 7:07 pm    Post subject: Reply with quote

VB is so retarded. Programming with VB is like having someone spoonfeed you everything. For example, there are wrappers for almost every Win32 API. Like, you can get a process ID with a function that takes 1 argument.

VB doesn't teach you all the "under the hood" stuff involved with doing something. It just gives you pre-made routines. So, when you move on to C++, you are screwed because you're so used to the conveniences of VB.
Back to top
View user's profile Send private message
lucid
Master Cheater
Reputation: 0

Joined: 23 Jan 2008
Posts: 424

PostPosted: Thu Aug 21, 2008 7:16 pm    Post subject: Reply with quote

when did I start talking about VB? I'm using Visual Studios C++
Back to top
View user's profile Send private message
igoticecream
Grandmaster Cheater Supreme
Reputation: 0

Joined: 23 Apr 2006
Posts: 1807
Location: 0x00400000

PostPosted: Thu Aug 21, 2008 8:40 pm    Post subject: Reply with quote

open visual studio (i got 2005)

new -> project ->select win32 app. -> ok -> next -> console app. -> end

#include "stdafx.h"
#include <stdio.h>
#include <conio.h>


int _tmain(int argc, _TCHAR* argv[])
{
printf("Hello world");
getch();
return 0;
}

done

_________________
+~
Back to top
View user's profile Send private message
lucid
Master Cheater
Reputation: 0

Joined: 23 Jan 2008
Posts: 424

PostPosted: Thu Aug 21, 2008 8:53 pm    Post subject: Reply with quote

How do you compile a program with Visual Studios 2008 express edition? The program code I'm using is this

Code:
#include <iostream>
using namespace std;

int main()
{
   cout <<"Hello unworthy humans";

   return 0;
}


I don't know how to compile, the file is called Sample.cpp , I used notepad, and I am trying to compile using VS08C++Express


Last edited by lucid on Fri Aug 22, 2008 5:26 am; edited 1 time in total
Back to top
View user's profile Send private message
&#20013;&#22269;&
Cheater
Reputation: 0

Joined: 21 Aug 2008
Posts: 34

PostPosted: Thu Aug 21, 2008 8:58 pm    Post subject: lol Reply with quote

study binary,hex,octal/math classes
gear up your logic Razz
@shigure
u took that offa cpluspluw dot com(sorry cant post urls yet) didnt u
=P
i personally like to use the std:: command
=]
Back to top
View user's profile Send private message
igoticecream
Grandmaster Cheater Supreme
Reputation: 0

Joined: 23 Apr 2006
Posts: 1807
Location: 0x00400000

PostPosted: Thu Aug 21, 2008 9:19 pm    Post subject: Reply with quote

press F7 or the green triangle
_________________
+~
Back to top
View user's profile Send private message
lucid
Master Cheater
Reputation: 0

Joined: 23 Jan 2008
Posts: 424

PostPosted: Fri Aug 22, 2008 5:28 am    Post subject: Reply with quote

Code:
#include <iostream>
using namespace std;

int main()
{
   cout <<"Hello unworthy humans";

   return 0;
}


For some reason when I try to use the code above, it says there is an error. Does anyone see something wrong with this code? If not does anyone else have trouble using it?
Back to top
View user's profile Send private message
igoticecream
Grandmaster Cheater Supreme
Reputation: 0

Joined: 23 Apr 2006
Posts: 1807
Location: 0x00400000

PostPosted: Fri Aug 22, 2008 12:45 pm    Post subject: Reply with quote

StdAfx.h error?

#include "StdAfx.h"

_________________
+~
Back to top
View user's profile Send private message
lucid
Master Cheater
Reputation: 0

Joined: 23 Jan 2008
Posts: 424

PostPosted: Fri Aug 22, 2008 3:30 pm    Post subject: Reply with quote

So it should be like this?
Code:
#include <StdAfx.h>
using namespace std;

int main()
{
   cout <<"Hello unworthy humans";

   return 0;
}
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Aug 22, 2008 5:02 pm    Post subject: Reply with quote

Shigure wrote:
Code:
#include <iostream>
using namespace std;

int main()
{
   cout <<"Hello unworthy humans";

   return 0;
}


For some reason when I try to use the code above, it says there is an error. Does anyone see something wrong with this code? If not does anyone else have trouble using it?


YES LET'S NOT POST THE ERROR AND LEAVE EVERYONE GUESSING.

and no, you need <iostream>
Back to top
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Fri Aug 22, 2008 5:16 pm    Post subject: Reply with quote

lol cout is bad practice looks very ugly might as well get used to printf() and its convertion symbols.
_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Fri Aug 22, 2008 5:38 pm    Post subject: Reply with quote

if cout is bad practice then printf is also. Its better to use sprintf/WriteConsole for win32.
_________________
Back to top
View user's profile Send private message
lucid
Master Cheater
Reputation: 0

Joined: 23 Jan 2008
Posts: 424

PostPosted: Fri Aug 22, 2008 10:16 pm    Post subject: Reply with quote

You don't have to be an ass just ask. Every time I try to compile it by pressing F7 then it says there were build problems. Nothing else. Just stick in my code to Visual Studios 2008 you will see what I mean.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 4 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites