Click here to Skip to main content
15,908,931 members
Home / Discussions / C#
   

C#

 
QuestionCompile warnings as errors. Pin
Septimus Hedgehog1-May-13 23:10
Septimus Hedgehog1-May-13 23:10 
SuggestionRe: Compile warnings as errors. Pin
Maarten Kools1-May-13 23:34
professionalMaarten Kools1-May-13 23:34 
AnswerRe: Compile warnings as errors. Pin
Abhinav S1-May-13 23:38
Abhinav S1-May-13 23:38 
AnswerRe: Compile warnings as errors. Pin
OriginalGriff2-May-13 5:15
mveOriginalGriff2-May-13 5:15 
GeneralRe: Compile warnings as errors. Pin
Septimus Hedgehog2-May-13 23:32
Septimus Hedgehog2-May-13 23:32 
GeneralRe: Compile warnings as errors. Pin
OriginalGriff3-May-13 0:01
mveOriginalGriff3-May-13 0:01 
AnswerRe: Compile warnings as errors. Pin
PIEBALDconsult3-May-13 11:29
mvePIEBALDconsult3-May-13 11:29 
QuestionHow do they do this when copying files? Pin
Septimus Hedgehog1-May-13 20:03
Septimus Hedgehog1-May-13 20:03 
AnswerRe: How do they do this when copying files? Pin
Pete O'Hanlon1-May-13 20:18
mvePete O'Hanlon1-May-13 20:18 
GeneralRe: How do they do this when copying files? Pin
Garth J Lancaster1-May-13 20:22
professionalGarth J Lancaster1-May-13 20:22 
GeneralRe: How do they do this when copying files? Pin
Pete O'Hanlon1-May-13 21:25
mvePete O'Hanlon1-May-13 21:25 
GeneralRe: How do they do this when copying files? Pin
Garth J Lancaster1-May-13 23:12
professionalGarth J Lancaster1-May-13 23:12 
GeneralRe: How do they do this when copying files? Pin
Septimus Hedgehog1-May-13 21:17
Septimus Hedgehog1-May-13 21:17 
GeneralRe: How do they do this when copying files? Pin
Pete O'Hanlon2-May-13 0:01
mvePete O'Hanlon2-May-13 0:01 
GeneralRe: How do they do this when copying files? Pin
Septimus Hedgehog2-May-13 0:57
Septimus Hedgehog2-May-13 0:57 
GeneralRe: How do they do this when copying files? Pin
Pete O'Hanlon2-May-13 1:00
mvePete O'Hanlon2-May-13 1:00 
GeneralRe: How do they do this when copying files? Pin
Septimus Hedgehog2-May-13 1:23
Septimus Hedgehog2-May-13 1:23 
AnswerRe: How do they do this when copying files? Pin
Abhinav S1-May-13 23:36
Abhinav S1-May-13 23:36 
Questionmodify C# 2008 desktop application Pin
classy_dog1-May-13 16:47
classy_dog1-May-13 16:47 
AnswerRe: modify C# 2008 desktop application Pin
Pete O'Hanlon1-May-13 18:54
mvePete O'Hanlon1-May-13 18:54 
Questionunexpected end of file Pin
miket2144123451-May-13 13:54
miket2144123451-May-13 13:54 
AnswerRe: unexpected end of file Pin
Freak301-May-13 22:26
Freak301-May-13 22:26 
AnswerRe: unexpected end of file Pin
Eddy Vluggen2-May-13 0:30
professionalEddy Vluggen2-May-13 0:30 
C#
int databaseKeyValue = newShape.get_Cells(_VisioPropCellPrefix + _IDColumn).get_ResultInt((short)Visio.VisUnitCodes.visNumber, 0);

That's too many statements on a single line. Call a single method per line, and step trough the code. It's probably not one of those methods that causes the exception, but a related event.

C#
short shapeID = (short)(int)(shapeIDs.GetValue(index));
Why cast it to int, if you need a short?
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

QuestionProblem while exporting a aspx page to pdf Pin
Member 1002163430-Apr-13 23:20
Member 1002163430-Apr-13 23:20 
AnswerRe: Problem while exporting a aspx page to pdf Pin
Jasmine25011-May-13 8:40
Jasmine25011-May-13 8:40 

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.