Thanks a lot.
Type: Posts; User: XunTric
Thanks a lot.
I made a small blackjack game as one of the programs I am going to demonstrate to my teacher at the end of the year.
I am simply using a string with all the 52 cards, like this:
// 0 represents...
Thanks a lot tabstop, figured it out after you mentioned GetKeyboardState.
This code will detect if the up arrow key is pressed down.
while(1)
{
if(GetKeyState(VK_UP) & 0x80)
{
...
How can I detect if a key is currently being pressed down?
It doesn't have to be multi-platform.
It only needs to work on Windows.
I'm using Bloodshed Dev-C++ if it makes any difference.
I've...
Lets say I have a .csv (comma separated value) file looking like this:
123,1,"Abc",16.7
124,1,"Def",75.1
125,2,"Ghi",12.2
126,2,"Jkl",78.3
127,3,"Mno",12.3
128,4,"Pqr",84.9
129,4,"Stu",92.0
I have pretty much done what that page says. =/
So copying over the include files was correct?
I wasn't really sure what to do there.
I got Visual Studio 2005 Express, indeed.
I downloaded the SDK and copied over the include files?
I do have Windows XP SP2. :confused:
Could someone help me with this error I get when I compile?
This isn't really my code, so I got no idea how to fix it.
Thanks.
error C3861: 'SHCreateDirectory': identifier not found
...
Im kinda new so I dont really know what a thread is.
Like a other function?
//anonytmouse
Thats C, forgot to say im coding C++.
//TNT
Im not really sure how to do this.
This was my best try. :P
That makes 10 MessageBox'es which prints one number each.
I want 1 MessageBox which counts to 10 without making new boxes.
Still thanks for helping!
How would I make the text change in my MessageBox?
Lets say I want a count to 10.
So how would I make it type count without making 10 diffrent MessageBox'es?
And how do I make the MessageBox...
Thanks!
Compiles and works!
First time I got a really good answer. =P
But how would I remove it from starting when my pc starts up?
I belive he wants to open a text file in the msdos window, and being able to edit it there without a text editor.
Pointless to me.
That adds it to the registry?
Well, how I remove it again then?
And for my program:
"c:\\myprog.exe"
How I know where the ones using my program having it installed there?
Just tell me how to...
Alright I did something wrong.
I needed this at the top instead:
extern "C" BOOL xAddSelfAsStartupShortcut bla bla bla...
But Im still getting errors!
How I fix this?
Picture
Alright why I get errors here?
I did exactly as it said.
#include <cstdlib>
#include <iostream>
#include <windows.h>
using namespace std;
My program got an option to start it every time you turn on the pc.
The problem is that I got no idea how to do it. :D
I know you can put a .job file in C:\WINDOWS\Tasks, but how would I go on...
Thats for playing a .wav file outside the program.
Which I said Ive already know how to do.
Not a song builded into the .exe...
You said you didnt know so much about windows programming?
major_small, lol, report bad post?
Bump...
Like this?
#include <iostream>
#include <windows.h>
#include <mmsystems.h>
using namespace std;
Sorry I got no idea what ur talking about to be honest. :P
All I know I need to use winmm in the compiler to make my exe play songs.
I know how to use PlaySound, but not when my song is builded...