472,345 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,345 software developers and data experts.

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 1094
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

188
by: Ilias Lazaridis | last post by:
I'm a newcomer to python: - E01: The Java Failure - May Python Helps? http://groups-beta.google.com/group/comp.lang.python/msg/75f0c5c35374f553...
7
by: Ekim | last post by:
hello, I'm using MANAGED C++ and need one of the following two questions answered: 1.) How can one make a global managed array? I'm thinking on...
2
by: BCC | last post by:
Hi, I have a need to read in a very simple xml file and initialized some objects from the data. I was reading on the ms website that .net...
5
by: Angel | last post by:
Is there some way to add a C-header file into a C# project? The problem is that this .h file contains several complex structures (over 20) that are...
2
by: Steven Cool | last post by:
Hi, DA PROBLEM: Once I wrote a c++ dll. I wanted to use that dll in my new c# project, so I compiled it with the CLR option. The compilation...
4
by: Dr Evil | last post by:
Does anyone know if C++ w/Managed Extensions code written for VS 2002/2003 will compile in VS 2005? I've read a lot about the changes to C++ in...
2
by: andy6 via DotNetMonster.com | last post by:
I took a c++ 6.0 project and converted it to c++ .net 2005 project. I want to make a web service out of it. One of the new files I created was a cpp...
2
by: kelvin.koogan | last post by:
Our company has a mix of users with VS2003 & VS2005. I'm am having difficulty working out how components written with these 2 tools can be written...
1
by: Patrick Philippot | last post by:
Hi, According to this discussion: http://forums.msdn.microsoft.com/en-US/netfxbcl/thread/1428326d-7950-42b4-ad94-8e962124043e/ it is very...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.