Book a Demo

Author Topic: Problems with C++ Parser  (Read 3273 times)

timhawkins

  • EA User
  • **
  • Posts: 28
  • Karma: +0/-0
  • If a man says something and a woman is not around to hear him, is he still wrong?
    • View Profile
Problems with C++ Parser
« on: February 01, 2003, 12:18:06 pm »
I have a number of software packages that I am trying to import from source. The classes in the package have an "attribute" in the class name ie

//
// Part of object controlled by metaobject
//
class GOODS_DLL_EXPORT object_header {
 public:
  ......
};

where GOODS_DLL_EXPORT is defined as

#define GOODS_DLL_EXPORT __declspec(dllexport)

The problem is that EA is creating multiple classes of then name GOODS_DLL_EXPORT instead of the real name of the class, I bleive this is becuase it is using the first token after the "class" keyword as the class name. It should use the last token instead and assume that the previous tokens are attributes.

I have tried this in 3.51 and its still doing the same thing.


Takeshi_KOUNO

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: Problems with C++ Parser
« Reply #1 on: February 02, 2003, 06:43:39 pm »
Hello,

I think it's a better way to define GOODS_DLL_EXPORT as 'MACRO'.

you can use macro menu from 'reference'.

Takeshi KOUNO