Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: FischerB on July 28, 2004, 04:32:45 am

Title: Macros preceding class names in C++ header files
Post by: FischerB 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 ?


Title: Re: Macros preceding class names in C++ header fil
Post by: Andreas_G 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