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

C / C++ / MFC

 
GeneralRe: Terminate process Pin
David Crow24-Feb-05 10:25
David Crow24-Feb-05 10:25 
GeneralRe: Terminate process Pin
superstar441024-Feb-05 10:35
susssuperstar441024-Feb-05 10:35 
GeneralRe: Terminate process Pin
David Crow24-Feb-05 10:38
David Crow24-Feb-05 10:38 
GeneralRe: Terminate process Pin
superstar441024-Feb-05 11:00
susssuperstar441024-Feb-05 11:00 
GeneralRe: Terminate process Pin
David Crow24-Feb-05 16:11
David Crow24-Feb-05 16:11 
Generalpopulating a CListCtrl which is inside a Dialog Pin
lino_i24-Feb-05 7:57
lino_i24-Feb-05 7:57 
GeneralRe: populating a CListCtrl which is inside a Dialog Pin
David Crow24-Feb-05 8:05
David Crow24-Feb-05 8:05 
GeneralRe: populating a CListCtrl which is inside a Dialog Pin
lino_i24-Feb-05 8:15
lino_i24-Feb-05 8:15 
GeneralRe: populating a CListCtrl which is inside a Dialog Pin
David Crow24-Feb-05 8:30
David Crow24-Feb-05 8:30 
GeneralRe: populating a CListCtrl which is inside a Dialog Pin
lino_i24-Feb-05 8:40
lino_i24-Feb-05 8:40 
GeneralRe: populating a CListCtrl which is inside a Dialog Pin
David Crow24-Feb-05 9:18
David Crow24-Feb-05 9:18 
GeneralRe: populating a CListCtrl which is inside a Dialog Pin
Anonymous24-Feb-05 9:22
Anonymous24-Feb-05 9:22 
GeneralRe: populating a CListCtrl which is inside a Dialog Pin
David Crow24-Feb-05 9:31
David Crow24-Feb-05 9:31 
GeneralRe: populating a CListCtrl which is inside a Dialog Pin
Anonymous24-Feb-05 9:42
Anonymous24-Feb-05 9:42 
GeneralRe: populating a CListCtrl which is inside a Dialog Pin
David Crow24-Feb-05 9:53
David Crow24-Feb-05 9:53 
GeneralRe: populating a CListCtrl which is inside a Dialog Pin
lino_i24-Feb-05 10:19
lino_i24-Feb-05 10:19 
GeneralRe: populating a CListCtrl which is inside a Dialog Pin
David Crow24-Feb-05 10:26
David Crow24-Feb-05 10:26 
GeneralRe: populating a CListCtrl which is inside a Dialog Pin
Aamir Butt25-Feb-05 0:45
Aamir Butt25-Feb-05 0:45 
GeneralRe: populating a CListCtrl which is inside a Dialog Pin
David Crow25-Feb-05 2:23
David Crow25-Feb-05 2:23 
GeneralRe: populating a CListCtrl which is inside a Dialog Pin
Aamir Butt27-Feb-05 18:07
Aamir Butt27-Feb-05 18:07 
GeneralOwner Draw Menus without MFC Pin
r3dqu33n24-Feb-05 7:53
r3dqu33n24-Feb-05 7:53 
GeneralRe: Owner Draw Menus without MFC Pin
PJ Arends24-Feb-05 16:52
professionalPJ Arends24-Feb-05 16:52 
GeneralReally Tricky situation with ODBC and FlexGrids Pin
ur_unholyness24-Feb-05 6:53
ur_unholyness24-Feb-05 6:53 
GeneralUnicode in CCommandLineInfo Pin
Konrad Windszus24-Feb-05 6:18
Konrad Windszus24-Feb-05 6:18 
Hello,
I'm quite irritated by the source and the MSDN Library for CCommandLineInfo. For the documentation of ParseParam it says:

The framework calls this function to parse/interpret individual parameters from the command line. The second version is only available in Unicode projects.<br />
<br />
virtual void ParseParam(<br />
   const char* pszParam,<br />
   BOOL bFlag,<br />
   BOOL bLast<br />
);<br />
virtual void ParseParam(<br />
   const TCHAR* pszParam, <br />
   BOOL bFlag,<br />
   BOOL bLast<br />
);


But in the header I find the following declaration:

// plain char* version on UNICODE for source-code backwards compatibility<br />
	virtual void ParseParam(const TCHAR* pszParam, BOOL bFlag, BOOL bLast);<br />
#ifdef _UNICODE<br />
	virtual void ParseParam(const char* pszParam, BOOL bFlag, BOOL bLast);<br />
#endif


It is the other way round. Using a char* in Unicode projects and TCHAR* in multibyte projects???That doesn't make sense to me because then one declaration would be enough (TCHAR is actually a char in multibyte projects). But after debugging it with Visul C++ 7.1 it seemed that the code of the MFC doesn't belong to the used MFC library, because independent on wether I build Unicode (with _UNICODE and UNICODE defined) or not the ParseParam with TCHAR is always used. Is this correct?
I ask because I want to extend CCommandLineInfo for my own parameters and I don't know which declaration of ParseParam I have to derive. I will build my app as Unicode as well as multibyte string executable.
Could someone help me in this issue.
Thanks in advance Konrad
GeneralRe: Unicode in CCommandLineInfo Pin
PJ Arends24-Feb-05 8:06
professionalPJ Arends24-Feb-05 8:06 

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.