Click here to Skip to main content
16,004,969 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DIALOG PROBLEM Pin
Prakash Nadar19-Feb-04 5:35
Prakash Nadar19-Feb-04 5:35 
GeneralRe: DIALOG PROBLEM Pin
Caoimh19-Feb-04 23:42
Caoimh19-Feb-04 23:42 
GeneralRe: DIALOG PROBLEM Pin
Prakash Nadar20-Feb-04 4:15
Prakash Nadar20-Feb-04 4:15 
GeneralRe: DIALOG PROBLEM Pin
David Crow19-Feb-04 5:35
David Crow19-Feb-04 5:35 
GeneralRe: DIALOG PROBLEM Pin
Caoimh22-Feb-04 22:55
Caoimh22-Feb-04 22:55 
GeneralASCII TO HEX Pin
Caoimh19-Feb-04 5:18
Caoimh19-Feb-04 5:18 
GeneralRe: ASCII TO HEX Pin
David Crow19-Feb-04 5:38
David Crow19-Feb-04 5:38 
GeneralRe: ASCII TO HEX Pin
basementman19-Feb-04 8:02
basementman19-Feb-04 8:02 
char *BufferToHexString(char *cpBuffer, int iBufferLength /*=-1*/)<br />
{<br />
  if (iBufferLength < 0)<br />
    iBufferLength = strlen(cpBuffer);<br />
<br />
  char *cpRetval = new char[(iBufferLength*2)+1];<br />
  if (cpRetval)<br />
    {<br />
      unsigned char *cpSource = (unsigned char *)cpBuffer;<br />
      unsigned int iChar;<br />
<br />
      char *cpDest = cpRetval;<br />
<br />
      for (int iLup = 0; iLup < iBufferLength; iLup++)<br />
        {<br />
          iChar = *cpSource;<br />
          sprintf(cpDest,"%02X",iChar);<br />
<br />
          cpSource++;<br />
          cpDest += 2;<br />
        }<br />
<br />
      *(cpRetval+(iBufferLength*2)) = 0;<br />
    }<br />
<br />
  return cpRetval;<br />
}


 onwards and upwards... 
GeneralRe: ASCII TO HEX Pin
Admiral Quality19-Feb-04 8:05
Admiral Quality19-Feb-04 8:05 
GeneralRe: ASCII TO HEX Pin
Caoimh19-Feb-04 23:16
Caoimh19-Feb-04 23:16 
GeneralRe: ASCII TO HEX Pin
Anonymous20-Feb-04 18:37
Anonymous20-Feb-04 18:37 
GeneralRe: ASCII TO HEX Pin
Caoimh22-Feb-04 22:56
Caoimh22-Feb-04 22:56 
GeneralCreating an ATL dialog box for an Addin Pin
K dur19-Feb-04 5:16
K dur19-Feb-04 5:16 
GeneralDelphi conversion to C++ Pin
BoudewijnEctor19-Feb-04 4:44
BoudewijnEctor19-Feb-04 4:44 
GeneralC++ Question. Pin
WREY19-Feb-04 4:42
WREY19-Feb-04 4:42 
GeneralRe: C++ Question. Pin
David Crow19-Feb-04 5:42
David Crow19-Feb-04 5:42 
GeneralRe: C++ Question. Pin
Prakash Nadar19-Feb-04 6:08
Prakash Nadar19-Feb-04 6:08 
GeneralRe: C++ Question. Pin
David Crow19-Feb-04 6:50
David Crow19-Feb-04 6:50 
GeneralRe: C++ Question. Pin
Steve S19-Feb-04 7:23
Steve S19-Feb-04 7:23 
GeneralRe: C++ Question. Pin
David Crow19-Feb-04 7:52
David Crow19-Feb-04 7:52 
GeneralRe: C++ Question. Pin
Steve S19-Feb-04 23:16
Steve S19-Feb-04 23:16 
GeneralRe: C++ Question. Pin
WREY19-Feb-04 7:20
WREY19-Feb-04 7:20 
GeneralRe: C++ Question. Pin
WREY19-Feb-04 7:15
WREY19-Feb-04 7:15 
GeneralRe: C++ Question. Pin
David Crow19-Feb-04 7:22
David Crow19-Feb-04 7:22 
GeneralRe: C++ Question. Pin
WREY19-Feb-04 7:46
WREY19-Feb-04 7:46 

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.