Jump to content
  • Advertisement


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

Dov Sherman


This topic is 5466 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

Assuming the sFilename is a valid CString to a filename and pSurface is a valid IDirect3DSurface8, what can cause D3DXSaveSurfaceToFile(sFilename, D3DXIFF_BMP, pSurface, NULL, NULL) to fail?

Share this post

Link to post
Share on other sites

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

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?


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!