Click here to Skip to main content
15,917,632 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to disable a panels vertical scroll to the mouse wheel Pin
venomation5-Jun-11 11:10
venomation5-Jun-11 11:10 
QuestionWCF Basics Pin
AmbiguousName4-Jun-11 3:27
AmbiguousName4-Jun-11 3:27 
AnswerRe: WCF Basics Pin
Abhinav S4-Jun-11 3:36
Abhinav S4-Jun-11 3:36 
AnswerRe: WCF Basics Pin
AmbiguousName4-Jun-11 3:48
AmbiguousName4-Jun-11 3:48 
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 
I'm using StrCmpLogicalW to logically compare strings. My signature is:

[DllImport("shlwapi.dll", CharSet = CharSet.Unicode)]
public static extern int StrCmpLogicalW(string x, string y);

seems like its kind of working, but I see that its giving me random results when trying to sort doubles (as strings).

1 ===> 0.883266340175621 <-> 0.842264196854649

that seems like its right, but then a second later I get:

1 ===> 0.842264196854649 <-> 0.91145355364217

that seems wrong. Obviously 0.91 is greater then 0.84. I'm thinking StrCmpLogicalW isn't liking that the 2nd string is shorter.

Can't really special case this since its in generic code that uses LINQ expression trees to get property "x" from objects and then does .ToString() on them for passing into StrCmpLogicalW.

Any ideas?



-- Modified Friday, June 3, 2011 5:05 PM
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 
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 

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.