Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
GeneralRe: WCF Basics Pin
Richard MacCutchan4-Jun-11 4:05
mveRichard MacCutchan4-Jun-11 4:05 
GeneralRe: WCF Basics Pin
MicroVirus5-Jun-11 3:32
MicroVirus5-Jun-11 3:32 
AnswerRe: WCF Basics Pin
Ravi Bhavnani4-Jun-11 6:01
professionalRavi Bhavnani4-Jun-11 6:01 
QuestionIssue with StrCmpLogicalW (and doubles) [modified] Pin
SledgeHammer013-Jun-11 8:22
SledgeHammer013-Jun-11 8:22 
AnswerRe: Issue with StrCmpLogicalW (and doubles) Pin
SledgeHammer013-Jun-11 8:27
SledgeHammer013-Jun-11 8:27 
AnswerRe: Issue with StrCmpLogicalW (and doubles) Pin
gavindon3-Jun-11 10:25
gavindon3-Jun-11 10:25 
AnswerRe: Issue with StrCmpLogicalW (and doubles) Pin
gavindon3-Jun-11 10:27
gavindon3-Jun-11 10:27 
GeneralRe: Issue with StrCmpLogicalW (and doubles) Pin
SledgeHammer013-Jun-11 11:12
SledgeHammer013-Jun-11 11:12 
Well, I was originally thinking of trimming the strings to the same length, but that would screw things up because I could get something like 0.5 and then I don't want to trim 0.92323923423 to 0.9. I could go the other way and pad out the 0.5 to 0.500000000, but I don't want to display it like that Smile | :) .

My list control was doing sorting generically by property name. I.e. column1 sorts on "Name", column2 sorts on "Age", etc. So I just added a "custom sort callback" property to the column and
if it has one specified, it calls that instead of StrCmpLogicalW with raw object(s) instead of the ToString()'ed version and the implementer of the callback can decide how to compare them. In this case, I just typecast to doubles and use the <, == and > operators.

Still, the StrCmpLogicalW thing irks me because the whole point of that function is to take numbers into account Smile | :) .
AnswerRe: Issue with StrCmpLogicalW (and doubles) PinPopular
Luc Pattyn3-Jun-11 15:24
sitebuilderLuc Pattyn3-Jun-11 15:24 
GeneralRe: Issue with StrCmpLogicalW (and doubles) Pin
SledgeHammer013-Jun-11 16:08
SledgeHammer013-Jun-11 16:08 
AnswerRe: Issue with StrCmpLogicalW (and doubles) Pin
Luc Pattyn3-Jun-11 16:30
sitebuilderLuc Pattyn3-Jun-11 16:30 
QuestionAsynchronous TcpListener and TcpClient design patterns Pin
Chesnokov Yuriy3-Jun-11 6:56
professionalChesnokov Yuriy3-Jun-11 6:56 
AnswerRe: Asynchronous TcpListener and TcpClient design patterns Pin
Ravi Bhavnani3-Jun-11 7:22
professionalRavi Bhavnani3-Jun-11 7:22 
AnswerRe: Asynchronous TcpListener and TcpClient design patterns Pin
Chesnokov Yuriy3-Jun-11 7:40
professionalChesnokov Yuriy3-Jun-11 7:40 
AnswerRe: Asynchronous TcpListener and TcpClient design patterns Pin
Eddy Vluggen3-Jun-11 8:10
professionalEddy Vluggen3-Jun-11 8:10 
AnswerRe: Asynchronous TcpListener and TcpClient design patterns Pin
Chesnokov Yuriy3-Jun-11 8:28
professionalChesnokov Yuriy3-Jun-11 8:28 
GeneralRe: Asynchronous TcpListener and TcpClient design patterns Pin
Ravi Bhavnani3-Jun-11 9:15
professionalRavi Bhavnani3-Jun-11 9:15 
QuestionRe: Asynchronous TcpListener and TcpClient design patterns Pin
Chesnokov Yuriy3-Jun-11 9:47
professionalChesnokov Yuriy3-Jun-11 9:47 
AnswerRe: Asynchronous TcpListener and TcpClient design patterns Pin
Ravi Bhavnani3-Jun-11 9:58
professionalRavi Bhavnani3-Jun-11 9:58 
AnswerRe: Asynchronous TcpListener and TcpClient design patterns Pin
Chesnokov Yuriy3-Jun-11 19:32
professionalChesnokov Yuriy3-Jun-11 19:32 
GeneralRe: Asynchronous TcpListener and TcpClient design patterns Pin
Ravi Bhavnani4-Jun-11 6:00
professionalRavi Bhavnani4-Jun-11 6:00 
AnswerRe: Asynchronous TcpListener and TcpClient design patterns Pin
Eddy Vluggen3-Jun-11 9:18
professionalEddy Vluggen3-Jun-11 9:18 
AnswerRe: Asynchronous TcpListener and TcpClient design patterns Pin
BobJanova5-Jun-11 23:59
BobJanova5-Jun-11 23:59 
QuestionBroken DLL Pin
musefan3-Jun-11 5:53
musefan3-Jun-11 5:53 
AnswerRe: Broken DLL Pin
Ennis Ray Lynch, Jr.3-Jun-11 6:07
Ennis Ray Lynch, Jr.3-Jun-11 6:07 

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.