Click here to Skip to main content
15,884,472 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
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 
PraiseRe: STL std::string help needed Pin
VISWESWARAN19989-Feb-17 23:07
professionalVISWESWARAN19989-Feb-17 23:07 
AnswerRe: STL std::string help needed Pin
Jochen Arndt8-Feb-17 22:29
professionalJochen Arndt8-Feb-17 22:29 
GeneralRe: STL std::string help needed Pin
VISWESWARAN19989-Feb-17 4:00
professionalVISWESWARAN19989-Feb-17 4:00 
GeneralRe: STL std::string help needed Pin
Jochen Arndt9-Feb-17 4:12
professionalJochen Arndt9-Feb-17 4:12 
GeneralRe: STL std::string help needed Pin
VISWESWARAN19989-Feb-17 19:52
professionalVISWESWARAN19989-Feb-17 19:52 
AnswerRe: STL std::string help needed Pin
Daniel Pfeffer9-Feb-17 6:17
professionalDaniel Pfeffer9-Feb-17 6:17 
GeneralRe: STL std::string help needed Pin
VISWESWARAN19989-Feb-17 7:27
professionalVISWESWARAN19989-Feb-17 7:27 
GeneralRe: STL std::string help needed Pin
Daniel Pfeffer11-Feb-17 7:36
professionalDaniel Pfeffer11-Feb-17 7:36 
QuestionRe: STL std::string help needed Pin
VISWESWARAN199812-Feb-17 0:18
professionalVISWESWARAN199812-Feb-17 0:18 
AnswerRe: STL std::string help needed Pin
Daniel Pfeffer12-Feb-17 0:47
professionalDaniel Pfeffer12-Feb-17 0:47 
PraiseRe: STL std::string help needed Pin
VISWESWARAN199812-Feb-17 4:25
professionalVISWESWARAN199812-Feb-17 4:25 
PraiseRe: STL std::string help needed Pin
VISWESWARAN19989-Feb-17 23:54
professionalVISWESWARAN19989-Feb-17 23:54 
QuestionMultiple Inheritance question Pin
samzcs25-Dec-16 17:31
samzcs25-Dec-16 17:31 
GeneralRe: Multiple Inheritance question Pin
Richard MacCutchan25-Dec-16 20:36
mveRichard MacCutchan25-Dec-16 20:36 

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.