Can't see how to compile a header file with /clr switch in a mixed class
Posted
by
MattN
on Stack Overflow
See other posts from Stack Overflow
or by MattN
Published on 2011-01-07T14:51:25Z
Indexed on
2011/01/07
14:53 UTC
Read the original article
Hit count: 268
When creating a mixed mode class, on compilation the header file complains that it needs to be complied with the /clr switch as it is a mixed mode class, however, I can't see any option to specifically compile that header with /clr from visual studio, and I don't want to set the entire project with a /clr flag,
Does anyone know how I can specify that this header file is compiled correctly with /clr?
Thanks in advance!
© Stack Overflow or respective owner