Author Topic: Macros preceding class names in C++ header files  (Read 2056 times)

FischerB

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Macros preceding class names in C++ header files
« on: July 28, 2004, 04:32:45 am »
Hi all,

I 've just downloaded EA and started imported a directory with C++ header files. A couple of these file are within a dll, and so they are preceded by a macro which evaluates to dllimport or dllexport.

Example :
#ifdef _BUILD_ATMW_BASE_DLL
#define CLASS_DECL_ATMW_NODES __declspec  (dllexport)
#else
#define CLASS_DECL_ATMW_NODES __declspec(dllimport)

The classes in the header file look like this :
class CLASS_DECL_ATMW_NODES CAtMwNodeDescriptionImpl

When I import these class,  EA creates classes with  names CLASS_DECL_ATMW_NODES instead of  CAtMwNodeDescriptionImpl

Any idea what I can do ?



Andreas_G

  • EA User
  • **
  • Posts: 125
  • Karma: +0/-0
  • And that's the way the cookie crumbles.
    • View Profile
Re: Macros preceding class names in C++ header fil
« Reply #1 on: July 28, 2004, 08:22:49 am »
Hi,

Just add the CLASS_DECL_ATMW_NODES macro to the Language Macros at "Configuration->Language Macros".

After that your class import should work.

have a nice day
Andreas
bye
Andreas