Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hello Friends Help Needed for My Project [Automatic Login System] Pin
GenJerDan6-Jun-11 6:41
GenJerDan6-Jun-11 6:41 
GeneralRe: Hello Friends Help Needed for My Project [Automatic Login System] Pin
DaveyM694-Jun-11 23:03
professionalDaveyM694-Jun-11 23:03 
GeneralRe: Hello Friends Help Needed for My Project [Automatic Login System] Pin
hackerzpark6-Jun-11 6:16
hackerzpark6-Jun-11 6:16 
GeneralRe: Hello Friends Help Needed for My Project [Automatic Login System] [modified] Pin
DaveyM696-Jun-11 10:39
professionalDaveyM696-Jun-11 10:39 
QuestionHow to disable a panels vertical scroll to the mouse wheel Pin
venomation4-Jun-11 14:23
venomation4-Jun-11 14:23 
AnswerRe: How to disable a panels vertical scroll to the mouse wheel Pin
Mark Salsbery4-Jun-11 16:25
Mark Salsbery4-Jun-11 16:25 
GeneralRe: How to disable a panels vertical scroll to the mouse wheel Pin
venomation4-Jun-11 16:38
venomation4-Jun-11 16:38 
AnswerRe: How to disable a panels vertical scroll to the mouse wheel Pin
Philippe Mori4-Jun-11 16:28
Philippe Mori4-Jun-11 16:28 
GeneralRe: How to disable a panels vertical scroll to the mouse wheel Pin
venomation4-Jun-11 16:45
venomation4-Jun-11 16:45 
GeneralRe: How to disable a panels vertical scroll to the mouse wheel Pin
Philippe Mori4-Jun-11 17:16
Philippe Mori4-Jun-11 17:16 
GeneralRe: How to disable a panels vertical scroll to the mouse wheel Pin
venomation4-Jun-11 17:35
venomation4-Jun-11 17:35 
GeneralRe: How to disable a panels vertical scroll to the mouse wheel Pin
gavindon5-Jun-11 4:17
gavindon5-Jun-11 4:17 
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 
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 
StrCmpLogicalW() is what Windows Explorer uses to sort file names in the "logical" order, i.e. it gives
a1a, a2a, a3a, ..., a9a, a10a, a11a, ...
so it looks at a string as containing digits and non-digits; in scans left-to-rigth; for the non-digits it compares a character at a time, by char value; for digits, it calculates the integer value and compares that. It does not know about decimal points, thousand separators, minus signs, etc.

As a result 0.842264196854649 is the number zero, a period, and the number 842264196854649, and the latter one is larger than 91145355364217 by about a factor of 9.

You should not use StrCmpLogicalW() here; why don't you just use string.Compare() (OK for positive numbers only!)? and of course, the clean approach would be using numbers, not strings.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Please use <PRE> tags for code snippets, they improve readability.
CP Vanity has been updated to V2.3

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.