| View previous topic :: View next topic |
| Author |
Message |
kb3z0n Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 542
|
Posted: Tue Aug 26, 2008 12:44 pm Post subject: Help vC++ |
|
|
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 |
|
 |
HalfPrime Grandmaster Cheater
Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Tue Aug 26, 2008 12:50 pm Post subject: |
|
|
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 |
|
 |
kb3z0n Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 542
|
Posted: Tue Aug 26, 2008 12:54 pm Post subject: |
|
|
| True, but i keep getting errors. |
|
| Back to top |
|
 |
kitterz Grandmaster Cheater Supreme
Reputation: 0
Joined: 24 Dec 2007 Posts: 1268
|
Posted: Tue Aug 26, 2008 1:29 pm Post subject: |
|
|
| 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 |
|
 |
kb3z0n Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 542
|
Posted: Tue Aug 26, 2008 5:05 pm Post subject: |
|
|
..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 |
|
 |
kitterz Grandmaster Cheater Supreme
Reputation: 0
Joined: 24 Dec 2007 Posts: 1268
|
Posted: Tue Aug 26, 2008 7:28 pm Post subject: |
|
|
| 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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Tue Aug 26, 2008 8:23 pm Post subject: |
|
|
<windows.h> first off.
Secondly, make sure you have the platform SDK set up right. |
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Tue Aug 26, 2008 8:29 pm Post subject: |
|
|
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 |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Tue Aug 26, 2008 8:30 pm Post subject: |
|
|
| lurc wrote: | < > = Check at directories given in the options.
" " = Check the current directory. Then checks the directory given in options. |
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Tue Aug 26, 2008 8:31 pm Post subject: |
|
|
| 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 |
|
 |
kb3z0n Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 542
|
Posted: Sat Aug 30, 2008 2:40 pm Post subject: |
|
|
| Thanks dude. +rep. |
|
| Back to top |
|
 |
|