Link to home
Start Free TrialLog in
Avatar of lzha022
lzha022

asked on

how to export a MACRO in dll

I crreated a DLL and want to export a few MACROs.
eg.
#define ALLOCATE_MEMORY( result , type , number ) \
( (result = ( type *) allocate( ( number ) * sizeof( type ))))
it does not allow me to put '__declspec(dllexport)' in front of #define ...

Could anyone tell me how to solve this?
thanks
 
ASKER CERTIFIED SOLUTION
Avatar of DefreeComan
DefreeComan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lzha022
lzha022

ASKER

Oh, i see.
thanks for both of you.