PDA

View Full Version : How to export enum ?



Peppy
14th May 2010, 14:26
How to export enum? (from DLLs)
How it is Ok:
a) enum __stdcall __declspec(dllexport) MyEnum {...};
b) __stdcall __declspec(dllexport) enum MyEnum {...};

?

wysota
14th May 2010, 15:15
I don't think you have to export enums as they are defined in header files not in implementation files. Just include the appropriate header file in the project which uses the DLL and you should be able to use the enum.