Archived

This topic is now archived and is closed to further replies.

Problem encountered!

This topic is 5539 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have made a class cApp similar with that at the Gamecore from the Jim Adams'' book "Programming rpgs with directx" but simplier. It creates a window and initializes the D3D object so I don''t have to do this stuff every time.There is a cApp.h file and a cApp.cpp file.So far so good.... For a test, I created a new workspace and I used these files to draw vertices borrowing the code from the vertices tutorial from directx 8.0 sdk.When I build it,there is no error.When I execute it , a window appears which says that the program has encountered a problem and needs to be close.Does anyone has in mind what the problem coulb be since no problems are found during the compilation? If anyone wants to help I can send him the source to test it by himself? Remember I am just a beginner.... Thanks in advance!

Share this post


Link to post
Share on other sites
Geez, that''s just a general crash and could be anything. Have you ever used a debugger before? If not, then for Visual C++ users, compile in Debug Mode. Then, instead of execute program (Ctrl+F5), you choose Go (F5). That will run the program in the debugger. When it crashes, it will stop at the line of the crash. Simple, but yet oh so effect. Very, very, very, very, very, very, important that you learn to effectively use your debugger. It will save you hours and weeks and months of time. Trust me, no good programmer exists who doesn''t use a debugger. It''s as essential as the compiler itself.

If you spend 2 hours learning to use a debugger, it will save you 10 times that in the next week, I promise... and that much again for every week thereafter.

Share this post


Link to post
Share on other sites
Make sure you have the updated code for the book. There are a lot of important fixes in there. I get blue screen errors using some of the original code, so I imagine there''s a chance you''re getting similar problems.

[ MSVC Fixes | STL | SDL | Game AI | Sockets | C++ Faq Lite | Boost | Asking Questions | Organising code files | My stuff ]

Share this post


Link to post
Share on other sites