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 


[C++] .rc Help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
manc
Grandmaster Cheater
Reputation: 1

Joined: 16 Jun 2006
Posts: 551

PostPosted: Sat Jul 19, 2008 7:39 pm    Post subject: [C++] .rc Help Reply with quote





Forget about all the red stuff, how do you include resource scripts (.rc) to your source file? (The one circled in green)

Thanks for your help.

_________________


Last edited by manc on Sat Jul 19, 2008 8:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sat Jul 19, 2008 7:50 pm    Post subject: Reply with quote

Code:

#include "resource.h"


Rolling Eyes

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing


Last edited by oib111 on Sat Jul 19, 2008 7:51 pm; edited 1 time in total
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Jaak
Expert Cheater
Reputation: 0

Joined: 02 Jul 2008
Posts: 176

PostPosted: Sat Jul 19, 2008 7:51 pm    Post subject: Reply with quote

Does the file need to be in like the same folder or directory as with the compiler. OR, Doesn't it have to be in the folder with the rest of your project?
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sat Jul 19, 2008 7:52 pm    Post subject: Reply with quote

Rest of your project.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
manc
Grandmaster Cheater
Reputation: 1

Joined: 16 Jun 2006
Posts: 551

PostPosted: Sat Jul 19, 2008 8:05 pm    Post subject: Reply with quote

oib111 wrote:
Code:

#include "resource.h"




heh, Thanks. Simple syntax mistake =]

*edited first post incase no one noticed, How do you add resource scripts into the source code?

_________________
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sat Jul 19, 2008 8:31 pm    Post subject: Reply with quote

You don't. You just include the .h file. So it would be like.

.h file

Code:

//extra line so no unexpected EOF
//bla



.rc file

Code:

//extra line so no unexpected EOF
include "resource.h"
//bla



main.cpp

Code:

include "resource.h"

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8589
Location: 127.0.0.1

PostPosted: Sun Jul 20, 2008 11:10 am    Post subject: Reply with quote

Read up one this article as well:
http://msdn.microsoft.com/en-us/library/36k2cdd4(VS.80).aspx

It will explain the difference between using < > and " " when including files.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Heartless
I post too much
Reputation: 0

Joined: 03 Dec 2006
Posts: 2436

PostPosted: Sun Jul 20, 2008 1:48 pm    Post subject: Reply with quote

Your not suppose to include the resource (.rc), you are suppose to include the header for it (.h). So it wold look something like this...

Code:

#include "resource.h"
// not #include <resource>
...

_________________
What dosen't kill you, usually does the second time.
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
Page 1 of 1

 
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