| | |
Problem Compiling in VS 2005 after installing microsoft platform SDK for Windows Serv
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Jun 2009
Posts: 7
Reputation:
Solved Threads: 0
Problem Compiling in VS 2005 after installing microsoft platform SDK for Windows Serv
0
#1 Jun 25th, 2009
Hi
As the title suggests I'm having a problem compiling MFC based applications, this problem started immediately after installing the windows server 2003 platform SDK and now even when I try to compile a new MFC project I get the following errors:
in some cases I solved the problem by including windows.h and defining WIN32_LEAN_AND_MEAN at the top of stdafx.h. However for large projects that uses static and dynamic linking to other libraries the proposed solution did not work. I'm not really sure why this is happening as I've also tried to reinstall the platform SDK to no avail.
Any help is appreciated.
Thanx
As the title suggests I'm having a problem compiling MFC based applications, this problem started immediately after installing the windows server 2003 platform SDK and now even when I try to compile a new MFC project I get the following errors:
C++ Syntax (Toggle Plain Text)
c:\program files\microsoft platform sdk\include\zmouse.h(141) : error C2146: syntax error : missing ';' before identifier 'HwndMSWheel' 1>c:\program files\microsoft platform sdk\include\zmouse.h(141) : error C2433: 'HWND' : 'inline' not permitted on data declarations 1>c:\program files\microsoft platform sdk\include\zmouse.h(141) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\program files\microsoft platform sdk\include\zmouse.h(142) : error C2065: 'PUINT' : undeclared identifier 1>c:\program files\microsoft platform sdk\include\zmouse.h(142) : error C2146: syntax error : missing ')' before identifier 'puiMsh_MsgMouseWheel' 1>c:\program files\microsoft platform sdk\include\zmouse.h(142) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\program files\microsoft platform sdk\include\zmouse.h(147) : error C2059: syntax error : ')' 1>c:\program files\microsoft platform sdk\include\zmouse.h(148) : error C2143: syntax error : missing ';' before '{' 1>c:\program files\microsoft platform sdk\include\zmouse.h(148) : error C2447: '{' : missing function header (old-style formal list?) 1>c:\program files\microsoft platform sdk\include\commctrl.h(29) : error C2146: syntax error : missing ';' before identifier 'HRESULT' 1>c:\program files\microsoft platform sdk\include\commctrl.h(29) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\program files\microsoft platform sdk\include\commctrl.h(29) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\program files\microsoft platform sdk\include\prsht.h(97) : error C2065: 'CALLBACK' : undeclared identifier 1>c:\program files\microsoft platform sdk\include\prsht.h(97) : error C2065: 'LPFNPSPCALLBACKA' : undeclared identifier 1>c:\program files\microsoft platform sdk\include\prsht.h(97) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\program files\microsoft platform sdk\include\prsht.h(97) : fatal error C1903: unable to recover from previous error(s); stopping compilation
Any help is appreciated.
Thanx
Re: Problem Compiling in VS 2005 after installing microsoft platform SDK for Windows Serv
0
#2 Jun 25th, 2009
•
•
Join Date: Jun 2009
Posts: 7
Reputation:
Solved Threads: 0
Re: Problem Compiling in VS 2005 after installing microsoft platform SDK for Windows Serv
0
#3 Jun 25th, 2009
•
•
•
•
try using this preprocessor definition
_WIN32_WINNT,
WIN32,_WINDOWS,
UNICODE,
_UNICODE
Thanks for the suggestion, WIN32 is already defined in the preprocessor definitions, I have tried your suggestions but I kept getting the same errors.
I also forgot to mention that I've tried to change the order of the C++ include, executable and lib directories.. but I'm still getting the same errors.
Re: Problem Compiling in VS 2005 after installing microsoft platform SDK for Windows Serv
0
#4 Jun 25th, 2009
Re: Problem Compiling in VS 2005 after installing microsoft platform SDK for Windows Serv
0
#5 Jun 25th, 2009
make sure u have this setting
Executable Files-
C:\Program Files\Microsoft Platform SDK\bin\winnt
C:\Program Files\Microsoft Platform SDK\bin\
Include Files-
C:\Program Files\Microsoft Platform SDK\include
Library Files-
C:\Program Files\Microsoft Platform SDK\lib
i think prblm sholud not in includes but just check executable and library.
Executable Files-
C:\Program Files\Microsoft Platform SDK\bin\winnt
C:\Program Files\Microsoft Platform SDK\bin\
Include Files-
C:\Program Files\Microsoft Platform SDK\include
Library Files-
C:\Program Files\Microsoft Platform SDK\lib
i think prblm sholud not in includes but just check executable and library.
•
•
Join Date: Jun 2009
Posts: 7
Reputation:
Solved Threads: 0
Re: Problem Compiling in VS 2005 after installing microsoft platform SDK for Windows Serv
0
#6 Jun 29th, 2009
![]() |
Similar Threads
- HELP! C++ DirectX programming: Win32 application compiling problems with Platform SDK (C++)
- afxwin.h and MFC (C++)
- Visual C++ 2005 *sigh* (C++)
- Problem with ATL Win32 Service built with VC++ 6.0 SP6 Enterprise edition & WinXP SP2 (Windows NT / 2000 / XP)
- Issue with ATL Win32 Service built for VC++ 6.0 SP6 & WinXP SP2 (C++)
- Question? (C++)
- winsock problem (C++)
- Visual C++ 2005 Express Edition (C++)
- Why program works in Dev-C++ and not in VC++ 2005? (C++)
- Installing the SDK for VC++ 2005??? (C++)
Other Threads in the C++ Forum
- Previous Thread: need c++ implementation of the algorithm
- Next Thread: Calculator Game
| Thread Tools | Search this Thread |
api array arrays beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion convert count data database delete desktop developer directshow dll dynamiccharacterarray email encryption error file forms fstream function functions game generator getline google graph homeworkhelper iamthwee ifstream input int integer java lib linkedlist linux list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text tree unix url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





