469,950 Members | 2,265 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,950 developers. It's quick & easy.

Adding Support for Managed Extensions

Hi. i got some trouble including Managed C++.
Refering to:
http://msdn.microsoft.com/library/de...g_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.
Nov 17 '05 #1
2 1032
"Jaster" <Ja****@discussions.microsoft.com> wrote in message
news:2F**********************************@microsof t.com...
Hi. i got some trouble including Managed C++.
Refering to:
http://msdn.microsoft.com/library/de...g_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
Nov 17 '05 #2
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>
"William DePalo [MVP VC++]" wrote:
"Jaster" <Ja****@discussions.microsoft.com> wrote in message
news:2F**********************************@microsof t.com...
Hi. i got some trouble including Managed C++.
Refering to:
http://msdn.microsoft.com/library/de...g_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

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Ekim | last post: by
2 posts views Thread by BCC | last post: by
5 posts views Thread by Angel | last post: by
2 posts views Thread by Steven Cool | last post: by
2 posts views Thread by andy6 via DotNetMonster.com | last post: by
2 posts views Thread by kelvin.koogan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.