You could also...
DWORD StartTime = GetTickCount();
int someInt = 6;
//do business
while ((GetTickCount() - Start Time) < someInt);
Type: Posts; User: Hirosh
You could also...
DWORD StartTime = GetTickCount();
int someInt = 6;
//do business
while ((GetTickCount() - Start Time) < someInt);
lol... Actually, I just found the bug...
If you're using windows vista, you gotta have the aero turned on...
that's how it worked here...
I found the answer here
SetPixel bug in 64-bit Vista...
Thanks dwks.. I've read that link... it seems that the problem is with windows vista, but it doesn't really tells how to solve that problem... I guess I just won't be able to have the enjoyment of...
When you declare a function Foo(); inside the class Foo, it will be a constructor...
in that case it does nothing... but for instance, if you had a class like this
Class Foo{
public:
int x,...
That's the whole code...
There are loads of things I'm experimenting on it as well...
#include <windows.h>
LRESULT CALLBACK WinProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
I would write it like this...
#include <iostream>
using namespace std;
void GetNumber(int number);
int main(){
Ok... I've searched this on the forum to see whether anyone had the same problem, but I couldn't find it... so here it is:
I am using setpixel to draw on the screen(well, I'm still learning...
oh, I got it :D... thank you both!.... I just couldn't figure that out :( :P
I really have no clue of what's going on, so here's part of the code
void Queue::showMenu(){
int choice;
do{
cout <<n<<"This program will add people into a line and then...