Author Topic: problem on importing classes  (Read 1590 times)

zlotin

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
problem on importing classes
« 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.

sparks

  • EA Administrator
  • EA User
  • *****
  • Posts: 597
  • Karma: +3/-1
    • View Profile
Re: problem on importing classes
« Reply #1 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

zlotin

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: problem on importing classes
« Reply #2 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 ;
};