The ProgrammersTalk Community
Forum Register Search Today's Posts Mark Forums Read
Register

Go Back   The ProgrammersTalk Community > General Programming > C / C++


Welcome to the The ProgrammersTalk Community forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Reply
 
LinkBack Thread Tools    Display Modes   
  #1 (permalink)  
Old 07-21-2007, 03:18 PM
Lee's Avatar
Lee Lee is offline
PT Staff*
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: Blackpool, UK
Posts: 616
iTrader: (0)
Lee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enough
Guru help with settings please!!!

Hey,

I am trying to setup my compiler and am in need of help, I am using Visual C++ 2005 Express Edition

I am trying to set up two things.

1. When i declare a char in my program and its unsigned instead of me typing unsigned char i want it to do this by default, meaning when i declare a char that's unsigned it will change the code to unsigned char for me.

To do this i need to put "/J" somewhere though with this version i am not sure where i need to put it, in earlier versions you go into the properties and in the additional options text box under the tab C/C++ you type "/J", if that tabs there i cant find it?

2. I want to make it so my application uses multi threaded libraries and i cant seem to find the drop down list to change it, in older versions it comes under the C/C++ tab under a label "Use run-time library:" then you select what you want from the list, Again i cant find this

Please help!

Thanks
Reply With Quote
  #2 (permalink)  
Old 07-21-2007, 05:17 PM
Bench Bench is offline
Full Programmer
Join Date: Jul 2007
Location: UK
Posts: 111
iTrader: (0)
Bench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished road
Quote:
Originally Posted by Lee View Post
Hey,

I am trying to setup my compiler and am in need of help, I am using Visual C++ 2005 Express Edition

I am trying to set up two things.

1. When i declare a char in my program and its unsigned instead of me typing unsigned char i want it to do this by default, meaning when i declare a char that's unsigned it will change the code to unsigned char for me.

To do this i need to put "/J" somewhere though with this version i am not sure where i need to put it, in earlier versions you go into the properties and in the additional options text box under the tab C/C++ you type "/J", if that tabs there i cant find it?

]2. I want to make it so my application uses multi threaded libraries and i cant seem to find the drop down list to change it, in older versions it comes under the C/C++ tab under a label "Use run-time library:" then you select what you want from the list, Again i cant find this

Please help!

Thanks
Perhaps my version (.NET 2003) qualifies as an 'older version' -however, I found this option in the Project's properties window. Under the C/C++ 'tree' of settings, there's a property page called Code Generation, where you can specify single or multi-threaded runtime libraries.

Is this what you're looking for?


As for the option to treat char as unsigned by default, the Property page beneath Code Generation is called Language. in VS 2003, I have the Default char unsigned option there.


If VS2005 is different (Last time I used VS2005 it looked more-or-less identical) then you might need to flick through MSDN's help pages.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #3 (permalink)  
Old 07-21-2007, 05:48 PM
Lee's Avatar
Lee Lee is offline
PT Staff*
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: Blackpool, UK
Posts: 616
iTrader: (0)
Lee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enough
Nope i got nothing, i have found a C/C++ tree but when you expand it theres only 3 things within, all of which are not what i am after.

I have been routing round MSDN but that site is made to be a pain to find things unless you get lucky. Is it maybe because i am using the express version? What i have found on MSDN is how you and the book said i should do it though i have less options.

Thanks for your help, any more help would be great

Last edited by Lee : 07-21-2007 at 05:52 PM.
Reply With Quote
  #4 (permalink)  
Old 07-22-2007, 06:32 AM
Bench Bench is offline
Full Programmer
Join Date: Jul 2007
Location: UK
Posts: 111
iTrader: (0)
Bench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished road
I've just been leafing through MSDN, and found this page

Breaking Changes in the Visual C++ 2005 Compiler (C++)

Apparently a lot of redundant features were removed in VS2005, with the single threaded runtime libraries seeming to be being one of them.. in other words, it would appear you're already using the multi-threaded runtime libraries.


Another option which appears in the C/C++ tree is called Command Line - does this appear in VS express edition?

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #5 (permalink)  
Old 07-22-2007, 09:00 AM
Lee's Avatar
Lee Lee is offline
PT Staff*
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: Blackpool, UK
Posts: 616
iTrader: (0)
Lee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enough
Quote:
Originally Posted by Bench View Post
I've just been leafing through MSDN, and found this page

Breaking Changes in the Visual C++ 2005 Compiler (C++)

Apparently a lot of redundant features were removed in VS2005, with the single threaded runtime libraries seeming to be being one of them.. in other words, it would appear you're already using the multi-threaded runtime libraries.


Another option which appears in the C/C++ tree is called Command Line - does this appear in VS express edition?
Thanks for the link, thats one of two problems solved , as for the 2nd i looked under the C/C++ tree and there was no command line option there , there are other command line in options in other property windows, one comes under debug?

I am thinking try it in debug command line because i would think the compiler would treat it as an error but then the command would kick in and make it unsigned char?
Reply With Quote
Reply


Thread Tools
Display Modes

   Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 01:09 AM. Powered by vBulletin
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO © 2007 ProgrammersTalk Sedo - Buy and Sell Domain Names and Websites project info: programmerstalk.net Statistics for project programmerstalk.net etracker® web controlling instead of log file analysis


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50