Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC6 DirectX Win7
hello , i had a project from VS2010 and i want to compile it in VC6 for supporting winXP, i had used DSound in my project , when i include dsound.h it was something wrong , the error is :
d:\program files\microsoft visual studio 10.0\vc\include\vadefs.h(48) : error C2144: syntax error : missing ';' before type 'unsigned int'
 
file "vadefs.h" is provide by vs2010 , the error line is 5th
1    #ifndef _UINTPTR_T_DEFINED
2    #ifdef  _WIN64
3    typedef unsigned __int64    uintptr_t;
4    #else
5    typedef _W64 unsigned int   uintptr_t;
6    #endif
7    #define _UINTPTR_T_DEFINED
8    #endif
 
but i can find defination of _W64 in the head of this file , im confused , is that VC6 not support DirectX9 ?
 
How to fix this?
thanks for your time : )
Posted 20-Dec-11 22:42pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

_W64 is not a definition. It is a compiler keyword. As far as I know, it has been introduced with Visual Studio .Net 2003 / VC7.
 
Update: You may use an empty definition (#define _W64 or add it to the project compiler options) to avoid the error with VC6.
 
Joe
  Permalink  
v2
Comments
tonyjiang88215 at 21-Dec-11 22:19pm
   
thanks , but im new at VS, i don`t know "use an empty definition (#define _W64 or add it to the project compiler options)" i had tried use VS2008 , the project was compiled success , but can not be used either Win7 or WinXP , i wonder if VS2010 can make it support Win7 and WinXP
Jochen Arndt at 22-Dec-11 5:47am
   
If possible, you should use a newer version than VC6. VS2008 is fine. There must be other errors when the compiled program does not run with Win 7 and XP. If you still want to use VC6, add a line "#define _W64" to your source files before including any file that contains the keyword. Alternatively you can add "_W64" to the global project definitions (Project Settings - C/C++ - Preprocessor - Definitions).
tonyjiang88215 at 22-Dec-11 8:32am
   
thanks , i knew why DLL can not used both in Win7 and Xp, when i complie the project with Win7, it requires msvcr100.dll , but there`s no msvcr100.dll in XP without installing VS2010, so the DLL file can not be loaded. im not use mfc in my project any more , so this maybe fix that problem : )

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 587
1 Sergey Alexandrovich Kryukov 479
2 Maciej Los 305
3 Mathew Soji 195
4 Afzaal Ahmad Zeeshan 170
0 OriginalGriff 7,356
1 Sergey Alexandrovich Kryukov 6,777
2 DamithSL 5,461
3 Manas Bhardwaj 4,916
4 Maciej Los 4,475


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 21 Dec 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100