School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,125 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,039 people online right now. Registration is fast and FREE... Join Now!




Help with windows programming

 

Help with windows programming

ReclusiveManiac

8 Oct, 2009 - 07:26 PM
Post #1

New D.I.C Head
*

Joined: 18 Sep, 2009
Posts: 11

So I am learning how to do some basic windows programming with a game engine by following a game programming book I have by Michael Morrison. The only problem though is that the games don't start on my computer. I compile them and they stay at the beginning screen, but on other computers they run fine.

http://www.michaelmorrison.com/content/beg...ame-programming

That is a site that has some examples of the games you can make with the book, and you can run some of them to see if they run for you guys or not. I can show source code or answer any questions you guys have. Any insight is greatly appreciated!

User is offlineProfile CardPM
+Quote Post


magius96

RE: Help With Windows Programming

9 Oct, 2009 - 04:36 AM
Post #2

D.I.C Head
Group Icon

Joined: 15 Apr, 2009
Posts: 82



Thanked: 5 times
Dream Kudos: 50
My Contributions
Without looking at any code, here's the best advice I can provide:

Write yourself a public static method that opens a textfile, appends a line, then closes the text file everytime it's called. Then, call upon this method in your code at the beginning of every method passing a string containing the name of the method.
(You may want your program to delete the file when the program first starts to prevent it from getting extremely huge.)
This will provide you a sort of stack trace to help you know what method it's freezing in. You can also use the method to print out the values of variables and stuff so you can see the insides of your program without having to break the code in debug.

Outside of this, you could set breakpoints at various places in your code in the IDE and run the app in debug. Then when the program stops at your breakpoint, check the values of all the variables to see if they are returning what you want.

Seriously though, the first thing you'll want to check is to ensure that the pc has the necessary stuff installed. Perhaps the program is needing a specific version of DirectX and that one computer just doesn't have it installed? I'd probably check this first before I try to debug since the app does work on other pc's.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 02:17PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month