Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

c++ syntax question

Name: Anonymous 2012-02-20 2:14

Hi /prog
When working with some other C++ libraries, I often see a class declaration like so:

class LIBRARYNAME_API ClassName
{};

Could someone please explain what the "LIBRARYNAME_API" part actually does?

Name: Anonymous 2012-02-20 6:59

Probably a macro that expands to __declspec(dllexport)/__attribute__ ((dllexport)) or __declspec(dllimport)/__attribute__ ((dllimport)) or nothing depending on build options (if building a dynamic, if linking to a dynamic lib, or building a static lib)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List