Adding Support for Managed Extensions

G

Guest

Hi. i got some trouble including Managed C++.
Refering to:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmxspec/html/vcmg_overview.asp.

There is no "Compile As Managed" property in the General folder under C/C++.

Ive tried Adding /clr to the command line, but i recive:
/clr incomatible to /rtc1
changing /RTC1 to something differnt seems not to take Effect, i still
recive the same Error.

I am using code generated with Visual Studio 6 (c++), trying to implement
into .net 2003.
The Project itself compiles and works. As soon as i try to add /clr, i fail.

regards.
 
W

William DePalo [MVP VC++]

Jaster said:
Hi. i got some trouble including Managed C++.
Refering to:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmxspec/html/vcmg_overview.asp.

There is no "Compile As Managed" property in the General folder under
C/C++.

There should be one labeled "Used Managed Extension" which you have to set
to Yes.
Ive tried Adding /clr to the command line, but i recive:
/clr incomatible to /rtc1
changing /RTC1 to something differnt seems not to take Effect, i still
recive the same Error.

Open the "C++ folder" in your project's property settings. Click the 'Code
Generation' item beneath it. In the right pane set 'Basic Runtime Checks' to
default.

<rant>
You are of course free to create a project any way you like. I suggest that
you use the wizard, tell it what kind of application you are building and
let it choose a set of compatible options.
</rant>

Regards,
Will
 
G

Guest

I have tried this and it doesnt work. I still get error D2016 /RTC1 and /clr
conflict. Has anyone found a fix for this?

<rant>
I am trying to convert an existing VC6 project so cannot let a wizard do its
stuff
</rant>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top