Click here to Skip to main content
15,900,108 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: vector and Template confusion Pin
T Bones Jones24-May-22 5:08
T Bones Jones24-May-22 5:08 
GeneralRe: vector and Template confusion Pin
Richard MacCutchan24-May-22 5:11
mveRichard MacCutchan24-May-22 5:11 
QuestionApplication check for virus Pin
Gopi Nath23-May-22 1:18
Gopi Nath23-May-22 1:18 
AnswerRe: Application check for virus Pin
Richard MacCutchan23-May-22 1:25
mveRichard MacCutchan23-May-22 1:25 
AnswerRe: Application check for virus Pin
Dave Kreskowiak23-May-22 2:16
mveDave Kreskowiak23-May-22 2:16 
AnswerRe: Application check for virus Pin
Gopi Nath23-May-22 18:30
Gopi Nath23-May-22 18:30 
QuestionSetting Font and Text Colors items of ComboBox Pin
ForNow22-May-22 12:32
ForNow22-May-22 12:32 
AnswerRe: Setting Font and Text Colors items of ComboBox Solved almost Pin
ForNow22-May-22 13:28
ForNow22-May-22 13:28 
GeneralRe: Setting Font and Text Colors items of ComboBox Solved almost Pin
Victor Nijegorodov22-May-22 20:14
Victor Nijegorodov22-May-22 20:14 
GeneralRe: Setting Font and Text Colors items of ComboBox Solved almost Pin
ForNow22-May-22 22:26
ForNow22-May-22 22:26 
QuestionAccessing and displaying semaphore count Pin
coco24322-May-22 1:42
coco24322-May-22 1:42 
AnswerRe: Accessing and displaying semaphore count Pin
Mircea Neacsu22-May-22 2:02
Mircea Neacsu22-May-22 2:02 
GeneralRe: Accessing and displaying semaphore count Pin
coco24322-May-22 2:48
coco24322-May-22 2:48 
GeneralRe: Accessing and displaying semaphore count Pin
Mircea Neacsu22-May-22 2:51
Mircea Neacsu22-May-22 2:51 
GeneralRe: Accessing and displaying semaphore count Pin
Richard Andrew x6422-May-22 3:04
professionalRichard Andrew x6422-May-22 3:04 
GeneralRe: Accessing and displaying semaphore count Pin
coco24322-May-22 5:07
coco24322-May-22 5:07 
AnswerRe: Accessing and displaying semaphore count Pin
Victor Nijegorodov22-May-22 6:15
Victor Nijegorodov22-May-22 6:15 
GeneralRe: Accessing and displaying semaphore count Pin
coco24322-May-22 7:17
coco24322-May-22 7:17 
QuestionOwnerDraw Combox Pin
ForNow18-May-22 14:28
ForNow18-May-22 14:28 
AnswerRe: OwnerDraw Combox Pin
Victor Nijegorodov18-May-22 21:13
Victor Nijegorodov18-May-22 21:13 
QuestionC++ code for Gomoku Pin
Lesego Molelekoa18-May-22 5:58
Lesego Molelekoa18-May-22 5:58 
AnswerRe: C++ code for Gomoku Pin
Richard MacCutchan18-May-22 6:01
mveRichard MacCutchan18-May-22 6:01 
AnswerRe: C++ code for Gomoku Pin
Victor Nijegorodov18-May-22 9:25
Victor Nijegorodov18-May-22 9:25 
QuestionSecurity Check Stack overflow compiler GS option Pin
ForNow16-May-22 2:16
ForNow16-May-22 2:16 
AnswerRe: Security Check Stack overflow compiler GS option Pin
Victor Nijegorodov16-May-22 3:08
Victor Nijegorodov16-May-22 3:08 
I never saw such an error/warning in my code.
What I see in your code snippet (and it is was I don't like) is this expression:
C++
void  ownerdraw(exitparmptr parmptr)
{ 
    LPDRAWITEMSTRUCT pdi = parmptr->pdi;
What happens when the function argument parmptr is nullptr? Yes, the program crash!

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.