Re: settting /CLR per file in VS 2005
- From: "Carl Daniel [VC++ MVP]" <cpdaniel_remove_this_and_nospam@xxxxxxxxxxxxxxx>
- Date: Fri, 21 Oct 2005 07:30:27 -0700
bonk wrote:
> I was told that it is possible to set the /clr compiler switch on a
> per file basis. I find this option in the project settings for the
> .cpp files. However that does not affect the header files. So if I
> have a class that has managed members setting the /clr on a per file
> basis does not work. ( for example it will tcomplain about using the
> ^ requires the /clr switch)
Naturally.
If you have a class that has managed membrers, then every file that sees
(uses, instantiates, touches, whatever) that class must be compiled as
managed code and will need to be compiled with /clr.
Bottom line: you need to design and manage the boundary between your
managed and unmanaged code carefully in order to really keep the two
separate.
-cd
.
- References:
- settting /CLR per file in VS 2005
- From: bonk
- settting /CLR per file in VS 2005
- Prev by Date: Re: Misc linker errors when moving to /clr
- Next by Date: Re: USB interface
- Previous by thread: settting /CLR per file in VS 2005
- Next by thread: VC++ Delegate Options
- Index(es):
Relevant Pages
|