Click here to Skip to main content
15,885,365 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting alerts (messagebox) with an integer value Pin
ThatsAlok10-Feb-06 0:45
ThatsAlok10-Feb-06 0:45 
AnswerRe: Getting alerts (messagebox) with an integer value Pin
Cedric Moonen10-Feb-06 0:43
Cedric Moonen10-Feb-06 0:43 
GeneralRe: Getting alerts (messagebox) with an integer value Pin
kk_vp10-Feb-06 0:59
kk_vp10-Feb-06 0:59 
GeneralRe: Getting alerts (messagebox) with an integer value Pin
Cedric Moonen10-Feb-06 1:05
Cedric Moonen10-Feb-06 1:05 
GeneralRe: Getting alerts (messagebox) with an integer value Pin
kk_vp10-Feb-06 1:12
kk_vp10-Feb-06 1:12 
GeneralRe: Getting alerts (messagebox) with an integer value Pin
_anil_10-Feb-06 1:27
_anil_10-Feb-06 1:27 
GeneralRe: Getting alerts (messagebox) with an integer value Pin
toxcct10-Feb-06 1:59
toxcct10-Feb-06 1:59 
GeneralRe: Getting alerts (messagebox) with an integer value Pin
kk_vp10-Feb-06 2:48
kk_vp10-Feb-06 2:48 
Toxcct,

please see the code below :

unsigned char baSlots[6];
MessageBox(m_1E2val); //m_1E2val is member variable of edit
//box with type string
sscanf(m_1E2val,"%x",&baSlots);

now, when I check in debug,

after entering "123456789abc" in the editbox and on reaching the function with the above code,
with MessageBox(m_1E2val), I get correct string whatever I have entered.
but after
sscanf(m_1E2val,"%x",&baSlots)
in the debug window I see baSlots as

[0x0] 0xbc '¼'
[0x1] 0x9a 'š'
[0x2] 0x78 'x'
[0x3] 0x56 'V'
[0x4] 0xcc 'Ì'
[0x5] 0xcc 'Ì'

I am wondering where the 1234 went?



- KK
GeneralRe: Getting alerts (messagebox) with an integer value [edited] Pin
toxcct10-Feb-06 2:57
toxcct10-Feb-06 2:57 
GeneralRe: Getting alerts (messagebox) with an integer value Pin
kk_vp10-Feb-06 3:06
kk_vp10-Feb-06 3:06 
GeneralRe: Getting alerts (messagebox) with an integer value Pin
kk_vp10-Feb-06 3:16
kk_vp10-Feb-06 3:16 
GeneralRe: Getting alerts (messagebox) with an integer value [edited] Pin
toxcct10-Feb-06 3:22
toxcct10-Feb-06 3:22 
QuestionRe: Getting alerts (messagebox) with an integer value Pin
David Crow10-Feb-06 2:57
David Crow10-Feb-06 2:57 
AnswerRe: Getting alerts (messagebox) with an integer value Pin
kk_vp10-Feb-06 3:16
kk_vp10-Feb-06 3:16 
GeneralRe: Getting alerts (messagebox) with an integer value Pin
David Crow10-Feb-06 3:21
David Crow10-Feb-06 3:21 
GeneralRe: Getting alerts (messagebox) with an integer value Pin
toxcct10-Feb-06 3:26
toxcct10-Feb-06 3:26 
GeneralRe: Getting alerts (messagebox) with an integer value Pin
kk_vp10-Feb-06 3:27
kk_vp10-Feb-06 3:27 
QuestionWindow in MDI Pin
Anu_Bala9-Feb-06 23:43
Anu_Bala9-Feb-06 23:43 
AnswerRe: Window in MDI Pin
_anil_9-Feb-06 23:53
_anil_9-Feb-06 23:53 
QuestionXmlCDataSection Pin
swaapu9-Feb-06 23:23
swaapu9-Feb-06 23:23 
AnswerRe: XmlCDataSection Pin
Blake Miller10-Feb-06 4:09
Blake Miller10-Feb-06 4:09 
QuestionAdding new window to SDI Application Pin
Anu_Bala9-Feb-06 23:16
Anu_Bala9-Feb-06 23:16 
QuestionA new window in SDI Pin
Anu_Bala9-Feb-06 23:09
Anu_Bala9-Feb-06 23:09 
AnswerRe: A new window in SDI Pin
Rage10-Feb-06 2:49
professionalRage10-Feb-06 2:49 
QuestionAutomation for MS word Pin
KongHL9-Feb-06 22:39
KongHL9-Feb-06 22:39 

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.