Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDoubt in Radiobuttons Pin
arthivjii21-Sep-02 5:07
arthivjii21-Sep-02 5:07 
GeneralRe: Doubt in Radiobuttons Pin
Pavel Klocek21-Sep-02 5:19
Pavel Klocek21-Sep-02 5:19 
GeneralRe: Doubt in Radiobuttons Pin
Brian Delahunty21-Sep-02 6:22
Brian Delahunty21-Sep-02 6:22 
GeneralReplacing chars in CString (hex) Pin
User 665821-Sep-02 4:04
User 665821-Sep-02 4:04 
GeneralRe: Replacing chars in CString (hex) Pin
Pavel Klocek21-Sep-02 4:19
Pavel Klocek21-Sep-02 4:19 
GeneralRe: Replacing chars in CString (hex) Pin
User 665821-Sep-02 4:33
User 665821-Sep-02 4:33 
GeneralRe: Replacing chars in CString (hex) Pin
Pavel Klocek21-Sep-02 4:44
Pavel Klocek21-Sep-02 4:44 
GeneralRe: Replacing chars in CString (hex) Pin
User 665821-Sep-02 5:29
User 665821-Sep-02 5:29 
Currently I'm writing a parser, but I have one problem:
if(d1 != -1 && d2 != -1)
{
	numbers.Format("%i%i",d1,d2);
	replacechar.Format("\\x%i%i",d1,d2);
				
	CString digits = string.Mid(findx+2,2);
	int iDigits = atoi(digits);
	newchar.Format("%x",iDigits);
	
        string.Replace(replacechar, newchar);
}


replacechar is \x12, this is correct.
But now I need to convert it to hexadecimal:
iDigits is 12, this is correct as well.
But newchar.Format("%x",iDigits); doesn't convert it correct into hexadecimal, since I don't get any answer from the server.

modified 12-Sep-18 21:01pm.

GeneralRe: Replacing chars in CString (hex) Pin
Pavel Klocek21-Sep-02 5:47
Pavel Klocek21-Sep-02 5:47 
GeneralRe: Replacing chars in CString (hex) Pin
User 665821-Sep-02 5:51
User 665821-Sep-02 5:51 
GeneralRe: Replacing chars in CString (hex) Pin
Pavel Klocek21-Sep-02 6:02
Pavel Klocek21-Sep-02 6:02 
GeneralRe: Replacing chars in CString (hex) Pin
User 665821-Sep-02 6:06
User 665821-Sep-02 6:06 
GeneralRe: Replacing chars in CString (hex) Pin
Pavel Klocek21-Sep-02 6:13
Pavel Klocek21-Sep-02 6:13 
GeneralThank you very much Pin
User 665821-Sep-02 6:15
User 665821-Sep-02 6:15 
GeneralRe: Thank you very much Pin
Pavel Klocek21-Sep-02 6:19
Pavel Klocek21-Sep-02 6:19 
GeneralRe: Replacing chars in CString (hex) Pin
Michael Dunn21-Sep-02 5:53
sitebuilderMichael Dunn21-Sep-02 5:53 
GeneralWindow background Pin
suresh_sathya21-Sep-02 3:16
suresh_sathya21-Sep-02 3:16 
GeneralRe: Window background Pin
Dominik Reichl21-Sep-02 4:26
Dominik Reichl21-Sep-02 4:26 
GeneralSocket connection via PROXY server Pin
Chintan21-Sep-02 3:13
Chintan21-Sep-02 3:13 
GeneralRe: Socket connection via PROXY server Pin
Joaquín M López Muñoz21-Sep-02 8:31
Joaquín M López Muñoz21-Sep-02 8:31 
Generalshared memory and MFC Pin
nss21-Sep-02 2:37
nss21-Sep-02 2:37 
GeneralRe: shared memory and MFC Pin
Pavel Klocek21-Sep-02 2:47
Pavel Klocek21-Sep-02 2:47 
GeneralRe: shared memory and MFC Pin
Joaquín M López Muñoz21-Sep-02 8:25
Joaquín M López Muñoz21-Sep-02 8:25 
GeneralHeader file needed Pin
Ghasrfakhri20-Sep-02 21:16
Ghasrfakhri20-Sep-02 21:16 
GeneralRe: Header file needed Pin
Michael Dunn20-Sep-02 21:25
sitebuilderMichael Dunn20-Sep-02 21: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.