tags:

views:

16

answers:

1

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?

+2  A: 

No.

Constants in #define's are replaced by the pre-processor before compilation. They are not exposed as variables.

Mitch Wheat