Click here to Skip to main content
14,333,460 members

C / C++ / MFC

 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Member 1457555619-Sep-19 6:37
memberMember 1457555619-Sep-19 6:37 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Victor Nijegorodov19-Sep-19 8:12
memberVictor Nijegorodov19-Sep-19 8:12 
AnswerRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
David Crow19-Sep-19 6:47
memberDavid Crow19-Sep-19 6:47 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Member 1457555619-Sep-19 6:50
memberMember 1457555619-Sep-19 6:50 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Victor Nijegorodov19-Sep-19 8:09
memberVictor Nijegorodov19-Sep-19 8:09 
SuggestionRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
David Crow19-Sep-19 9:29
memberDavid Crow19-Sep-19 9:29 
QuestionDetermining length of Switch compare Pin
ForNow18-Sep-19 15:45
memberForNow18-Sep-19 15:45 
AnswerRe: Determining length of Switch compare Pin
Peter_in_278018-Sep-19 16:49
professionalPeter_in_278018-Sep-19 16:49 
The switch argument needs to be a "simple" type, so you should glue your two bytes together into a 16-bit value. You'll need to do something similar with your case values too.

Something like

unsigned short testval = itshort[0] | (itshort[1] << 8);
switch (testval)
  {
    case value1[0] | (value1[1] << 8):
        ....


It might be easier to just use unsigned short all round.

Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

GeneralRe: Determining length of Switch compare Pin
ForNow19-Sep-19 1:32
memberForNow19-Sep-19 1:32 
AnswerRe: Determining length of Switch compare Pin
Richard MacCutchan18-Sep-19 20:55
protectorRichard MacCutchan18-Sep-19 20:55 
GeneralRe: Determining length of Switch compare Pin
ForNow19-Sep-19 1:32
memberForNow19-Sep-19 1:32 
AnswerRe: Determining length of Switch compare Pin
Stefan_Lang19-Sep-19 2:23
memberStefan_Lang19-Sep-19 2:23 
GeneralRe: Determining length of Switch compare Pin
ForNow19-Sep-19 4:06
memberForNow19-Sep-19 4:06 
AnswerRe: Determining length of Switch compare Pin
leon de boer19-Sep-19 4:38
memberleon de boer19-Sep-19 4:38 
GeneralRe: Determining length of Switch compare Pin
ForNow19-Sep-19 5:11
memberForNow19-Sep-19 5:11 
GeneralRe: Determining length of Switch compare Pin
leon de boer28-Sep-19 14:57
memberleon de boer28-Sep-19 14:57 
QuestionC++ string assignment to struct Pin
Fotsing18-Sep-19 11:54
memberFotsing18-Sep-19 11:54 
AnswerRe: C++ string assignment to struct Pin
Richard MacCutchan18-Sep-19 20:26
protectorRichard MacCutchan18-Sep-19 20:26 
GeneralRe: C++ string assignment to struct Pin
Fotsing18-Sep-19 22:33
memberFotsing18-Sep-19 22:33 
GeneralRe: C++ string assignment to struct Pin
Stefan_Lang19-Sep-19 2:12
memberStefan_Lang19-Sep-19 2:12 
GeneralRe: C++ string assignment to struct Pin
Fotsing19-Sep-19 13:06
memberFotsing19-Sep-19 13:06 
AnswerRe: C++ string assignment to struct Pin
Victor Nijegorodov18-Sep-19 20:30
memberVictor Nijegorodov18-Sep-19 20:30 
GeneralRe: C++ string assignment to struct Pin
Fotsing18-Sep-19 22:28
memberFotsing18-Sep-19 22:28 
AnswerRe: C++ string assignment to struct Pin
CPallini18-Sep-19 21:01
mveCPallini18-Sep-19 21:01 
QuestionMFC VC++ Pin
Member 1457555617-Sep-19 20:42
memberMember 1457555617-Sep-19 20:42 

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.