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

f***ing error codes

Started by lakibuk Dec 5, 2000 at 6:17 AM 4 replies 400+ views
Original Post
lakibuk
lakibuk
error = g_pD3D->CreateDevice(....); sprintf(outstring,"number: %d",error); when i use this to save an error code,i get: "number: -2005532527" great! how can i get the real error code as defined in ddraw.h ?
lakibuk
lakibuk
now i get
number: 88760091

doesnt help me either,because the errors are defined like this:
#define DDERR_NODRIVERSUPPORT MAKE_DDHRESULT( 697 )
JoeyBlow2
JoeyBlow2
If you are using DX8, then you can use the macro thats in the Direct3DX library.

const char *Err = DXGetErrorString8(error);



Err will be the error text: "Invalid Pixel Format", etc.

Topic Locked

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

Sign in to reply to this topic.