IntelliSense cannot open tmschema.h - by VoiceOfExperience

Status : 

  Duplicate<br /><br />
		This item appears to be a duplicate of another existing Connect or internal item.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 750198 Comments
Status Closed Workarounds
Type Bug Repros 2
Opened 6/20/2012 4:33:05 PM
Access Restriction Public


On opening a native MFC/C++ project, in the Error List window, a message appears
1	IntelliSense: cannot open source file "tmschema.h"	c:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\atlmfc\include\afxwin.h	93	1	MyProject.

Sign in to post a comment.
Posted by Microsoft on 6/25/2012 at 10:11 AM

Thanks for the report. This issue has been fixed in the MFC header file for the RTM release of Visual Studio 11.

Pat Brenner
Visual C++ Libraries Development
Posted by VoiceOfExperience on 6/23/2012 at 10:27 AM
Yet more info:

It looks like stdafx.h is different in MyProject (an existing project in VS11 Beta), compared to a new project created using RC 2012. In the former, the Windows versions are set in stdafx.h itself, while in the latter, a file targetver.h is included.
Posted by VoiceOfExperience on 6/23/2012 at 10:20 AM
Additional info:
Build of project fails, with error "can't open tmschema.h" from afxwin.h. Problem stems from

#if ((NTDDI_VERSION >= NTDDI_LONGHORN || defined(__VSSYM32_H__)) && !defined(SCHEMA_VERIFY_VSSYM32))
#include <vssym32.h>
#include <tmschema.h>
#endif    // (_WIN32_WINNT >= 0x501)

and defining __VSSYM32_H__ in PROJECT / MyProject Properties... / Configuration Properties / C/C++ / Preprocessor / Preprocessor Definitions makes the error go away. Apparently either the test, or the version numbers are incorrect.
Posted by Bin [MSFT] on 6/21/2012 at 12:42 AM
Thank you for submitting feedback on Visual Studio 11 and .NET Framework. Your issue has been routed to the appropriate VS development team for review. We will contact you if we require any additional information.
Posted by Macy [MSFT] on 6/20/2012 at 4:51 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(