[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [ft-devel] FreeType compatibility with C++ managed extensions
From: |
Graham Asher |
Subject: |
RE: [ft-devel] FreeType compatibility with C++ managed extensions |
Date: |
Mon, 17 Oct 2005 17:53:05 +0100 |
Dear FreeTypers,
I had some second thoughts about making FreeType run under C++ managed
extensions.
You have to compile everything as C++, not C. That causes compatibility
problems. To quote Microsoft
(http://msdn2.microsoft.com/en-us/library/ms173265): "The C++ type-safety
rules are strict, so type conversions must be made explicit with casts. For
example, malloc returns a void pointer, but can be assigned to a pointer to
any type in C with a cast:" ... and "Identifiers used in C code that happen
to be keywords in C++ (such as virtual, new, delete, bool, true, false,
etc.) must be renamed. This can generally be done with simple
search-and-replace operations.".
This alone makes my original idea impractical :-(
So my original impression that all I had to do was change identifiers in
header files #included by C++ was incorrect.
Therefore I withdraw my proposal. (It may still be possible to use FreeType
in what Microsoft call a 'mixed assembly' - part managed C++ and part
unmanaged C/C++ - the unmanaged part would be FreeType - but the header
files would still cause a problem to any managed code that needed to call
FreeType functions.)
Best regards,
Graham Asher
- Re: [ft-devel] Export services?, (continued)
- Re: [ft-devel] Export services?, Werner LEMBERG, 2005/10/14
- Re: [ft-devel] Export services?, David Turner, 2005/10/15
- RE: [ft-devel] Export services?, Turner, David, 2005/10/17
- [ft-devel] FreeType compatibility with C++ managed extensions, Graham Asher, 2005/10/17
- Re: [ft-devel] FreeType compatibility with C++ managed extensions, Werner LEMBERG, 2005/10/17
- RE: [ft-devel] FreeType compatibility with C++ managed extensions, Graham Asher, 2005/10/17
- RE: [ft-devel] FreeType compatibility with C++ managed extensions,
Graham Asher <=
- Re: [ft-devel] FreeType compatibility with C++ managed extensions, Werner LEMBERG, 2005/10/17
- Re: [ft-devel] FreeType compatibility with C++ managed extensions, David Turner, 2005/10/17
- RE: [ft-devel] FreeType compatibility with C++ managed extensions, Graham Asher, 2005/10/17
- Re: [ft-devel] FreeType compatibility with C++ managed extensions, George Williams, 2005/10/17