Click here to Skip to main content
15,886,067 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to initialize array of variable length? Pin
Le@rner27-Dec-13 21:18
Le@rner27-Dec-13 21:18 
AnswerRe: how to initialize array of variable length? Pin
Randor 27-Dec-13 21:36
professional Randor 27-Dec-13 21:36 
GeneralRe: how to initialize array of variable length? Pin
Le@rner20-Jan-14 21:26
Le@rner20-Jan-14 21:26 
AnswerRe: how to initialize array of variable length? Pin
Richard MacCutchan27-Dec-13 22:34
mveRichard MacCutchan27-Dec-13 22:34 
AnswerRe: how to initialize array of variable length? Pin
Albert Holguin28-Dec-13 10:05
professionalAlbert Holguin28-Dec-13 10:05 
QuestionRe: how to initialize array of variable length? Pin
David Crow3-Jan-14 4:28
David Crow3-Jan-14 4:28 
AnswerRe: how to initialize array of variable length? Pin
Le@rner19-Jan-14 22:47
Le@rner19-Jan-14 22:47 
Questionhelp me to generate MD5 of Binary hash value. Pin
Le@rner26-Dec-13 21:33
Le@rner26-Dec-13 21:33 
hi all,

I want to generate the MD5 of given Unicode Binary hash value.

its done in c# like:
C#
MD5 md5Hash = MD5.Create();

 byte[] md5Buf = System.Text.UnicodeEncoding.Unicode.GetBytes(binary_hash_value);
            byte[] md5Hash_buf = md5Hash.ComputeHash(md5Buf);

            // Convert the encrypted bytes back to a string (base 16)
            string hashString = "";

            for (int i = 0; i < md5Hash_buf.Length; i++)
            {
                hashString += Convert.ToString(md5Hash_buf[i], 16).PadLeft(2, '0');
            }


            hashString.PadLeft(32, '0');

            textBox3.Text = hashString;



but its done in my vc++ project can anybody help me to do this.

thanks in advance.
AnswerRe: help me to generate MD5 of Binary hash value. Pin
Richard MacCutchan26-Dec-13 22:25
mveRichard MacCutchan26-Dec-13 22:25 
GeneralRe: help me to generate MD5 of Binary hash value. Pin
Le@rner26-Dec-13 23:45
Le@rner26-Dec-13 23:45 
GeneralRe: help me to generate MD5 of Binary hash value. Pin
Richard MacCutchan27-Dec-13 0:08
mveRichard MacCutchan27-Dec-13 0:08 
GeneralRe: help me to generate MD5 of Binary hash value. Pin
Le@rner27-Dec-13 2:03
Le@rner27-Dec-13 2:03 
GeneralRe: help me to generate MD5 of Binary hash value. Pin
Richard MacCutchan27-Dec-13 3:26
mveRichard MacCutchan27-Dec-13 3:26 
GeneralRe: help me to generate MD5 of Binary hash value. Pin
Randor 27-Dec-13 10:51
professional Randor 27-Dec-13 10:51 
GeneralRe: help me to generate MD5 of Binary hash value. Pin
Le@rner27-Dec-13 17:30
Le@rner27-Dec-13 17:30 
QuestionPointers in C/C++ Pin
tgsb26-Dec-13 20:24
tgsb26-Dec-13 20:24 
AnswerRe: Pointers in C/C++ Pin
Richard MacCutchan26-Dec-13 22:23
mveRichard MacCutchan26-Dec-13 22:23 
AnswerRe: Pointers in C/C++ Pin
jschell27-Dec-13 12:54
jschell27-Dec-13 12:54 
JokeRe: Pointers in C/C++ Pin
enhzflep4-Jan-14 8:26
enhzflep4-Jan-14 8:26 
QuestionXML parsing in QT Pin
Utheen26-Dec-13 16:44
Utheen26-Dec-13 16:44 
AnswerRe: XML parsing in QT Pin
Albert Holguin27-Dec-13 4:20
professionalAlbert Holguin27-Dec-13 4:20 
GeneralRe: XML parsing in QT Pin
Utheen29-Dec-13 20:48
Utheen29-Dec-13 20:48 
AnswerRe: XML parsing in QT Pin
Albert Holguin30-Dec-13 7:05
professionalAlbert Holguin30-Dec-13 7:05 
QuestionDynamically updating image (PNG) Pin
Don Guy26-Dec-13 12:53
Don Guy26-Dec-13 12:53 
AnswerRe: Dynamically updating image (PNG) Pin
Albert Holguin26-Dec-13 15:25
professionalAlbert Holguin26-Dec-13 15:25 

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.