Проблемы при компиляции проекта с GDI+
От: black_engel  
Дата: 18.06.11 20:12
Оценка:
Здравствуйте!

У меня возникли проблемы при компиляции проэкта с 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_)
visual c++ 6.0 gdi+
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.