Archived

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

D3D Samples

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

I copied in the DXVIEW Visual C++ DirectX sample from MSDN. When I try to compile I get ''undeclared identifier'' errors on several flags - specifically: DDCAPS_STEREOVIEW, several DDSVCAPS flags and a couple of D3DLIGHTCAPS. I guess these must be from an older version of Dx. 1. How do I figure out which version, so I can compile with the right DirectXVersion setting? 2. How would I go about figuring out how to change the app to be Dx7 compliant? Thanks. "things are more like they are now than they ever have been"

Share this post


Link to post
Share on other sites
Changing the app to DX7 is easy: Change all of the old DX interfaces to DX7 (E.g. LPDIRECTDRAWSURFACE4->LPDIRECTDRAWSURFACE7).
You''ll probably get tons of errors because of obselete flags and other stuff like that...
Just look in the SDK for new DX7 features (There are alot of those) and obselete flags.



The road to success is always under construction

Share this post


Link to post
Share on other sites
Thanks.

What do I do with obsolete flags? Just comment out any references? I guess what I''m wondering is -- do they just go away, or is there some other flag that replaces the functionality?

BTW - you can forget question 1. I had my Dx7 SDK libraries already in front of the ones that shipped with VC++. I just swapped order and I was ok.

Share this post


Link to post
Share on other sites
What I mean by obselete flags (And functions) that they are usually superseded by better flags/functions.
For example:
D3DEnumTextureFormatsCallback() callback function is obselete.
It was replaced by:
D3DEnumPixelFormatsCallback().
See what I mean?



The road to success is always under construction

Edited by - Tornado on September 1, 2000 4:44:19 PM

Share this post


Link to post
Share on other sites