Sign in to follow this  
rpsathe

Errors in compiliing

Recommended Posts

Folks, This is really a rukie question. But that's why I am asking you guys. So I am able to compile the tutorials that come along with Direct X Version 9. But when I try to compile anything in samples, I get following errors. I played with include and lib paths but still getting the same errors. Do I need to tweak something ? I am using VC++ 6.0 with Direct X9. I am using win XP. Here is the error long C:\Documents and Settings\rpsathe\Desktop\DX9_SDK\Samples\C++\common\d3dapp.cpp(871) : error C2065: 'ULongToHandle' : undeclared identifier d3denumeration.cpp d3dfont.cpp d3dsettings.cpp C:\Documents and Settings\rpsathe\Desktop\DX9_SDK\Samples\C++\common\d3dsettings.cpp(266) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)' None of the functions with this name in scope match the target type C:\Documents and Settings\rpsathe\Desktop\DX9_SDK\Samples\C++\common\d3dsettings.cpp(512) : error C2065: 'ULongToPtr' : undeclared identifier C:\Documents and Settings\rpsathe\Desktop\DX9_SDK\Samples\C++\common\d3dsettings.cpp(710) : error C2065: 'UlongToPtr' : undeclared identifier d3dutil.cpp dxutil.cpp OptimizedMesh.cpp C:\Documents and Settings\rpsathe\Desktop\DX9_SDK\Samples\C++\Direct3D\Meshes\OptimizedMesh\OptimizedMesh.cpp(198) : error C2065: 'HandleToLong' : undeclared identifier Generating Code... Any pointers ? I saw a similar post. I mean the post with similar problems but the answer did was changing the long pointer to int. If that is indeed the answer, can anyone tell me where exactly taht needs to be changed ? OR if there is a newer .dll or lib that I need to download. Thanks -R

Share this post


Link to post
Share on other sites
Visual C++ 6 doesn't support the latest version of DirectX. You can use the summer release, but the winter release == no go.

EDIT: Thread on it.
Also note that if you're having problems with DirectX, that's the forum for it, not this.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this