oh, sorry.
I am using Windows XP, and i am using the DevC++ compiler.
I want to make a function like this:
readMem() {
byte memory[100000];
int Start=0;
int End=GetLastMemory();...
Type: Posts; User: Da-Nuka
oh, sorry.
I am using Windows XP, and i am using the DevC++ compiler.
I want to make a function like this:
readMem() {
byte memory[100000];
int Start=0;
int End=GetLastMemory();...
Hi.
I am trying to make a cheat/anticheat program for old games.
How can you read used memory/RAM? Is it a C++ libary for it? Or do I have to learn assembler, and some hardware?
If so,...
Thanks, bithub, finaly someone who understands my question and answerd just perfect :D
...what about MSN-file-sharing?
Cant the speed of sharing files be speeded up a lot, by doing user1...
Hello.
Some time ago, i made a chatprogram.
It could both listen on a port for inncomming connections, or send a connection request.
It worked fine on my LAN, but it did not work on the...
... I manually deleted all makefiles, objectfiles and various project-builds, restarted my computer, and clicked "rebuild all", and it finaly worked :D!
still doesent work..
While THIS works:
class SomeClass {
public:
~SomeClass () {
//and here I go, as long as i make EVERYTHING within the declaration
}
No, im not including the .cpp file anywhere..
(but i include the .h file in hte .cpp file, but thats self-explanatory...)
Could it be my compiler?
(Dev C++ 4.9.9.2?)
Okay, i have now remade my example:
SomeClass.h
class SomeClass {
public:
~SomeClass ();
};
Hi.
I have a C++ book right in front of me here, and it suggest making a destructor like this:
class SomeClass {
public:
~SomeClass (); // Destructor definition
};
Hi.
Im using the following functions, with a DEVMODE struct to go to fullscreen:
-ChangeDisplaySettings()
and
-AdjustWindowRectEx()
It works, but when it goes to fullscreen, the programs...
I have read Petzolds book..its really great! A god damn bible, thogh...
To learn real programming i reccomend doing the following:
-Read a C++ book covering all the basic stuff.... (You will...
HAHA! Oh my god... thanks man!
I cant belive i just did that noobish mistake :D
Easy to forget, i guess :D
...Why doesnt this work?
(OPENFILENAME is a common struct in Win32API)
void FillInnOpenFileNameStruct(OPENFILENAME* lpofn) {
*lpofn.lStructSize=sizeof (OPENFILENAME);
...
Yes, I know this is a common way of doing it.
BUT:
Lets say, the above function moves the soldiers 1 square on the battlescreen. Then (on mulitplayer), the computer with the quickest computer would...
Hi, I am planning to make a old strategy game, in the red alert style. I am planing to use C++, pure Win32API and OpenGL(though maybe even allegro or SDL would be enough, i wont learn those when...
I had the same problem. (Atleast my code was okay, and it worked in a LAN).
If you have the chance, try your program in a LAN, without firewalls and other protective programs.
Over internett,...
I think I have several options, and I dont have a clue how to do any of them. (I have tried the MSDN).
1. To register the screensaver in registry, so that it can run without working inside the...
Hi.
I wanna know how to make my screensavers work outside the windows-folder. (Because, my screensaver are reading info from .tga files, and it seems that my screensaver.scr cant read them while...
Thats right, I can add whatever filesize and format i want into the resource. What I want to know is how to actually USE TARGA, when it is a resource.
Because I have bought and read Programming Windows Fifth Edition, by Charles Petzold, "The difinitive guide to the Win32 API".
You can for example do this to include a TARGA file in your resource...
Sure..
The resource-script which is compiled together with the program!
Like the place where dialogboxes, icons, and stringtables are placed!
I KNOW it is possible to add a TARGA file into the...
Hello.
I allready have a premade function to load TARGA files for me, from files on the disk.
The function works with the TARGA using the following:
FILE file=Open(thefilename);
I want to...
or.. will casting be enough?
Or do I need to call something like a convert-function? :confused:
How do I cast a time_t value to int, correctly? :confused:
...but why use roundabouts like glu when i can use pure API? :D