[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] C++/CLI problems

From: Dave Williss
Subject: Re: [ft] C++/CLI problems
Date: Tue, 18 Jul 2006 10:00:03 -0500

#define generic GENERIC
#include <whatever.h>
#undef GENERIC

I have to do this all the time with Microsoft's include files too because they
tend to define stuff that conflicts with other Open Source projects.

----- Original Message ----- From: "Philip Deets" <address@hidden>
To: <address@hidden>
Sent: Monday, July 17, 2006 9:28 PM
Subject: [ft] C++/CLI problems

I am trying to use freetype in a C++/CLI project.

To those of you who don't know, C++/CLI is a separate programming
language invented by Microsoft which has all of C++ plus support for
the cli (common language infrastructure, a.k.a. .net).

The problem is, in C++/CLI, generic is a keyword.  This means the
headers don't work for me because there is a member of _FT_FaceRec_
with the name generic.

Does anyone know how I might be able to use FreeType when it uses a
keyword as an identifier?  I am using Microsoft Visual Studio 2005
Professional Edition.

For now, I guess I'll edit the header.

Thank you,

Freetype mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]