Archived

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

Dov Sherman

D3DXSaveSurfaceToFile

Recommended Posts

well..

OBVIOUS ANSWERS:
1) cStrings are definately a tricky area..
2) the surface is somehow invalid

TRICKY ANSWERS:
1a) Did you use the proper means to convert a normal string (a char * filename) to a LPCTSTR object?
1b) Is the filename reasonable, with no strange symbols?
1c) Does the filename have "/" or "\" for folder seaprators.
1c-a) The "\" separator should be "\\" since "\" is an escape code facility.

2a) Where did you get the pSurface from?

www.cppnow.com

Share this post


Link to post
Share on other sites