I have a C++ dll which has a GPC_EPSILON constant defined as such
#define GPC_EPSILON (DBL_EPSILON)
Is there anyway to expose this GPC_EPSILON
to managed dll via interop, so that I can set this value from .Net dll?
I have a C++ dll which has a GPC_EPSILON constant defined as such
#define GPC_EPSILON (DBL_EPSILON)
Is there anyway to expose this GPC_EPSILON
to managed dll via interop, so that I can set this value from .Net dll?
No.
Constants in #define
's are replaced by the pre-processor before compilation. They are not exposed as variables.