473,404 Members | 2,179 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,404 software developers and data experts.

/clr option

Hi,
I am starting to follow a book which is saying to use common language
runtime (clr).
So I defined a class I created as __gc type and also I included
<mscorlib.dll>
but when I build the program the VC++ is saying
c:\aldi3\cpp\helloWorld\helloWorld.cpp(7): fatal error C1190: managed
targeted code requires '#using <mscorlib.dll>' and '/clr' option

The book does not show how to define clr option. How can I control to use
clr option?
Thanks,
Aldi
Nov 17 '05 #1
2 4238
Aldi Kraja wrote:
So I defined a class I created as __gc type and also I included
<mscorlib.dll>
[...]
fatal error C1190: managed
targeted code requires '#using <mscorlib.dll>' and '/clr' option
The book does not show how to define clr option. How can I control to
use clr option?


Presuming you are using VisualStudio.NET: Open the project options,
select the "General" tab (should be visible by default) and set "Use
managed extensions" to true.

If you are compiling from the commandline you simply have to add the
"/clr" switch.

Regards
Markus
Nov 17 '05 #2
"Aldi Kraja" <al**@wubios.wustl.edu> wrote in message
news:10************@corp.supernews.com...
but when I build the program the VC++ is saying
c:\aldi3\cpp\helloWorld\helloWorld.cpp(7): fatal error C1190: managed
targeted code requires '#using <mscorlib.dll>' and '/clr' option

The book does not show how to define clr option. How can I control to use
clr option?


From the Project menu choose the <project> Properties item. Under the
Configuration Properties yellow folder in the left pane click on General.
Then on the right side find the edit box labeled "Use Managed Extensions"
make sure it is set to Yes.

Regards,
Will
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Targa | last post by:
I have a select box with about 5 options. I need to have one of the options, when selected, display a second select box. The second select box is populated by a database and needs to be preloaded...
3
by: gekoblu | last post by:
Hi!, I want to fix via javascript the combo width to a fix value. I'd like to implement a kind of ALT / TITLE function to show the entire option when the text is longer than the combo width......
3
by: Rithish Saralaya | last post by:
Is there a way to scroll a selected OPTION into view? I have a combination of text box and SELECT list. A user can key in text in the text box, and depending on the entry made, the respective...
4
by: Fluffy Convict | last post by:
I have found a workaround to disable certain options in an option list: var p = document.forms.elements; p.selectedIndex=-1; This works perfectly in IE - the selectedIndex becomes unclickable....
3
by: Iain Hallam | last post by:
Hi. I've been using display:none on the style property of some <option> elements in my forms, which works fine with Mozilla - as expected it removes the option from my dropdown (although it...
3
by: Stewart | last post by:
Dear comp.lang.javascript, I have more than once wanted to manipulate the contents of select boxes dynamically, whilst the boxes contain <optgroup> tags. Manipulation of a select box containing...
8
by: McKirahan | last post by:
Firefox does not reflect selected option via innerHTML How do I get Firefox to reflect selected option values? <html> <head> <title>FFinner.htm</title> <script type="text/javascript">...
3
by: ANTISPAM_garycnew_ANTISPAM | last post by:
What is the simplest way to retain the last option value selected in an html select object using javascript? I am currently using a server-side cgi language to accomplish this task, but it adds...
2
by: rpeterson84 | last post by:
Hi, Thanks in advance to for the help!!!!! When the page loads, "Application Inventory" is selected by default --- I want to use a mouse.click to select "Systems Compliance", BUT HOW? I'm...
3
by: Venturini | last post by:
I am trying to put together a web page where the customer makes choices of products and is then given a total. I am extremely new to Javascript and have managed to get as far as I have from web...
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: 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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
0
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...

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.