compare SW version
-
How can I compare two strings that contain a version? For Instance: CString string1 = 10.2.33.4 CString string2 = 10.4.22 so in this case - string2 is higher than string1. Is there a windows function that I can use (or something of the sort), or do I have for each string to break up the string at each '.' insert each part into an integer and compare each part of the two strings separately? Thanks,
-
How can I compare two strings that contain a version? For Instance: CString string1 = 10.2.33.4 CString string2 = 10.4.22 so in this case - string2 is higher than string1. Is there a windows function that I can use (or something of the sort), or do I have for each string to break up the string at each '.' insert each part into an integer and compare each part of the two strings separately? Thanks,
-
How can I compare two strings that contain a version? For Instance: CString string1 = 10.2.33.4 CString string2 = 10.4.22 so in this case - string2 is higher than string1. Is there a windows function that I can use (or something of the sort), or do I have for each string to break up the string at each '.' insert each part into an integer and compare each part of the two strings separately? Thanks,
-
How can I compare two strings that contain a version? For Instance: CString string1 = 10.2.33.4 CString string2 = 10.4.22 so in this case - string2 is higher than string1. Is there a windows function that I can use (or something of the sort), or do I have for each string to break up the string at each '.' insert each part into an integer and compare each part of the two strings separately? Thanks,