Click here to Skip to main content
15,895,606 members
Home / Discussions / C#
   

C#

 
QuestionNeed to pass structure to assembly Pin
Amit Kumar G7-Jun-07 9:08
Amit Kumar G7-Jun-07 9:08 
AnswerRe: Need to pass structure to assembly Pin
Not Active7-Jun-07 9:16
mentorNot Active7-Jun-07 9:16 
GeneralRe: Need to pass structure to assembly Pin
Amit Kumar G7-Jun-07 9:24
Amit Kumar G7-Jun-07 9:24 
GeneralRe: Need to pass structure to assembly Pin
Not Active7-Jun-07 9:42
mentorNot Active7-Jun-07 9:42 
GeneralRe: Need to pass structure to assembly Pin
Amit Kumar G7-Jun-07 10:04
Amit Kumar G7-Jun-07 10:04 
QuestionHelp with simple guess number - program (while loop) Pin
Husker477-Jun-07 8:27
Husker477-Jun-07 8:27 
AnswerRe: Help with simple guess number - program (while loop) Pin
Luc Pattyn7-Jun-07 8:32
sitebuilderLuc Pattyn7-Jun-07 8:32 
AnswerRe: Help with simple guess number - program (while loop) Pin
Jimmanuel7-Jun-07 8:54
Jimmanuel7-Jun-07 8:54 
Your problem is with the call to Console.Read() - the integer that it returns is the Ascii value of the first character entered by the user. Use this instead:
int.TryParse( Console.ReadLine(), out guess);
The call to Console.ReadLine() reads the entire line of input supplied by the user, and then int.TryParse() attempts to parse that string into an integer value. TryParse returns a bool to let you know if the string could be parsed correctly or not. You'll probably want to add some error handling for when the user enters something that isn't a valid integer value, but that's totally up to you.
GeneralRe: Help with simple guess number - program (while loop) Pin
Husker477-Jun-07 9:02
Husker477-Jun-07 9:02 
GeneralRe: Help with simple guess number - program (while loop) Pin
Jimmanuel7-Jun-07 9:03
Jimmanuel7-Jun-07 9:03 
Questiondatagridview selected row, highlight row Pin
FernandoMartin7-Jun-07 8:05
FernandoMartin7-Jun-07 8:05 
AnswerRe: datagridview selected row, highlight row Pin
Salogus7-Jun-07 12:46
Salogus7-Jun-07 12:46 
QuestionDynamic Assembly Loading Pin
ATCsharp7-Jun-07 7:32
ATCsharp7-Jun-07 7:32 
AnswerRe: Dynamic Assembly Loading Pin
Le centriste7-Jun-07 7:53
Le centriste7-Jun-07 7:53 
GeneralRe: Dynamic Assembly Loading Pin
ATCsharp7-Jun-07 8:17
ATCsharp7-Jun-07 8:17 
AnswerRe: Dynamic Assembly Loading Pin
Luc Pattyn7-Jun-07 8:35
sitebuilderLuc Pattyn7-Jun-07 8:35 
GeneralRe: Dynamic Assembly Loading Pin
ATCsharp7-Jun-07 8:59
ATCsharp7-Jun-07 8:59 
AnswerRe: Dynamic Assembly Loading Pin
Not Active7-Jun-07 9:13
mentorNot Active7-Jun-07 9:13 
GeneralRe: Dynamic Assembly Loading Pin
ATCsharp7-Jun-07 9:35
ATCsharp7-Jun-07 9:35 
Questionplay mp3 from stream Pin
Dirk Reske7-Jun-07 6:36
Dirk Reske7-Jun-07 6:36 
AnswerRe: play mp3 from stream Pin
Sathesh Sakthivel7-Jun-07 6:53
Sathesh Sakthivel7-Jun-07 6:53 
GeneralRe: play mp3 from stream Pin
Dirk Reske7-Jun-07 6:59
Dirk Reske7-Jun-07 6:59 
QuestionMultithreading and Reflection question? Pin
Rojan Gh.7-Jun-07 6:21
professionalRojan Gh.7-Jun-07 6:21 
AnswerRe: Multithreading and Reflection question? Pin
Dave Kreskowiak7-Jun-07 7:20
mveDave Kreskowiak7-Jun-07 7:20 
Questionhow to make exe to point to different version of dll? Pin
ksaravananit7-Jun-07 5:57
ksaravananit7-Jun-07 5:57 

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.