Click here to Skip to main content
14,774,665 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Member 1457555619-Sep-19 7:37
MemberMember 1457555619-Sep-19 7:37 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Victor Nijegorodov19-Sep-19 9:12
MemberVictor Nijegorodov19-Sep-19 9:12 
AnswerRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
David Crow19-Sep-19 7:47
MemberDavid Crow19-Sep-19 7:47 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Member 1457555619-Sep-19 7:50
MemberMember 1457555619-Sep-19 7:50 
GeneralRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
Victor Nijegorodov19-Sep-19 9:09
MemberVictor Nijegorodov19-Sep-19 9:09 
SuggestionRe: MFC VC++ Repopulating the ClistCtrl after database is updated through dialog Pin
David Crow19-Sep-19 10:29
MemberDavid Crow19-Sep-19 10:29 
QuestionDetermining length of Switch compare Pin
ForNow18-Sep-19 16:45
MemberForNow18-Sep-19 16:45 
AnswerRe: Determining length of Switch compare Pin
Peter_in_278018-Sep-19 17:49
professionalPeter_in_278018-Sep-19 17: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 2:32
MemberForNow19-Sep-19 2:32 
AnswerRe: Determining length of Switch compare Pin
Richard MacCutchan18-Sep-19 21:55
mveRichard MacCutchan18-Sep-19 21:55 
GeneralRe: Determining length of Switch compare Pin
ForNow19-Sep-19 2:32
MemberForNow19-Sep-19 2:32 
AnswerRe: Determining length of Switch compare Pin
Stefan_Lang19-Sep-19 3:23
mveStefan_Lang19-Sep-19 3:23 
GeneralRe: Determining length of Switch compare Pin
ForNow19-Sep-19 5:06
MemberForNow19-Sep-19 5:06 
AnswerRe: Determining length of Switch compare Pin
leon de boer19-Sep-19 5:38
Memberleon de boer19-Sep-19 5:38 
GeneralRe: Determining length of Switch compare Pin
ForNow19-Sep-19 6:11
MemberForNow19-Sep-19 6:11 
GeneralRe: Determining length of Switch compare Pin
leon de boer28-Sep-19 15:57
Memberleon de boer28-Sep-19 15:57 
QuestionC++ string assignment to struct Pin
Fotsing18-Sep-19 12:54
MemberFotsing18-Sep-19 12:54 
AnswerRe: C++ string assignment to struct Pin
Richard MacCutchan18-Sep-19 21:26
mveRichard MacCutchan18-Sep-19 21:26 
GeneralRe: C++ string assignment to struct Pin
Fotsing18-Sep-19 23:33
MemberFotsing18-Sep-19 23:33 
GeneralRe: C++ string assignment to struct Pin
Stefan_Lang19-Sep-19 3:12
mveStefan_Lang19-Sep-19 3:12 
GeneralRe: C++ string assignment to struct Pin
Fotsing19-Sep-19 14:06
MemberFotsing19-Sep-19 14:06 
AnswerRe: C++ string assignment to struct Pin
Victor Nijegorodov18-Sep-19 21:30
MemberVictor Nijegorodov18-Sep-19 21:30 
GeneralRe: C++ string assignment to struct Pin
Fotsing18-Sep-19 23:28
MemberFotsing18-Sep-19 23:28 
AnswerRe: C++ string assignment to struct Pin
CPallini18-Sep-19 22:01
mveCPallini18-Sep-19 22:01 
QuestionMFC VC++ Pin
Member 1457555617-Sep-19 21:42
MemberMember 1457555617-Sep-19 21: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.