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

C / C++ / MFC

 
GeneralRe: C: warning: excess elements in array initializer Pin
k505431-Aug-17 12:21
mvek505431-Aug-17 12:21 
GeneralRe: C: warning: excess elements in array initializer Pin
Richard Andrew x6431-Aug-17 12:23
professionalRichard Andrew x6431-Aug-17 12:23 
GeneralRe: C: warning: excess elements in array initializer Pin
k505431-Aug-17 12:47
mvek505431-Aug-17 12:47 
GeneralRe: C: warning: excess elements in array initializer Pin
Jochen Arndt31-Aug-17 13:14
professionalJochen Arndt31-Aug-17 13:14 
QuestionError deleting first column in CListCtrl Pin
Member 86892625-Aug-17 10:09
Member 86892625-Aug-17 10:09 
AnswerRe: Error deleting first column in CListCtrl Pin
Rick York25-Aug-17 12:35
mveRick York25-Aug-17 12:35 
GeneralRe: Error deleting first column in CListCtrl Pin
Member 86892626-Aug-17 11:00
Member 86892626-Aug-17 11:00 
QuestionRe: Error deleting first column in CListCtrl Pin
David Crow25-Aug-17 16:41
David Crow25-Aug-17 16:41 
SuggestionRe: Error deleting first column in CListCtrl Pin
Jochen Arndt25-Aug-17 22:31
professionalJochen Arndt25-Aug-17 22:31 
AnswerRe: Error deleting first column in CListCtrl Pin
Victor Nijegorodov27-Aug-17 7:51
Victor Nijegorodov27-Aug-17 7:51 
GeneralRe: Error deleting first column in CListCtrl Pin
Member 8689264-Sep-17 0:01
Member 8689264-Sep-17 0:01 
AnswerRe: Error deleting first column in CListCtrl Pin
Victor Nijegorodov27-Aug-17 7:55
Victor Nijegorodov27-Aug-17 7:55 
QuestionDebug Assertion in Release wrong version of MFC Shared DLL Pin
ForNow24-Aug-17 13:44
ForNow24-Aug-17 13:44 
AnswerRe: Debug Assertion in Release wrong version of MFC Shared DLL Pin
leon de boer24-Aug-17 19:15
leon de boer24-Aug-17 19:15 
GeneralRe: Debug Assertion in Release wrong version of MFC Shared DLL Pin
ForNow24-Aug-17 20:32
ForNow24-Aug-17 20:32 
AnswerRe: Debug Assertion in Release wrong version of MFC Shared DLL Pin
Jochen Arndt24-Aug-17 21:13
professionalJochen Arndt24-Aug-17 21:13 
GeneralRe: Debug Assertion in Release wrong version of MFC Shared DLL Pin
ForNow25-Aug-17 2:26
ForNow25-Aug-17 2:26 
GeneralRe: Debug Assertion in Release wrong version of MFC Shared DLL Pin
Jochen Arndt25-Aug-17 2:41
professionalJochen Arndt25-Aug-17 2:41 
GeneralRe: Debug Assertion in Release wrong version of MFC Shared DLL Pin
ForNow25-Aug-17 2:54
ForNow25-Aug-17 2:54 
GeneralRe: Debug Assertion in Release wrong version of MFC Shared DLL Pin
Jochen Arndt25-Aug-17 3:08
professionalJochen Arndt25-Aug-17 3:08 
Quote:
I am quite sure the reason I got an assertion was because I did a SetDlgItemText without some how creating a m_hWnd
That is very likely.

ForNow wrote:
On more thing should assert only be used in "debug"
Just read the documentation:
The assert macro is enabled in both the release and debug versions of the C run-time libraries when NDEBUG is not defined. When NDEBUG is defined, the macro is available but does not evaluate its argument and has no effect. When it is enabled, the assert macro calls _wassert for its implementation. Other assertion macros, _ASSERT, _ASSERTE and _ASSERT_EXPR, are also available, but they only evaluate the expressions passed to them when the _DEBUG macro has been defined and when they are in code linked with the debug version of the C run-time libraries.
My tip: Use them often (e.g. on top of functions for parameter checking and with function return values when there is no error handling). They are simply ignored in release builds but can save you a lot of debugging time.
QuestionCreating Custom Controls in MFC Pin
Bram van Kampen23-Aug-17 14:01
Bram van Kampen23-Aug-17 14:01 
AnswerRe: Creating Custom Controls in MFC Pin
Rick York23-Aug-17 15:53
mveRick York23-Aug-17 15:53 
AnswerRe: Creating Custom Controls in MFC Pin
Richard MacCutchan23-Aug-17 21:11
mveRichard MacCutchan23-Aug-17 21:11 
AnswerRe: Creating Custom Controls in MFC Pin
Jochen Arndt23-Aug-17 21:47
professionalJochen Arndt23-Aug-17 21:47 
QuestionMFC - painting on a secondary modeless dialog with OnPaint() Pin
Bonobo818-Aug-17 3:52
Bonobo818-Aug-17 3:52 

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.