Search found 13 matches

by Mixael
Tue Jan 09, 2007 9:40 pm
Forum: wxDev-C++
Topic: wxDev-C++ and the game loop
Replies: 12
Views: 1491

BINGO!!! I had a few minutes at work that I could use to make a test, and it looks like OnIdle is my ticket! Thanks Sof_T for pushing me over the hurdle.

Michael
by Mixael
Tue Jan 09, 2007 6:14 pm
Forum: wxDev-C++
Topic: wxDev-C++ and the game loop
Replies: 12
Views: 1491

Have you tried putting your code into the OnIdle event in your main form? This is a function that gets called repeatedly when the form idles. To try it drop a Edit control onto a new frame. Select the frames OnIdle event and create a new function. Add this code into the new function // insert your ...
by Mixael
Tue Jan 09, 2007 1:17 am
Forum: wxDev-C++
Topic: wxDev-C++ and the game loop
Replies: 12
Views: 1491

Okay, I give :? Can I have an example of using the wxSafeYield/wxYield?

I'm a little frustrated, and can't seem to think straight on this :(

Michael
by Mixael
Tue Jan 09, 2007 12:24 am
Forum: wxDev-C++
Topic: wxDev-C++ and the game loop
Replies: 12
Views: 1491

Take a look at wxYield or wxSafeYield ( http://www.wxwidgets.org/manuals/2.8.0/wx_appinifunctions.html#wxsafeyield ). They should allow you to temporarily interupt your for loop to look for other events. Also, instead of 2 buttons, you can use a single wxToggleButton for your 'on'/'off' events. -To...
by Mixael
Mon Jan 08, 2007 10:46 pm
Forum: wxDev-C++
Topic: wxDev-C++ and the game loop
Replies: 12
Views: 1491

if that's true you'll be surprised to see how easy it is to do that in wxDevCpp designer, where you just add event detection (similar to what the loop does in the code you posted; in wxWidgets world the equivalent to that loop is "encapsulated" in the project's dialog or form classes) by entering a...
by Mixael
Mon Jan 08, 2007 6:26 pm
Forum: wxDev-C++
Topic: wxDev-C++ and the game loop
Replies: 12
Views: 1491

Well, lowjoel, getting "the main stuff to work" isn't really the problem...provided I can get a "game loop" that actually works properly. I haven't done the tests I need, as I was busy with family and real life, but If I were to have more questions/problems, I shall post here :) Thanks for the offer...
by Mixael
Mon Jan 08, 2007 1:55 am
Forum: wxDev-C++
Topic: wxDev-C++ and the game loop
Replies: 12
Views: 1491

Thank you for the prompt answer. I actually came back to this post to check something about the code, as I had an epiphany (is that right?) about it - basicly what you said :) And, yess, I AM trying to convert to wxWidgets. The code I posted was an excercise in getting a TrueVision3D app to work in ...
by Mixael
Sun Jan 07, 2007 10:54 pm
Forum: wxDev-C++
Topic: wxDev-C++ and the game loop
Replies: 12
Views: 1491

wxDev-C++ and the game loop

I've been working with (meaning trying to learn) Dev-C++ to try to make a game (or at least something that looks like a game :) ). A day or two ago I decided to move it over to wxDev-C++. The part of it that is giving me problems is the game loop. here's the code that I have in the older project, an...
by Mixael
Sat Jan 06, 2007 6:15 pm
Forum: wxDev-C++
Topic: Alpha release of book - Programming with wxDev-C++
Replies: 61
Views: 35814

@tbreina:

That fixed it (except I had updated to the 2.8 package, and it was written against the 2.7 pacjkage..I had just seen a topic on that and read it, so I knew what to do there :) ).

Thanks fo rthe assist!

Michael
by Mixael
Sat Jan 06, 2007 2:17 am
Forum: wxDev-C++
Topic: Alpha release of book - Programming with wxDev-C++
Replies: 61
Views: 35814

Sof_T, I just came across the book, and HAD to download it. I aslo grabbed the source file. I haven't actually read the book yet, but I tried to compile the some of the samples. (Well, three actually). The two console apps I tried worked perfectly, but I get the following error on the ch 8 frame pro...
by Mixael
Wed May 31, 2006 7:24 pm
Forum: wxDev-C++
Topic: Need some help on a project I'm porting over
Replies: 5
Views: 1228

Okay, thanks. I'll give the method from toxicBunny a shot (well, from the linked post :) )

Failing that, I'll PM NinjaNL. Thanks to both of you!

Michael
by Mixael
Wed May 31, 2006 3:53 am
Forum: wxDev-C++
Topic: Need some help on a project I'm porting over
Replies: 5
Views: 1228

Need some help on a project I'm porting over

I have been working on a project for work (to make MY life easier :) ), and had originally been doing it in VB6. After finding wxDevcpp, I decided to try it in C++ instead. A word of warning...I'm relatively new to C++ and REAL new to wxWidgets. In my VB project, I had a form that the user (me) woul...
by Mixael
Thu Apr 27, 2006 6:34 pm
Forum: wxDev-C++
Topic: Just installed and having problems RESOLVED
Replies: 0
Views: 583

Just installed and having problems RESOLVED

I just installed wxDev-C++, and was following the wxWidgets Minimal tutorial at http://www.upcase.de/wxDevCpp_tutorial/wxDecCppMinimal.html . After selecting a new project ->wxWidgets Frame, I tried to compile (the tut says it should compile and run at this point without errors). Following is what I...