Click here to Skip to main content
15,904,346 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Exec under windows Pin
jschell13-Jul-13 11:03
jschell13-Jul-13 11:03 
QuestionLoading two versions of Common Controls Pin
Jonathan Davies12-Jul-13 1:35
Jonathan Davies12-Jul-13 1:35 
AnswerRe: Loading two versions of Common Controls Pin
Randor 12-Jul-13 15:01
professional Randor 12-Jul-13 15:01 
GeneralRe: Loading two versions of Common Controls Pin
Jonathan Davies12-Jul-13 23:33
Jonathan Davies12-Jul-13 23:33 
GeneralRe: Loading two versions of Common Controls Pin
Jonathan Davies13-Jul-13 9:05
Jonathan Davies13-Jul-13 9:05 
GeneralRe: Loading two versions of Common Controls Pin
Jonathan Davies14-Jul-13 5:25
Jonathan Davies14-Jul-13 5:25 
QuestionCStringArray vs. CArray<CString> Pin
hans.sch11-Jul-13 5:33
hans.sch11-Jul-13 5:33 
AnswerRe: CStringArray vs. CArray<CString> Pin
pasztorpisti11-Jul-13 6:25
pasztorpisti11-Jul-13 6:25 
I have never mastered the usage of MFC container classes but I have an advice: support only unicode unless you are forced to support ansi. WinNT uses unicode/UTF16 inside, the codepaging/ansi api is just heritage from older windows versions. Supporting both is just a waste of time and unecessary complication if you don't have to support Win9x.

EDIT: Regarding the difference between CStringArray and CArray<CString...> I have a tip: The old versions of MFC didn't contain any templated containers, those mfc versions had only some non-template containers for a few types and CStringArray was one of them (among the others like CByteArray). I guess CStringArray exists just because of backward compatibility. CString didn't have reference counting in some older versions of MFC so in theory it is possible for a specialized CStringArray to reallocate the array memory without copying strings if CStringArray knows the internal implementation of CString, but a templated CArray has to work with copying/deleting. With reference counting a general CArray can do a relatively good job and with today's move ctors it can be even better if MFC supports it.
GeneralRe: CStringArray vs. CArray<CString> Pin
hans.sch11-Jul-13 6:43
hans.sch11-Jul-13 6:43 
GeneralRe: CStringArray vs. CArray<CString> Pin
pasztorpisti11-Jul-13 8:21
pasztorpisti11-Jul-13 8:21 
GeneralRe: CStringArray vs. CArray<CString> Pin
hans.sch11-Jul-13 9:14
hans.sch11-Jul-13 9:14 
GeneralRe: CStringArray vs. CArray<CString> Pin
pasztorpisti11-Jul-13 9:29
pasztorpisti11-Jul-13 9:29 
GeneralRe: CStringArray vs. CArray<CString> Pin
hans.sch11-Jul-13 10:34
hans.sch11-Jul-13 10:34 
GeneralRe: CStringArray vs. CArray<CString> Pin
pasztorpisti11-Jul-13 13:01
pasztorpisti11-Jul-13 13:01 
AnswerRe: CStringArray vs. CArray<CString> Pin
Joe Woodbury15-Jul-13 12:00
professionalJoe Woodbury15-Jul-13 12:00 
QuestionThe Serical Port Question? Pin
dave62112711-Jul-13 0:27
dave62112711-Jul-13 0:27 
AnswerRe: The Serical Port Question? Pin
«_Superman_»11-Jul-13 1:19
professional«_Superman_»11-Jul-13 1:19 
GeneralRe: The Serical Port Question? Pin
dave62112711-Jul-13 2:43
dave62112711-Jul-13 2:43 
GeneralRe: The Serical Port Question? Pin
Erudite_Eric11-Jul-13 6:06
Erudite_Eric11-Jul-13 6:06 
GeneralRe: The Serical Port Question? Pin
dave62112711-Jul-13 15:15
dave62112711-Jul-13 15:15 
AnswerRe: The Serical Port Question? Pin
Erudite_Eric11-Jul-13 6:08
Erudite_Eric11-Jul-13 6:08 
GeneralRe: The Serical Port Question? Pin
dave62112711-Jul-13 15:29
dave62112711-Jul-13 15:29 
GeneralRe: The Serical Port Question? Pin
Erudite_Eric11-Jul-13 20:59
Erudite_Eric11-Jul-13 20:59 
GeneralRe: The Serical Port Question? Pin
dave62112712-Jul-13 5:35
dave62112712-Jul-13 5:35 
QuestionCompile error caused from big header file Pin
andreas049-Jul-13 22:02
andreas049-Jul-13 22:02 

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.