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 


Beginner question about c++ WinAPI

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
180fok
Newbie cheater
Reputation: 0

Joined: 08 Jul 2010
Posts: 16

PostPosted: Thu Jul 08, 2010 3:41 pm    Post subject: Beginner question about c++ WinAPI Reply with quote

Hi, I'm not really beginner, I've been learning c++ over the internet for 1 year, but there is always something that stops me from doing my stuff.
Why can't I see the initialization of szTitle? When I create a new project, the form's title is the same as the project's name I chose. But I can't see where the TCHAR szTitle is initialized! Thanks for your answer!
Back to top
View user's profile Send private message
AtheistCrusader
Grandmaster Cheater
Reputation: 6

Joined: 23 Sep 2006
Posts: 681

PostPosted: Thu Jul 08, 2010 3:43 pm    Post subject: Reply with quote

Most probably in some header file.
Back to top
View user's profile Send private message
180fok
Newbie cheater
Reputation: 0

Joined: 08 Jul 2010
Posts: 16

PostPosted: Thu Jul 08, 2010 3:44 pm    Post subject: Reply with quote

masterkert3° wrote:
Most probably in some header file.

I edited my op from "declaration" to initialization. Sorry, I mixed them up.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Thu Jul 08, 2010 4:00 pm    Post subject: Reply with quote

showing us some code might be helpful
Back to top
View user's profile Send private message
180fok
Newbie cheater
Reputation: 0

Joined: 08 Jul 2010
Posts: 16

PostPosted: Thu Jul 08, 2010 4:03 pm    Post subject: Reply with quote

Slugsnack wrote:
showing us some code might be helpful

In vc++ 2010 when creating a new w32 project, in the "projectname".cpp

Btw I realized that my title can be changed in the resource file!
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Thu Jul 08, 2010 4:42 pm    Post subject: Reply with quote

yes, resources are not the only way of creating guis. that's why i had to ask. i suggest in the future if you want help with programming you post some code
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Jul 08, 2010 6:50 pm    Post subject: Reply with quote

Sounds like you are just creating an basic project making the IDE automatically create the basics for you. Which is why it will default the values of some things to the projects name.

masterkert already pointed out what you are basically asking, the variable holding the window title can be found in one of the files automatically created for the project. You can change the variable to whatever you want, as well as changing it's value. It's just there already because of how you started the project.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
bhpianist
Cheater
Reputation: 1

Joined: 17 Apr 2010
Posts: 38

PostPosted: Thu Jul 08, 2010 10:31 pm    Post subject: Reply with quote

By the way, the only time you should ever use a wizard is when it's generating code you already understand.
Back to top
View user's profile Send private message MSN Messenger
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