473,394 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 1141
"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 - I've download (as suggested) the python...
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 something like defining static System::Byte...
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 contains its own XML parser, and it sounds pretty good...
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 used by some unmanaged code. These functions...
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 was ok. Like I said, I wanted to use the dll (with...
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 .net ( the new CLI syntax ), but nothing I've read...
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 where I have the webmethod pointing to a...
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 together. I want to be able to a) incorporate a...
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 unsafe to write shell extensions in managed code...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.