Archived

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

OoMMMoO

versions of Direct Draw

Recommended Posts

In Lamothe''s book tips of the windows game programming gurus when making his surfaces he goes LPDIRECTDRAWSURFACE4 lpddsprimary4; Well my compiler doesnt know what a LPDIRECTDRAWSURFACE4 is it only knows of LPDIRECTDRAWSURFACE Can someone tell me what the difference is and how to set my compiler up to use LPDIRECTDRAWSURFACE4; Im using mvc++ and have it set up right as far as I know, all my direct draw programs work

Share this post


Link to post
Share on other sites
LPDIRECTDRAWSURFACE4 is DirectX5 specific.. if you use LPDIRECTDRAWSURFACE instead.. it will choose whatever version it wants (that''s the impression I got from all of the books that I have read). I did not have any problems .. and some people that I have talked to in the past said it took a DirectX1 surface (I do not believe that!). But the correct way is to point your DirectX includes BEFORE the normal compiler includes.. and it should compile just fine.


Good luck,
Roy

Share this post


Link to post
Share on other sites