开发者

Can't see how to compile a header file with /clr switch in a mixed class

When creating a mixed mode class, on compilation the header file complains that it needs to be complied with the /clr switch开发者_JAVA百科 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!


Every cpp file that includes the header needs the /clr flag, not the header itself.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜