Click here to Skip to main content
15,892,161 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to get cookies from CookieContainer? Pin
Mycroft Holmes28-Jan-10 12:03
professionalMycroft Holmes28-Jan-10 12:03 
GeneralRe: How to get cookies from CookieContainer? Pin
hello_amigo28-Jan-10 13:32
hello_amigo28-Jan-10 13:32 
AnswerRe: How to get cookies from CookieContainer? Pin
Not Active28-Jan-10 13:37
mentorNot Active28-Jan-10 13:37 
AnswerRe: How to get cookies from CookieContainer? Pin
hello_amigo29-Jan-10 5:43
hello_amigo29-Jan-10 5:43 
GeneralRe: How to get cookies from CookieContainer? Pin
Lasha874-Mar-10 1:37
Lasha874-Mar-10 1:37 
QuestionUsing TaskScheduler 2.0 Pin
Bob Nona28-Jan-10 9:23
Bob Nona28-Jan-10 9:23 
AnswerRe: Using TaskScheduler 2.0 Pin
OriginalGriff28-Jan-10 10:24
mveOriginalGriff28-Jan-10 10:24 
GeneralConverting a project to target x64 platform Pin
SimulationofSai28-Jan-10 8:33
SimulationofSai28-Jan-10 8:33 
Hi All,

I have a fairly large solution, about 60 projects, which is right now configured to build for "Any CPU". Since we're moving to x64 servers, we decided to compile specifically for x64. I know that VS.NET (2008 in this case) does not do anything special if the build configuration is changed to x64 in case of C# projects. I merely adds a PE header in the IL which says it must be JITted as a 64 bit app. I changed the build configuration anyway and tried building it. But it complained that the various .NET assemblies used was x86, but since they were "Warning as Errors", I ignored them.
I know C++ has various compiler and linker directives that needs to be set if it has to be compiled as x64. Are there any such special things needed for C# projects, or do I just change the build configuration and hope that when the app runs, it'll run as 64 bit.

The project uses the .NET 3.5 framework and is actually a web service. I remember reading that some compiler optimizations will be made if it's targeted to x64, but cannot recall the source. So here are my questions

1. Apart from what I've done (Change build configuration) is there anything else that needs to be set?
2. The project still references the x86 versions of .NET assemblies, and it'd be too much of a pain if I were asked to change everything to refer the x64 assemblies. But assuming that the .NET assemblies are linked dynamically at runtime, would this matter?
3. There's no separate x64 version of .NET 3.5 (atleast I couldn't find one), only .NET 2.0. If this is the case, and the project uses .NET 3.5, would it really run as a 64 bit app, or just revert back to 32-bit mode at runtime? I've done and deployed "pure" 64 bit apps using .NET 2.0, but this is the first for .NET 3.5.
4. Will there be any compiler optimizations be done if it's targeted at x64 systems rather than "Any CPU"?

I've done quite a bit of reading, but couldn't nail down any authoritative source which explains porting to x64 using VS and for C# apps completely. It's either for C++ apps or just general reads on migrating to x64. Pardon my search skills if there's any real good source on the web and I overlooked it. If I get answer s for these queries, that's be great and accelerate my work, if not, it's back to numerous trial and error studies for me. Smile | :)

Thank You.

Apologies for the long question and the boring narration, but it's 1 AM here and my body's threatening to go into hibernation...



GeneralRe: Converting a project to target x64 platform [modified] Pin
harold aptroot28-Jan-10 9:07
harold aptroot28-Jan-10 9:07 
QuestionHow to work on Devices using C#? Pin
CoderForEver28-Jan-10 7:35
CoderForEver28-Jan-10 7:35 
AnswerRe: How to work on Devices using C#? Pin
Luc Pattyn28-Jan-10 7:37
sitebuilderLuc Pattyn28-Jan-10 7:37 
GeneralRe: How to work on Devices using C#? Pin
CoderForEver28-Jan-10 7:51
CoderForEver28-Jan-10 7:51 
GeneralRe: How to work on Devices using C#? Pin
Luc Pattyn28-Jan-10 8:05
sitebuilderLuc Pattyn28-Jan-10 8:05 
GeneralRe: How to work on Devices using C#? Pin
OriginalGriff28-Jan-10 8:17
mveOriginalGriff28-Jan-10 8:17 
GeneralRe: How to work on Devices using C#? Pin
Luc Pattyn28-Jan-10 8:34
sitebuilderLuc Pattyn28-Jan-10 8:34 
GeneralRe: How to work on Devices using C#? Pin
DaveyM6928-Jan-10 10:43
professionalDaveyM6928-Jan-10 10:43 
GeneralRe: How to work on Devices using C#? Pin
CoderForEver29-Jan-10 8:17
CoderForEver29-Jan-10 8:17 
GeneralRe: How to work on Devices using C#? Pin
DaveyM6929-Jan-10 13:16
professionalDaveyM6929-Jan-10 13:16 
QuestionWorking on ListViewItem Pin
CoderForEver28-Jan-10 7:26
CoderForEver28-Jan-10 7:26 
AnswerRe: Working on ListViewItem Pin
Saksida Bojan28-Jan-10 8:04
Saksida Bojan28-Jan-10 8:04 
QuestionData not insert Pin
mjawadkhatri28-Jan-10 6:54
mjawadkhatri28-Jan-10 6:54 
AnswerRe: Data not insert Pin
loyal ginger28-Jan-10 7:05
loyal ginger28-Jan-10 7:05 
GeneralRe: Data not insert Pin
mjawadkhatri28-Jan-10 23:03
mjawadkhatri28-Jan-10 23:03 
AnswerRe: Data not insert Pin
kevinnicol28-Jan-10 9:58
kevinnicol28-Jan-10 9:58 
AnswerRe: Data not insert Pin
rockracker28-Jan-10 14:08
rockracker28-Jan-10 14:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.