Click here to Skip to main content
15,914,016 members
Home / Discussions / C#
   

C#

 
GeneralRe: registry editing: NullReferenceException driving me crazy... Pin
Bahadir Cambel5-Mar-05 4:57
Bahadir Cambel5-Mar-05 4:57 
GeneralSercurity question Pin
oohungoo4-Mar-05 22:47
oohungoo4-Mar-05 22:47 
GeneralRe: Sercurity question Pin
mav.northwind4-Mar-05 23:00
mav.northwind4-Mar-05 23:00 
GeneralRe: Sercurity question Pin
Dave Kreskowiak5-Mar-05 9:46
mveDave Kreskowiak5-Mar-05 9:46 
GeneralRe: Sercurity question Pin
oohungoo6-Mar-05 0:24
oohungoo6-Mar-05 0:24 
GeneralRe: Sercurity question Pin
J4amieC6-Mar-05 22:37
J4amieC6-Mar-05 22:37 
GeneralVS.NET error or my error: if(a<0) a = -a; Pin
dstang20004-Mar-05 20:12
dstang20004-Mar-05 20:12 
GeneralRe: VS.NET error or my error: if(a<0) a = -a; Pin
mav.northwind4-Mar-05 23:17
mav.northwind4-Mar-05 23:17 
I'm not getting a positive number at all, a.ToString() doesn't effect the result.

I think you should be using long instead of int, otherwise you'll be getting overflows all the time and unexpected results if you rely on the sign of your values.

You can use the checked keyword or the /checked compiler flag to detect such overflows.

mav
GeneralRe: VS.NET error or my error: if(a<0) a = -a; Pin
Luis Alonso Ramos5-Mar-05 19:12
Luis Alonso Ramos5-Mar-05 19:12 
GeneralRe: VS.NET error or my error: if(a<0) a = -a; Pin
dstang20005-Mar-05 20:59
dstang20005-Mar-05 20:59 
Generallogically linked array Pin
lindiwe4-Mar-05 19:36
lindiwe4-Mar-05 19:36 
GeneralRe: logically linked array Pin
mav.northwind4-Mar-05 21:45
mav.northwind4-Mar-05 21:45 
GeneralRe: logically linked array Pin
Dave Kreskowiak5-Mar-05 9:45
mveDave Kreskowiak5-Mar-05 9:45 
GeneralToggle switch Pin
Anonymous4-Mar-05 18:52
Anonymous4-Mar-05 18:52 
GeneralRe: Toggle switch Pin
Yulianto.4-Mar-05 20:05
Yulianto.4-Mar-05 20:05 
GeneralRe: Toggle switch Pin
leppie4-Mar-05 23:22
leppie4-Mar-05 23:22 
GeneralCollection property Pin
Anonymous4-Mar-05 18:50
Anonymous4-Mar-05 18:50 
GeneralRe: Collection property Pin
Guinness4Strength5-Mar-05 8:28
Guinness4Strength5-Mar-05 8:28 
GeneralMDI Parent/Child Form Problem... Pin
new_phoenix4-Mar-05 16:05
new_phoenix4-Mar-05 16:05 
GeneralRe: MDI Parent/Child Form Problem... Pin
Dave Kreskowiak4-Mar-05 16:28
mveDave Kreskowiak4-Mar-05 16:28 
GeneralRe: MDI Parent/Child Form Problem... Pin
new_phoenix5-Mar-05 7:49
new_phoenix5-Mar-05 7:49 
GeneralRe: MDI Parent/Child Form Problem... Pin
Dave Kreskowiak5-Mar-05 17:25
mveDave Kreskowiak5-Mar-05 17:25 
QuestionFiring an event for a button within a datalist? Pin
oceanexplorer4-Mar-05 13:17
oceanexplorer4-Mar-05 13:17 
AnswerRe: Firing an event for a button within a datalist? Pin
Rob Graham4-Mar-05 15:07
Rob Graham4-Mar-05 15:07 
QuestionExporting S.D.Graphics to file? Pin
zaubara4-Mar-05 12:45
zaubara4-Mar-05 12:45 

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.