Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > C/C++: Общие вопросы > Проблема с VS 2005


Автор: empter 30.1.2006, 21:59
При компиляции проекта в VS 2005 (C++)
компиллер выдает такие ошибки
platformsdk\include\winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64'
platformsdk\include\winnt.h(222) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
че за Х.. кто знает?

PS: Аналогичный проект в VC7 работает без ошибок

Автор: empter 31.1.2006, 00:06
Ах да, забыл фаил то показать smile

Код

// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once

// Modify the following defines if you have to target a platform prior to the ones specified below.
// Refer to MSDN for the latest info on corresponding values for different platforms.
#ifndef WINVER        // Allow use of features specific to Windows XP or later.
#define WINVER 0x0501    // Change this to the appropriate value to target other versions of Windows.
#endif

#ifndef _WIN32_WINNT    // Allow use of features specific to Windows XP or later.
#define _WIN32_WINNT 0x0501  // Change this to the appropriate value to target other versions of Windows.
#endif

#ifndef _WIN32_WINDOWS    // Allow use of features specific to Windows 98 or later.
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
#endif

#ifndef _WIN32_IE      // Allow use of features specific to IE 6.0 or later.
#define _WIN32_IE 0x0600  // Change this to the appropriate value to target other versions of IE.
#endif

#define WIN32_LEAN_AND_MEAN    // Exclude rarely-used stuff from Windows headers





// Windows Header Files:
#include <windows.h>



#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>


А теперь smile

Автор: JackYF 31.1.2006, 03:05
Fjfhj,w
Добавлено @ 03:11
Попробуй пересобрать все это...

или вставить объявления вручную из этого winnt.h в свою .h - ку. Может поможет.
У меня подобное в VS2003 было.

за прошлую мессагу пардон - глюк.

Автор: volvo877 31.1.2006, 09:28
Цитата(JackYF @ 31.1.2006, 02:05 Найти цитируемый пост)
Попробуй пересобрать все это...

Только сначала убедись, что в списке директорий с Header-файлами директории Platform SDK идут первыми !!!

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)