Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: zlotin on January 08, 2002, 12:37:57 am

Title: problem on importing classes
Post by: zlotin on January 08, 2002, 12:37:57 am
I'm triing to import classes which have the __declspec( dllexport ) prefix; The result is imported the class with name "__declspec". I tried to use the defines to hide the __declspec( dllexport ), or predefinitions ( this way I used when worked with together ), The result is negative anyway - the class with wrong name is created, the real class is not in the project.
Title: Re: problem on importing classes
Post by: sparks on January 08, 2002, 02:27:23 am
Hello,

We are not exactly sure why you are having these troubles, by defining a language macro EA should ignore them totally.  Would it be possible for you to send a code sample (.h file(s)) that the errors are occuring with, that way we can test what is happening.

Paul Mathers
Title: Re: problem on importing classes
Post by: zlotin on January 08, 2002, 02:43:59 am
no problems... new file with this text, import... and you are getting... Class IMPORT...


#define IMPORT __declspec( dllexport )

//class IMPORT c_zz ;
class IMPORT c_zz
{
     public:
           int i ;
};