Click here to Skip to main content
15,904,346 members
Home / Discussions / C#
   

C#

 
QuestionReg: Loading text file(size 100 MB) in Richtextbox Pin
Member 23893798-May-12 1:00
Member 23893798-May-12 1:00 
AnswerRe: Reg: Loading text file(size 100 MB) in Richtextbox Pin
Luc Pattyn8-May-12 2:10
sitebuilderLuc Pattyn8-May-12 2:10 
AnswerRe: Reg: Loading text file(size 100 MB) in Richtextbox Pin
Pete O'Hanlon8-May-12 2:26
mvePete O'Hanlon8-May-12 2:26 
AnswerRe: Reg: Loading text file(size 100 MB) in Richtextbox Pin
Dave Kreskowiak8-May-12 3:21
mveDave Kreskowiak8-May-12 3:21 
AnswerRe: Reg: Loading text file(size 100 MB) in Richtextbox Pin
Alan N8-May-12 4:31
Alan N8-May-12 4:31 
QuestionProblem with dictionary Pin
Mark Vloerjans8-May-12 0:52
Mark Vloerjans8-May-12 0:52 
AnswerRe: Problem with dictionary Pin
Luc Pattyn8-May-12 2:16
sitebuilderLuc Pattyn8-May-12 2:16 
GeneralRe: Problem with dictionary Pin
Mark Vloerjans23-May-12 1:24
Mark Vloerjans23-May-12 1:24 
AnswerRe: Problem with dictionary Pin
Luc Pattyn23-May-12 2:17
sitebuilderLuc Pattyn23-May-12 2:17 
QuestionRegistry.OpenSubKey Returns Null Pin
Kevin Marois7-May-12 11:30
professionalKevin Marois7-May-12 11:30 
AnswerRe: Registry.OpenSubKey Returns Null Pin
JOAT-MON7-May-12 15:00
JOAT-MON7-May-12 15:00 
AnswerRe: Registry.OpenSubKey Returns Null Pin
Richard MacCutchan7-May-12 21:56
mveRichard MacCutchan7-May-12 21:56 
GeneralRe: Registry.OpenSubKey Returns Null Pin
Kevin Marois8-May-12 7:29
professionalKevin Marois8-May-12 7:29 
GeneralRe: Registry.OpenSubKey Returns Null Pin
SledgeHammer018-May-12 8:01
SledgeHammer018-May-12 8:01 
GeneralRe: Registry.OpenSubKey Returns Null Pin
Kevin Marois8-May-12 10:58
professionalKevin Marois8-May-12 10:58 
GeneralRe: Registry.OpenSubKey Returns Null Pin
SledgeHammer018-May-12 11:23
SledgeHammer018-May-12 11:23 
GeneralRe: Registry.OpenSubKey Returns Null Pin
Richard MacCutchan8-May-12 8:13
mveRichard MacCutchan8-May-12 8:13 
GeneralRe: Registry.OpenSubKey Returns Null Pin
Kevin Marois8-May-12 10:57
professionalKevin Marois8-May-12 10:57 
GeneralRe: Registry.OpenSubKey Returns Null Pin
Richard MacCutchan8-May-12 21:27
mveRichard MacCutchan8-May-12 21:27 
QuestionDisplay Target Platform Pin
AnneThorne7-May-12 6:19
AnneThorne7-May-12 6:19 
Hi,

I have done some searching for this and have not found exactly what I need.

I have created a Windows Application in C#, Dot Net Framework 2, for my company. It currently has a Target Platform of "any cpu".

The company is slowly migrating to use 64 bit machines. Also we would like to upgrade the Windows Application to Dot Net Framework 4.

Management wants to be sure that changing to an x86 target platform (this is the target platform that needs to be used for both x32 and x64 bit machines to run the application) and changing to Dot Net Framework 4, will not break anything.

So: For testing, I want to create 2 applications with the same source code.

1) (Using Visual Studio 2005 to build and publish): Current Visual Studio settings: Dot Net Framework 2, and Target Platform: any cpu

2) (Using Visual Studio 2010 to build and publish): Dot Net Framework 4, and Target Platform: x86

In a label on the application, I want to display the Dot Net Version (I know how to do that). Then I also want to display the Target Platform, which will either be : "any cpu" or "x86".

After searching the internet for about 15 minutes, I discovered how to differentiate between, x32 and x64; or perhaps between x32 and x86... This is by simply using the IntPtr.Size property.

But.. How would I differentiate between "any cpu" and x86. Or what if I wanted to differentiate between x86 and x64?


Thanks in advance for any advice anyone can give me with this.

Smile | :) Anne
AnswerRe: Display Target Platform Pin
Jeremy Hutchinson7-May-12 6:52
professionalJeremy Hutchinson7-May-12 6:52 
AnswerRe: Display Target Platform Pin
Apocalypse Now7-May-12 15:02
Apocalypse Now7-May-12 15:02 
GeneralRe: Display Target Platform Pin
Luc Pattyn8-May-12 2:31
sitebuilderLuc Pattyn8-May-12 2:31 
GeneralRe: Display Target Platform Pin
Apocalypse Now8-May-12 14:26
Apocalypse Now8-May-12 14:26 
AnswerRe: Display Target Platform Pin
Luc Pattyn8-May-12 14:56
sitebuilderLuc Pattyn8-May-12 14:56 

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.