Book a Demo

Author Topic: C++ DLL linkage macros  (Read 3423 times)

fantoft

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
C++ DLL linkage macros
« on: February 21, 2005, 07:36:46 am »
My C++ code uses a macro to declare a class as being exportable from a DLL. This macro occurs before the class name and is incorrectly interpreted by EA as being the actual class name. Is there any way of bluffing EA into ignoring the macro?

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: C++ DLL linkage macros
« Reply #1 on: February 21, 2005, 08:12:52 am »
Yes, there is. Search the online help for 'macros' and you should find a page called 'Language Macros'.

Best regards,
Mikkel

fantoft

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: C++ DLL linkage macros
« Reply #2 on: February 22, 2005, 08:01:42 am »
Thanks for the help.

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: C++ DLL linkage macros
« Reply #3 on: February 22, 2005, 09:02:48 am »
Search forums for 'declspec' - you aren't the first !
;-)