Click here to Skip to main content
15,921,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: hotkeys on a dialog Pin
Iain Clarke, Warrior Programmer20-Feb-03 6:14
Iain Clarke, Warrior Programmer20-Feb-03 6:14 
GeneralRe: hotkeys on a dialog Pin
Qadddd24-Feb-03 4:34
Qadddd24-Feb-03 4:34 
GeneralRe: hotkeys on a dialog Pin
Qadddd24-Feb-03 6:55
Qadddd24-Feb-03 6:55 
GeneralRe: hotkeys on a dialog Pin
Iain Clarke, Warrior Programmer25-Feb-03 0:41
Iain Clarke, Warrior Programmer25-Feb-03 0:41 
GeneralRe: hotkeys on a dialog Pin
Qadddd26-Feb-03 23:20
Qadddd26-Feb-03 23:20 
GeneralPort forwarding Pin
User 988520-Feb-03 4:59
User 988520-Feb-03 4:59 
GeneralRe: Port forwarding Pin
User 988520-Feb-03 5:10
User 988520-Feb-03 5:10 
GeneralRe: Port forwarding Pin
Anonymous20-Feb-03 10:01
Anonymous20-Feb-03 10:01 
GeneralRe: Port forwarding Pin
User 988520-Feb-03 10:12
User 988520-Feb-03 10:12 
GeneralRe: Port forwarding Pin
User 988520-Feb-03 10:13
User 988520-Feb-03 10:13 
GeneralSlider control Pin
jimNLX20-Feb-03 4:35
jimNLX20-Feb-03 4:35 
GeneralRe: Slider control Pin
valikac20-Feb-03 7:32
valikac20-Feb-03 7:32 
GeneralDeriving MFC Class for DLL, instantiating in Visual Basic Pin
DigitalSabre20-Feb-03 4:31
DigitalSabre20-Feb-03 4:31 
GeneralRe: Deriving MFC Class for DLL, instantiating in Visual Basic Pin
Anna-Jayne Metcalfe20-Feb-03 4:53
Anna-Jayne Metcalfe20-Feb-03 4:53 
Generalget keyboard events Pin
Willem B20-Feb-03 4:21
Willem B20-Feb-03 4:21 
GeneralRe: get keyboard events Pin
Michael Shuster20-Feb-03 4:50
Michael Shuster20-Feb-03 4:50 
GeneralRe: get keyboard events Pin
HENDRIK R20-Feb-03 4:52
HENDRIK R20-Feb-03 4:52 
GeneralRe: get keyboard events Pin
Willem B20-Feb-03 21:11
Willem B20-Feb-03 21:11 
GeneralGetting focus for modeless dialogs in a controlbar. Pin
Maximilien20-Feb-03 4:17
Maximilien20-Feb-03 4:17 
GeneralProb converting Hex to CString Pin
afender20-Feb-03 4:14
afender20-Feb-03 4:14 
GeneralRe: Prob converting Hex to CString Pin
Ryan_Roberts20-Feb-03 4:26
Ryan_Roberts20-Feb-03 4:26 
GeneralRe: Prob converting Hex to CString Pin
afender20-Feb-03 5:26
afender20-Feb-03 5:26 
GeneralRe: Prob converting Hex to CString Pin
David Chamberlain20-Feb-03 6:05
David Chamberlain20-Feb-03 6:05 
GeneralRe: Prob converting Hex to CString Pin
Ted Ferenc20-Feb-03 6:16
Ted Ferenc20-Feb-03 6:16 
GeneralRe: Prob converting Hex to CString Pin
Michael Dunn20-Feb-03 7:23
sitebuilderMichael Dunn20-Feb-03 7:23 
The %x format takes an unsigned int, not a char, so Format() is reading 4 bytes off the stack when you only passed 1 byte of parameters.
Change it to

m_test.Format("0x%x", (unsigned) sBuffer[0]);

And to be extra-spiffy, you can use %#x to automatically add the 0x prefix. Cool | :cool:

--Mike--
The Internet is a place where absolutely nothing happens.
  -- Strong Bad

1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm


Hi! I'm a sig virus. Attach me to the end of your sig to help me take over the world!

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.