Skip to main content
GameDev.net gamedev.net
🔒 Locked

DirectX Errorlockup

Started by Zong May 29, 2002 at 7:09 AM 0 replies 150+ views
Original Post
Zong
Zong
Hi! In VB you have such a nice feature, when an error occur you can just lookup the info in the err object(err.number, err.description and so on.) Now in C++ and directx, if I use the function for example D3DXLoadMeshFromX and it returns some error is there an easy why to find out what kind of error it was? Right now my solution is to have a function with all errorcodes within a switch statement to get the error but I don''t like that solution at all. Is there a better way? thanks!
Zong
Zong
Never mind.
I guess I just have to use DXGetErrorDescription8.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.