Click here to Skip to main content
15,884,388 members
Home / Discussions / C#
   

C#

 
GeneralRe: Struct vs Class? (Off Topic) Pin
OriginalGriff17-Feb-14 11:24
mveOriginalGriff17-Feb-14 11:24 
GeneralRe: Struct vs Class? (Off Topic) Pin
OriginalGriff23-Feb-14 0:29
mveOriginalGriff23-Feb-14 0:29 
GeneralRe: Struct vs Class? (Off Topic) Pin
David C# Hobbyist.23-Feb-14 4:42
professionalDavid C# Hobbyist.23-Feb-14 4:42 
GeneralRe: Struct vs Class? (Off Topic) Pin
OriginalGriff23-Feb-14 4:57
mveOriginalGriff23-Feb-14 4:57 
QuestionInterface for Authorization Custom Inteface c# Winforms .net 4.0 Pin
Member 1050351416-Feb-14 12:10
Member 1050351416-Feb-14 12:10 
AnswerRe: Interface for Authorization Custom Inteface c# Winforms .net 4.0 Pin
Eddy Vluggen17-Feb-14 0:29
professionalEddy Vluggen17-Feb-14 0:29 
QuestionStrange bug when converting from binary to decimal.. Pin
Alex Reed16-Feb-14 9:54
Alex Reed16-Feb-14 9:54 
AnswerRe: Strange bug when converting from binary to decimal.. Pin
Richard Andrew x6416-Feb-14 11:25
professionalRichard Andrew x6416-Feb-14 11:25 
This is a guess because I haven't tried your code, but I think the problem is that when you convert binaryDigits to a char array, the resulting array is in the wrong order.

In other words, the array is left to right, but when you're increasing bValue by saying bValue *= 2, you're going from right to left.

To fix it, you either need to reverse the char array, OR loop through the char array in reverse order.



The difficult we do right away...
...the impossible takes slightly longer.

GeneralRe: Strange bug when converting from binary to decimal.. Pin
Alex Reed17-Feb-14 14:01
Alex Reed17-Feb-14 14:01 
AnswerRe: Strange bug when converting from binary to decimal.. Pin
Richard MacCutchan16-Feb-14 22:40
mveRichard MacCutchan16-Feb-14 22:40 
GeneralRe: Strange bug when converting from binary to decimal.. Pin
Richard Deeming17-Feb-14 1:54
mveRichard Deeming17-Feb-14 1:54 
GeneralRe: Strange bug when converting from binary to decimal.. Pin
Richard MacCutchan17-Feb-14 3:01
mveRichard MacCutchan17-Feb-14 3:01 
GeneralRe: Strange bug when converting from binary to decimal.. Pin
Alex Reed17-Feb-14 14:00
Alex Reed17-Feb-14 14:00 
GeneralRe: Strange bug when converting from binary to decimal.. Pin
Richard MacCutchan17-Feb-14 21:12
mveRichard MacCutchan17-Feb-14 21:12 
Questiontabcontrol OwnerDrawFixed right to left in c# Pin
Member 1059114816-Feb-14 1:39
Member 1059114816-Feb-14 1:39 
QuestionHow to Open form inside existing Tab Page Pin
Member 1059114816-Feb-14 1:36
Member 1059114816-Feb-14 1:36 
AnswerRe: How to Open form inside existing Tab Page Pin
Member 1059114816-Feb-14 8:33
Member 1059114816-Feb-14 8:33 
QuestionRe: How to Open form inside existing Tab Page Pin
Ravi Bhavnani17-Feb-14 7:54
professionalRavi Bhavnani17-Feb-14 7:54 
Questionhello sir... for com port setting for sms application in c# Pin
aawajaarughat15-Feb-14 23:18
professionalaawajaarughat15-Feb-14 23:18 
AnswerRe: hello sir... for com port setting for sms application in c# Pin
Kornfeld Eliyahu Peter15-Feb-14 23:31
professionalKornfeld Eliyahu Peter15-Feb-14 23:31 
AnswerRe: hello sir... for com port setting for sms application in c# Pin
OriginalGriff15-Feb-14 23:32
mveOriginalGriff15-Feb-14 23:32 
QuestionTrying to make a converter Pin
daddy35615-Feb-14 14:01
daddy35615-Feb-14 14:01 
AnswerRe: Trying to make a converter Pin
Richard Andrew x6415-Feb-14 17:26
professionalRichard Andrew x6415-Feb-14 17:26 
GeneralRe: Trying to make a converter Pin
Mycroft Holmes15-Feb-14 20:41
professionalMycroft Holmes15-Feb-14 20:41 
GeneralRe: Trying to make a converter Pin
harold aptroot15-Feb-14 23:52
harold aptroot15-Feb-14 23:52 

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.