|
Some recent topics started on our forums |
What to use to create a 2D Puzzle Game?
|
My friend wrote an amazing puzzle game, but it only runs on Mac. I asked him permission to re-write the game for Windows and he agreed. The (cropped and trimmed) screenshot should be informative.
The user interacts by clicking &... |
Posted October 19, 2008 10:04:35 PM
|
Gravity Wars
|
Gravity Wars was inspired by an older version of the same name. I am rather new to programming and this took me about two month on-and-off of programming in Visual C++ 2008. I am very thankful to the kind people in the forums that helped in gett... |
Posted June 26, 2008 10:29:20 AM
|
Sharing Variables Between Forms (Visual C++ 2008)
|
Hello my dear friend; I have spent over 4 hours and my friend (who knows C++ far better than me) another hour trying to get a simple thing to work: share variables across "Windows Forms". Simple C++ doesn't work as I'm using Visual C++ 2008 (which is... |
Posted June 3, 2008 1:13:55 AM
|
2008 VC++ How can I Draw using Layers
|
Hello everyone, it's my first post - so let me know if I'm out of line with the program :)
I am a beginner who learned some Visual C++ 2008 and made a simple 2D game:
http://www.yboris.com/gravitywars/gravitywars.html
The code is a combinati... |
Posted May 27, 2008 1:44:44 AM
|
View All Topics Started By This User
|
|
Some recent replies made on our forums |
What to use to create a 2D Puzzle Game?
|
Thank you jbadams and jackofalllanterns!
I'm somewhat reluctant to learning a new language - and I think I've gotten quite used to C++ in my few weeks of agony over Gravity Wars :P
I've tried "Game Maker" (as well as "Game Factory 2" that was u... |
Posted October 19, 2008 11:22:13 PM
|
What are you reading right now?
|
"Legalize This!" by Doug Husak
Amazing book. Re-reading parts of it. It's an argument for decriminalization of drugs :) |
Posted June 21, 2008 12:02:16 AM
|
Sharing Variables Between Forms (Visual C++ 2008)
|
MASSIVE THANK YOU
Thank you all for your contributions. My website is now up and I listed you as contributors to my program.
http://gravitywars.yboris.com |
Posted June 20, 2008 3:12:32 PM
|
Sharing Variables Between Forms (Visual C++ 2008)
|
Quote:...You need to read through what oler1s and Sneftel have written...
Thank you very much, between you and everyone who contributed - I finally managed to get the damn 'extern' to work without complaining ... and a little bit after ...
ZOMG !... |
Posted June 10, 2008 10:00:08 PM
|
Slowing down a program
|
Quote:Original post by monkey4sale
alright, thanks.
Now it works, woot.
Though you have solved your problem, while working on Visual C++ 2008, I have found this to work very well:
Sleep(10);
I hear though that it won't slow down eve... |
Posted June 7, 2008 12:23:26 AM
|
Sharing Variables Between Forms (Visual C++ 2008)
|
Quote:Original post by Sneftel
As I said: You need to put the definition in a separate .cpp file. It cannot be in a header file ... Did you read the article I linked yet?
I am a beginner - and I have been told that there is no difference between... |
Posted June 6, 2008 11:56:35 PM
|
Sharing Variables Between Forms (Visual C++ 2008)
|
Quote:Original post by Sneftel
... you need to declare the variable as extern:
extern float _cx;
And then, in exactly one .cpp file you put the definition:
float _cx=3;
...
Thanks for the speedy suggestion - but sadly this "extern" doesn't... |
Posted June 5, 2008 11:00:39 PM
|
Sharing Variables Between Forms (Visual C++ 2008)
|
Quote:Original post by raptorstrike
hmmm well make sure that the namespace file doesn't include any of the files including it (cyclical inclusion). Here is a minimal example which compiles just fine working on the same principal...
Thank you... |
Posted June 5, 2008 10:39:21 PM
|
Sharing Variables Between Forms (Visual C++ 2008)
|
Quote:Original post by raptorstrike
...
sharevariables::_cx
...
Hope that helps [smile]
Thank you for the help - but sadly that doesn't work ... if I do what you said then I get the same error as above (though it IS bizarre - as the auto... |
Posted June 3, 2008 1:46:47 AM
|
View All Replies Made By This User
|