Click here to Skip to main content
15,896,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C: warning: excess elements in array initializer Pin
Richard MacCutchan30-Aug-17 22:39
mveRichard MacCutchan30-Aug-17 22:39 
GeneralRe: C: warning: excess elements in array initializer Pin
Jochen Arndt30-Aug-17 23:15
professionalJochen Arndt30-Aug-17 23:15 
GeneralRe: C: warning: excess elements in array initializer Pin
Richard MacCutchan30-Aug-17 23:30
mveRichard MacCutchan30-Aug-17 23:30 
GeneralRe: C: warning: excess elements in array initializer Pin
Jochen Arndt30-Aug-17 23:59
professionalJochen Arndt30-Aug-17 23:59 
GeneralRe: C: warning: excess elements in array initializer Pin
Richard MacCutchan31-Aug-17 0:47
mveRichard MacCutchan31-Aug-17 0:47 
GeneralRe: C: warning: excess elements in array initializer Pin
Richard Andrew x6431-Aug-17 11:55
professionalRichard Andrew x6431-Aug-17 11:55 
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 
Turn your warning level up .. it will give you uninitialized use warnings. The default is W3 go to W4 or WALL you might get a lot of warnings but saves you headaches Smile | :)
I usually start out W3 when it's getting close to release I crank the setting up and walk thru each warning.
What you are really saying is you have a bad habit of either using uninitialized variables or forgetting to initialize them which will be what your current problem is about. You need to work on getting rid of what is obviously a bad coding habbit.

/MD is the correct selection for the VC runtime library release but usually I go for /MT in release the exe gets bigger but no VC runtime install required on the target machine. Now I assume it follows thru to MFC I write so little on the MFC framework I can't say definitively. But yes usually in release /MD or /MT is the setting you would use the difference as stated, and if the blowup in size is worth not having to distribute the run-time library at all.

Now when VS debugs in release mode it's a quirky thing, as you stated you wanted no debug compilation but the VS IDE still tries to give you debug info. It seems to sort of guess at the line sometimes you will find it out by a line or 2 especially if it has optimized some of the code away. When running outside the IDE I know it only uses the correct DLL because the times I have used DLL distribution I only copy the one DLL for install.
In vino veritas

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 

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.