Click here to Skip to main content
15,920,633 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Text editor in vc++ Pin
lolici13-Mar-17 2:42
lolici13-Mar-17 2:42 
GeneralRe: Text editor in vc++ Pin
Jochen Arndt13-Mar-17 2:53
professionalJochen Arndt13-Mar-17 2:53 
GeneralRe: Text editor in vc++ Pin
lolici13-Mar-17 3:15
lolici13-Mar-17 3:15 
GeneralRe: Text editor in vc++ Pin
lolici13-Mar-17 3:29
lolici13-Mar-17 3:29 
GeneralRe: Text editor in vc++ Pin
Jochen Arndt13-Mar-17 3:47
professionalJochen Arndt13-Mar-17 3:47 
GeneralRe: Text editor in vc++ Pin
lolici13-Mar-17 4:07
lolici13-Mar-17 4:07 
QuestionHow to give data dynamically in a dialog box using visual c++ Pin
lolici9-Mar-17 3:14
lolici9-Mar-17 3:14 
AnswerRe: How to give data dynamically in a dialog box using visual c++ Pin
Richard MacCutchan9-Mar-17 5:22
mveRichard MacCutchan9-Mar-17 5:22 
GeneralRe: How to give data dynamically in a dialog box using visual c++ Pin
lolici9-Mar-17 5:51
lolici9-Mar-17 5:51 
GeneralRe: How to give data dynamically in a dialog box using visual c++ Pin
Richard MacCutchan9-Mar-17 6:07
mveRichard MacCutchan9-Mar-17 6:07 
GeneralRe: How to give data dynamically in a dialog box using visual c++ Pin
lolici9-Mar-17 6:54
lolici9-Mar-17 6:54 
GeneralRe: How to give data dynamically in a dialog box using visual c++ Pin
Richard MacCutchan9-Mar-17 8:23
mveRichard MacCutchan9-Mar-17 8:23 
GeneralRe: How to give data dynamically in a dialog box using visual c++ Pin
lolici10-Mar-17 4:29
lolici10-Mar-17 4:29 
GeneralRe: How to give data dynamically in a dialog box using visual c++ Pin
Richard MacCutchan10-Mar-17 4:38
mveRichard MacCutchan10-Mar-17 4:38 
GeneralRe: How to give data dynamically in a dialog box using visual c++ Pin
ThatsAlok11-May-17 20:51
ThatsAlok11-May-17 20:51 
QuestionSTL std::string help needed Pin
VISWESWARAN19988-Feb-17 7:02
professionalVISWESWARAN19988-Feb-17 7:02 
AnswerRe: STL std::string help needed Pin
Richard MacCutchan8-Feb-17 22:09
mveRichard MacCutchan8-Feb-17 22:09 
GeneralRe: STL std::string help needed Pin
VISWESWARAN19989-Feb-17 3:59
professionalVISWESWARAN19989-Feb-17 3:59 
GeneralRe: STL std::string help needed Pin
Richard MacCutchan9-Feb-17 5:24
mveRichard MacCutchan9-Feb-17 5:24 
GeneralRe: STL std::string help needed Pin
VISWESWARAN19989-Feb-17 19:53
professionalVISWESWARAN19989-Feb-17 19:53 
GeneralRe: STL std::string help needed Pin
Richard MacCutchan9-Feb-17 20:51
mveRichard MacCutchan9-Feb-17 20:51 
GeneralRe: STL std::string help needed Pin
Jochen Arndt9-Feb-17 21:13
professionalJochen Arndt9-Feb-17 21:13 
The function name CALL_MD5_Function indicates that it is calculating an MD5 hash sum. But that algorithm is a binary operation and usually requires passing a byte array and a length. With C/C++ char* pointers are often used to pass byte arrays (using uint8_t* would be better). So a char* is not always an indication for a string type.

You are calculating the hash for file names which use different encodings on different platforms (e.g. UTF-16LE on Windows and UTF-8 on Linux). In such cases you have to know (or define) which encoding has to be used for calculations of the hash sum. Then you have to convert the file name strings to that encoding before calculating the hash sum. If it is used only on a single platform, just cast the wide string pointer and pass the length in bytes (the length is missing in your function call; I assume it is just a wrapper to the real function passing strlen).

Finally, why do you want to get the MD5 sum of file names?
It is usually calculated for file content which is just binary.
GeneralRe: STL std::string help needed Pin
VISWESWARAN19989-Feb-17 21:56
professionalVISWESWARAN19989-Feb-17 21:56 
GeneralRe: STL std::string help needed Pin
Jochen Arndt9-Feb-17 23:35
professionalJochen Arndt9-Feb-17 23:35 
PraiseRe: STL std::string help needed Pin
VISWESWARAN19989-Feb-17 23:53
professionalVISWESWARAN19989-Feb-17 23:53 

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.