Original Post
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!