Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
GeneralRe: Permission problem with System.Diagnostics.Process.GetProcesses(MachineName) Pin
crash89319-Jun-07 23:46
crash89319-Jun-07 23:46 
GeneralRe: Permission problem with System.Diagnostics.Process.GetProcesses(MachineName) Pin
crash89323-Jun-07 17:27
crash89323-Jun-07 17:27 
AnswerRe: Permission problem with System.Diagnostics.Process.GetProcesses(MachineName) Pin
devesh_code17-Jun-07 20:57
devesh_code17-Jun-07 20:57 
GeneralRe: Permission problem with System.Diagnostics.Process.GetProcesses(MachineName) Pin
crash89318-Jun-07 1:47
crash89318-Jun-07 1:47 
QuestionPossible Overflow? Pin
StevenWalsh17-Jun-07 13:30
StevenWalsh17-Jun-07 13:30 
AnswerRe: Possible Overflow? Pin
Dave Kreskowiak17-Jun-07 14:21
mveDave Kreskowiak17-Jun-07 14:21 
GeneralRe: Possible Overflow? Pin
StevenWalsh17-Jun-07 16:36
StevenWalsh17-Jun-07 16:36 
AnswerRe: Possible Overflow? Pin
Luc Pattyn17-Jun-07 14:25
sitebuilderLuc Pattyn17-Jun-07 14:25 
Hi,

when you do an assignment such as

destinationVariable = someExpression

then the type of the destinationVariable is irrelevant while someExpression is
evaluated. So when e.g. someExpression consists of only integers, it will be calculated
using only integers (with possible overflow); it is only when the assignment itself
is going to happen that possibly a conversion (up-casting) will happen.

BTW: same is true for most programming languages (C, C++, Java, ...).

If the expression's type is insufficient to evaluate correctly, you must make sure
a more capable type is used (e.g. by using wider constants such as 1.0 which
causes part of the expression at least to use doubles, by using a long/float/double
variable, or - at the right place - inserting a long/float/double cast).

Smile | :)




QuestionPictureBox contents lost when focus lost Pin
rbengali317-Jun-07 11:11
rbengali317-Jun-07 11:11 
AnswerRe: PictureBox contents lost when focus lost Pin
Luc Pattyn17-Jun-07 11:19
sitebuilderLuc Pattyn17-Jun-07 11:19 
AnswerRe: PictureBox contents lost when focus lost Pin
Christian Graus17-Jun-07 11:36
protectorChristian Graus17-Jun-07 11:36 
GeneralRe: PictureBox contents lost when focus lost Pin
rbengali317-Jun-07 17:32
rbengali317-Jun-07 17:32 
GeneralRe: PictureBox contents lost when focus lost Pin
Christian Graus17-Jun-07 20:13
protectorChristian Graus17-Jun-07 20:13 
AnswerRe: PictureBox contents lost when focus lost Pin
Hesham Yassin20-Jun-07 0:21
Hesham Yassin20-Jun-07 0:21 
QuestionGeneric Collection &Method Problem Pin
haz1317-Jun-07 10:40
haz1317-Jun-07 10:40 
AnswerRe: Generic Collection &Method Problem Pin
User 665817-Jun-07 10:51
User 665817-Jun-07 10:51 
QuestionRe: Generic Collection &Method Problem Pin
haz1317-Jun-07 11:48
haz1317-Jun-07 11:48 
AnswerRe: Generic Collection &Method Problem Pin
Christian Graus17-Jun-07 12:24
protectorChristian Graus17-Jun-07 12:24 
QuestionExport data to excel sheet Pin
HexaDeveloper17-Jun-07 9:32
HexaDeveloper17-Jun-07 9:32 
AnswerRe: Export data to excel sheet Pin
Jimmanuel18-Jun-07 3:48
Jimmanuel18-Jun-07 3:48 
GeneralRe: Export data to excel sheet Pin
HexaDeveloper21-Jun-07 2:17
HexaDeveloper21-Jun-07 2:17 
GeneralRe: Export data to excel sheet Pin
Jimmanuel21-Jun-07 2:23
Jimmanuel21-Jun-07 2:23 
QuestionComboBox change font on specific item.. Pin
akkram17-Jun-07 9:16
akkram17-Jun-07 9:16 
AnswerRe: ComboBox change font on specific item.. Pin
Dave Kreskowiak17-Jun-07 12:38
mveDave Kreskowiak17-Jun-07 12:38 
QuestionConnecting to FTP site Pin
frqftgbdafr17-Jun-07 9:01
frqftgbdafr17-Jun-07 9:01 

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.