473,770 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1158
"Jaster" <Ja****@discuss ions.microsoft. com> wrote in message
news:2F******** *************** ***********@mic rosoft.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****@discuss ions.microsoft. com> wrote in message
news:2F******** *************** ***********@mic rosoft.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
8521
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 2.4 installer for windows. Now I have problems to compile python extension that some packages
7
2458
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 globalArray __gc; at the begin of a file. But I get the error "global Array: cannot declare a global or static managed type object or a __gc pointer"
2
1303
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 for what I need. However, to use the code, it looks like I need to compile with managed extensions. Since my project does not use managed extensions, I am not sure what the ramifications are of using them in regards to performance.
5
28675
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 receive these defined structs as parms and modify them during execution. Basically, it'd be something siomple like this (but in C#): #include <parms.h> W32_PARM parm;
2
4741
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 several classes in it), in my c# project. I added the reference to my c# project. But still I can't use the classes. Do I need to use Dllimport?. When I look at the object browser, i can see all the classes but there
4
873
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 mentions backward compatibility. They've removed overloading the C++ pointer, for instance, so it can no longer reference a managed type. Is there a compiler switch that enables 2002/2003 compiler behavior?
2
5788
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 function in the previously 6.0 code and I get the error noted below. What I don't understand is since I created this cpp as a new file in .net and inherited from a .net base class then why would I get this error? Both the class and base class to me...
2
2316
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 C++/CLI DLL written in VS2005 into a managed extensions app written with VS2003 and b) use a managed extensions DLL written with VS2003 in a C++/CLI app written in VS2005. How can I do this? Immediate problems I found:
1
1247
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 (and I can understand why). However, Microsoft themselves are providing such extensions and are giving examples in the SDK. So what? I have to make a design decision about a new product and I'm rather puzzled by this.
0
9618
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10259
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10101
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9906
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.