VC10.0 Errors while compiling WINNT.H - by joepauli

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


1
0
Sign in
to vote
ID 508204 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 11/4/2009 7:56:50 AM
Access Restriction Public

Description

I built a new project to start the porting of an application written with CV6++, but the project stopped with the following errore just after few modifications to stdafx.h and the main include icarus2010.h.



1>------ Build started: Project: Icarus2010, Configuration: Debug Win32 ------
1>Build started 04/11/2009 16.51.46.
1>_PrepareForBuild:
1>  Touching "Debug\Icarus2010.unsuccessfulbuild".
1>ClCompile:
1>  stdafx.cpp
1>c:\programmi\microsoft sdks\windows\v7.0a\include\winnt.h(290): error C2146: syntax error : missing ';' before identifier 'PVOID64'
1>c:\programmi\microsoft sdks\windows\v7.0a\include\winnt.h(290): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\programmi\microsoft sdks\windows\v7.0a\include\winnt.h(8992): error C2146: syntax error : missing ';' before identifier 'Buffer'
1>c:\programmi\microsoft sdks\windows\v7.0a\include\winnt.h(8992): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\programmi\microsoft sdks\windows\v7.0a\include\winnt.h(8992): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\programmi\microsoft sdks\windows\v7.0a\include\exdisp.h(842): error C2061: syntax error : identifier 'SHANDLE_PTR'
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:01.93
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

The modifications in the stdafx were

#pragma warning(disable: 4786)
#pragma warning (disable:4996)
#pragma warning (disable:4244)
#pragma warning (disable:4189)
#pragma warning (disable:4100)

and the modifications in the main inlcude were some include files from the VC6++ application. For a while the new project worked!

Sign in to post a comment.
Posted by Danil Serov on 10/24/2012 at 7:58 AM
Exactly! After removing dx9 sdk, everything was compiled fine
Posted by Microsoft on 11/9/2009 at 11:54 AM
Hi -

Do you have the DirectX SDK installed on the machine? We have seen some cases where the DirectX SDK installer modifies the Visual Studio include path and puts the DirectX SDK entries first. This causes the build to use DirectX versions of some files that are a different version that the files in the Visual Studio SDK.

Try changing the order of include directories in VS so the DirectX SDK entries are last. That may solve the problem.

Mike Robinson
Program Manager
Windows SDK Team
Posted by Microsoft on 11/8/2009 at 8:41 PM
Thanks for reporting this issue.

In order to fix the issue, we must first reproduce the issue in our labs. We are unable to reproduce the issue with the steps you provided.

Please provide us with a demo zipped project file so that we can conduct further research.

It would be greatly appreciated if you could provide us with that information as quickly as possible. If we do not hear back from you within 7 days, we will close this issue.

Thanks again for your efforts and we look forward to hearing from you.

Visual Studio Product Team
Posted by Microsoft on 11/5/2009 at 1:29 AM
Thank you for your feedback, We are currently reviewing the issue you have submitted.