Форум программистов
 

Восстановите пароль или Зарегистрируйтесь на форуме, о проблемах и с заказом рекламы пишите сюда - alarforum@yandex.ru, проверяйте папку спам!

Вернуться   Форум программистов > C/C++ программирование > Visual C++
Регистрация

Восстановить пароль
Повторная активизация e-mail

Купить рекламу на форуме - 42 тыс руб за месяц

Ответ
 
Опции темы Поиск в этой теме
Старый 19.06.2011, 00:30   #1
black_engel
Новичок
Джуниор
 
Регистрация: 02.03.2010
Сообщений: 1
По умолчанию Проблемы при компиляции проекта с GDI+

Здравствуйте!

У меня возникли проблемы при компиляции проэкта с GDI+!
Компилятор Visual C++ 6.0
Microsoft Windows SDK v7.1

при компиляции проекта возникают следующие ошибки:

\gdiplustypes.h(744) : error C2061: syntax error : identifier 'Count'
\gdiplustypes.h(744) : error C2146: syntax error : missing ';' before identifier 'BYTE'
\gdiplusheaders.h(196) : error C2061: syntax error : identifier '__out_ecount'
\gdiplusflat.h(2347) : error C2061: syntax error : identifier '__out_bcount'
\gdiplusflat.h(2355) : error C2061: syntax error : identifier '__out_bcount'
\gdiplusflat.h(2388) : error C2061: syntax error : identifier '__out_ecount'
\gdiplusfontfamily.h(123) : error C2065: '__out_ecount' : undeclared identifier
\gdiplusfontfamily.h(123) : error C2146: syntax error : missing ')' before identifier 'LPWSTR'
\gdiplusfontfamily.h(123) : error C2433: 'GetFamilyName' : 'inline' not permitted on data declarations
\gdiplusfontfamily.h(123) : error C2350: 'FontFamily::GetFamilyName' is not a static member
\gdiplusfontfamily.h(123) : error C2440: 'initializing' : cannot convert from 'int' to 'enum Gdiplus::Status'
Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
\gdiplusfontfamily.h(125) : error C2059: syntax error : ')'
\gdiplusfontfamily.h(126) : error C2143: syntax error : missing ';' before '{'
\gdiplusfontfamily.h(126) : error C2447: missing function header (old-style formal list?)
\gdiplusimagecodec.h(37) : error C2660: 'GdipGetImageDecoders' : function does not take 3 parameters
\gdiplusimagecodec.h(56) : error C2660: 'GdipGetImageEncoders' : function does not take 3 parameters


вот пример "STDafx.h"

Код:
#if !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_)
#define AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

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

#define UNICODE 
#ifndef ULONG_PTR
#define ULONG_PTR unsigned long*
#endif
// Windows Header Files:

#include <windows.h>

// C RunTime Header Files
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
#include <gdiplus.h>
using namespace Gdiplus;

// Local Header Files

// TODO: reference additional headers your program requires here

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_)
black_engel вне форума Ответить с цитированием
Старый 21.06.2011, 19:11   #2
An1ka
C++,DirectX/OpenGL
Форумчанин
 
Регистрация: 09.01.2011
Сообщений: 422
По умолчанию

Цитата:
Сообщение от black_engel Посмотреть сообщение
вот пример "STDafx.h"
А причем тут он ? Это синтаксические ошибки. Компилятор говорит нету объявления 'Count', не хватает точек с запятой и тд.
An1ka вне форума Ответить с цитированием
Старый 22.06.2011, 09:47   #3
Rififi
Старожил
 
Регистрация: 19.08.2009
Сообщений: 2,119
По умолчанию

black_engel

У меня возникли проблемы при компиляции проэкта с GDI+!
Компилятор Visual C++ 6.0
Microsoft Windows SDK v7.1


Visual C++ 6.0 - устаревшее дерьмо мамонта. с указанным SDK не совместим.
Rififi вне форума Ответить с цитированием
Ответ


Купить рекламу на форуме - 42 тыс руб за месяц



Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
ошибка при компиляции проекта Irina14 C++ Builder 0 07.04.2011 21:10
Проблемы при компиляции программы на c++ green-tree Помощь студентам 3 28.07.2010 21:33
Ошибка при компиляции проекта -=Virus=- Помощь студентам 3 12.10.2009 09:37
CURL проблемы при компиляции... XAOC-forever Общие вопросы C/C++ 5 23.07.2009 13:10
Прошу помочь разобраться с ошибками при компиляции проекта keeper555 Общие вопросы Delphi 4 27.03.2009 21:02