I have a C++ DLL which has a constant defined as such:
#define GPC_EPSILON (DBL_EPSILON)
Is there any way to expose this GPC_EPSILON to the managed DLL via interop so that I can get this value from the .NET DLL?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No.
Constants in
#define‘s are replaced by the pre-processor before compilation. They are not exposed as variables.