Archived

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

I cant figure out whats wrong, please help me

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

Hey all, Well im have a big problem, when ever I try to create an offscreen surface it fails, here is my code for that: ZeroMemory( &ddsd, sizeof( ddsd ) ); ddsd.dwSize = sizeof( ddsd ); ddsd.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH | DDSD_CKSRCBLT; ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN; ddsd.dwHeight = 100; ddsd.dwWidth = 100; ddsd.ddckCKSrcBlt.dwColorSpaceLowValue = RGB(65,40,254); ddrval = lpDD->CreateSurface(&ddsd, &lpDDSOffOne, NULL); if(ddrval == DDERR_INVALIDCAPS) { MessageBox(hwnd, "nope man", "", MB_OK); } if(ddrval != DD_OK) { MessageBox(hwnd, "sorry man", "", MB_OK); } Can someone tell me whats wrong? Question 2: How do you guys get those little white boxes around your code when you relpy and stuff? Thanks James, Later Edited by - JSCFaith on 7/14/00 11:20:27 PM

Share this post


Link to post
Share on other sites
    
these boxes?
put your code between [source] and [/source] tags
done <img src="smile.gif" width=15 height=15 align=middle>


- Pouya / FOO!!!

#define PURE_STUPIDITY 128 PROGRAMMERS

Share this post


Link to post
Share on other sites
If you are not making a primary surface try leaving out the surface description (ddsd). And don''t create the surface, just load a bitmap to it. If it is the primary surface then try taking out DDSD_CKSRCBLT. Try to use source color keying (it''s much easier to use).

Retired Pokemon Master of Prgramming Problems

I already had them all.

Share this post


Link to post
Share on other sites