0

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!

MattN
  • 125
  • 1
  • 5

1 Answers1

0

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

Lou Franco
  • 87,846
  • 14
  • 132
  • 192