Click here to Skip to main content
15,926,857 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: ASCII TO HEX Pin
Admiral Quality19-Feb-04 8:05
Admiral Quality19-Feb-04 8:05 
Do you mean a string representing a number? Or just the hex for an aribtrary string? Use atoi() for parsing a number. To convert an arbitrary string to a hex encoded string try something like this:

CString csYourString = "Something.";<br />
	CString csHex, csEditContents;<br />
	int i;<br />
	for (i=0; i<csYourString.GetLength(); i++)<br />
		{<br />
		csHex.Format("%02X", csYourString.GetAt(i));<br />
		csEditContents.Append(csHex);<br />
		}<br />


csEditContents will then contain "536F6D657468696E672E"

Is this what you meant?
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 
GeneralRe: C++ Question. Pin
WREY19-Feb-04 8:08
WREY19-Feb-04 8:08 

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.