Problem in getting hash values [modified]
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I want to get hash values from two string. I am using the following code snippet for that purpose locale loc("English_US"); LONG lValue1 = use_facet< collate<_TCHAR> >(loc).hash(&lpszString1, &lpszString1[_tcslen(lpszString1) - 1]); LONG lValue2 = use_facet< collate<_TCHAR> >(loc).hash(&lpszString2, &lpszString2[_tcslen(lpszString2) - 1]); This is working fine. But in a few XP system this piece of code is getting hanged. Do you have any clue what could be the possible reason. Thanks.
modified on Tuesday, September 23, 2008 8:35 AM