PDA

View Full Version : Definitions Problem in GDI.h



Jim Albright
23-Mar-2009, 11:53 AM
Since I already use CharTranslate.pkg I get a definition conflict with GDI.h in the new Graphics Library.

The following lines are in both the pkg and the .h



#REPLACE CP_ACP 0 // default to ANSI code page
#REPLACE CP_OEMCP 1 // default to OEM code page
#REPLACE CP_MACCP 2 // default to MAC code page
#REPLACE CP_THREAD_ACP 3 // current thread's ANSI code page
#REPLACE CP_SYMBOL 42 // SYMBOL translations
#REPLACE CP_UTF7 65000 // UTF-7 translation
#REPLACE CP_UTF8 65001 // UTF-8 translation



As a work around I added this line to the top of the definitions in GDI.h


use CharTranslate.pkg //added jra 3-23-2009

And commented out all the above replacements.

Jim

Vincent Oorsprong
24-Mar-2009, 07:53 AM
Jim,

You do not need to do that. What you need to do is make sure CharTranslate.Pkg is USEd before the USE of the Graphics Library include files.

Jim Albright
24-Mar-2009, 09:38 AM
Why should I have to be aware of that? The packages from DAW should be aware of the other packages in the product including the distributed liabraries. Or the documentation should make it clear.

Vincent Oorsprong
24-Mar-2009, 02:29 PM
Jim,

In an ideal world, yes!

You are the first to report this and I will make a request for a change. Meanwhile do what I suggested.

Jim Albright
24-Mar-2009, 04:17 PM
Jim,

In an ideal world, yes!

You are the first to report this and I will make a request for a change. Meanwhile do what I suggested.


Already did. Thanks.

Jim