Book a Demo

Author Topic: Importing a class exporting function (DLL)  (Read 2021 times)

nicgendron

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Importing a class exporting function (DLL)
« on: August 04, 2005, 05:17:35 am »
Hi,

I'm using EA to do reverse engineering on some C++ code I have.  I this code, I have a Dynamic Link Library (DLL) that exports a class.

The class definition is as follow :
[glb]
class DATALOG_API IDatalog
{
...
}
[/glb]

Where DATALOG_API is defined as this :
[glb]
#ifdef DATALOG_EXPORTS
#define DATALOG_API __declspec(dllexport)
#else
#define DATALOG_API __declspec(dllimport)
#endif
[/glb]

The problem is that EA is seeing this class as "DATALOG_API" and not "IDatalog"

With the consequence that all the links to this class are inexistant.

Is there a way to solve that problem
???

Thanks a lot

Nic

nicgendron

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Importing a class exporting function (DLL)
« Reply #1 on: August 04, 2005, 07:12:17 am »
Configuration menu

Language Macro

Add DATALOG_API

and it works!

larsfl

  • Guest
Re: Importing a class exporting function (DLL)
« Reply #2 on: February 03, 2006, 05:18:33 am »
Did you find a solution?  I have the same problem.

thanks for any suggestions

The languages macro did work ;)

lars
« Last Edit: February 03, 2006, 05:25:11 am by larsfl »