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 


Help vC++

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

Joined: 13 Mar 2007
Posts: 542

PostPosted: Tue Aug 26, 2008 12:44 pm    Post subject: Help vC++ Reply with quote

i found this tut on theoklibrary,

http://theoklibrary.org/showthread.php?t=294


Its to make nice looking windows,

Can anyone make a tut or explain better on were to add the void etc?

Beacuse i have no clue in hell i tried alot.
Back to top
View user's profile Send private message
HalfPrime
Grandmaster Cheater
Reputation: 0

Joined: 12 Mar 2008
Posts: 532
Location: Right there...On your monitor

PostPosted: Tue Aug 26, 2008 12:50 pm    Post subject: Reply with quote

Before you go off trying to do more complicated things, LEARN C++ FIRST!
You need to have an understanding of the basics of the language before getting into other things like windows and hacks.

But, to answer your question, you can put it anywhere, it's just a function.

_________________
Back to top
View user's profile Send private message
kb3z0n
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 542

PostPosted: Tue Aug 26, 2008 12:54 pm    Post subject: Reply with quote

True, but i keep getting errors.
Back to top
View user's profile Send private message
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Tue Aug 26, 2008 1:29 pm    Post subject: Reply with quote

kb3z0n wrote:
True, but i keep getting errors.


If you want help, atleast give us the erros. Do you honestly expect help with providing us with no information as to your problem?

Annyways, did you make sure you included <windows>?
Back to top
View user's profile Send private message Send e-mail
kb3z0n
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 542

PostPosted: Tue Aug 26, 2008 5:05 pm    Post subject: Reply with quote

..It's weird beause if i use

#include "stdafx.h"
#include "Windows.h"
HWND hWnd;

void Region()
{
HRGN Region = CreateRoundRectRgn(20, 27, 180, 280, 15, 15);
SetWindowRgn(hWnd, Region, TRUE);
}

Then it gives me errors on Winuser.h which i never tocuched.
Back to top
View user's profile Send private message
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Tue Aug 26, 2008 7:28 pm    Post subject: Reply with quote

kb3z0n wrote:
..It's weird beause if i use

#include "stdafx.h"
#include "Windows.h"
HWND hWnd;

void Region()
{
HRGN Region = CreateRoundRectRgn(20, 27, 180, 280, 15, 15);
SetWindowRgn(hWnd, Region, TRUE);
}

Then it gives me errors on Winuser.h which i never tocuched.


Shesh. You still id not give us the errors.
Back to top
View user's profile Send private message Send e-mail
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Tue Aug 26, 2008 8:23 pm    Post subject: Reply with quote

<windows.h> first off.

Secondly, make sure you have the platform SDK set up right.
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Tue Aug 26, 2008 8:29 pm    Post subject: Reply with quote

1. Create the project empty and add a source file, the pre-compiled headers are stupid.
2. You actually have to create a window... (Unless your just showing us a snippet)
3. #include <Windows.h>

< > = Check at directories given in the options.
" " = Check the current directory.

_________________
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Tue Aug 26, 2008 8:30 pm    Post subject: Reply with quote

lurc wrote:
< > = Check at directories given in the options.
" " = Check the current directory. Then checks the directory given in options.
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Tue Aug 26, 2008 8:31 pm    Post subject: Reply with quote

Flyte wrote:
lurc wrote:
< > = Check at directories given in the options.
" " = Check the current directory. Then checks the directory given in options.


Thanks for the correction. I only thought it was the current directory.

_________________
Back to top
View user's profile Send private message
kb3z0n
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 542

PostPosted: Sat Aug 30, 2008 2:40 pm    Post subject: Reply with quote

Thanks dude. +rep.
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