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

C / C++ / MFC

 
GeneralRe: Closing VC++ exe from another application Pin
Nish Nishant12-Jun-02 14:32
sitebuilderNish Nishant12-Jun-02 14:32 
GeneralModeless dialog Pin
Gary Kirkham12-Jun-02 9:06
Gary Kirkham12-Jun-02 9:06 
GeneralRe: Modeless dialog Pin
Rickard Andersson2012-Jun-02 9:20
Rickard Andersson2012-Jun-02 9:20 
GeneralRe: Modeless dialog Pin
Nish Nishant12-Jun-02 14:36
sitebuilderNish Nishant12-Jun-02 14:36 
GeneralRe: Modeless dialog Pin
Gary Kirkham13-Jun-02 2:31
Gary Kirkham13-Jun-02 2:31 
GeneralRe: Modeless dialog Pin
Chris Losinger13-Jun-02 4:34
professionalChris Losinger13-Jun-02 4:34 
GeneralRe: Modeless dialog Pin
Gary Kirkham13-Jun-02 10:27
Gary Kirkham13-Jun-02 10:27 
GeneralQuestion of style Pin
Navin12-Jun-02 8:28
Navin12-Jun-02 8:28 
Let's say you are using MFC, and have a function that accepts a constant string as its argument. Which is better style:

1. int SomeFunction(LPCTSTR stringArgument);
2. int SomeFunction(const CString &stringArgument);

Most MFC functions use a form of number 1, but it seems number 2 is more "object oriented", at least by appearance. I guess number 2 would have to create a CString object on the fly if you specifiy a constant string, so there may be a performance difference..?

Or am I just being anal and it doesn't make that much of a difference in real life? Big Grin | :-D



No generalization is 100% true.
Not even this one.
GeneralRe: Question of style Pin
dazinith12-Jun-02 8:34
dazinith12-Jun-02 8:34 
GeneralRe: Question of style Pin
Navin12-Jun-02 9:14
Navin12-Jun-02 9:14 
GeneralRe: Question of style Pin
NormDroid12-Jun-02 9:44
professionalNormDroid12-Jun-02 9:44 
GeneralRe: Question of style Pin
Navin12-Jun-02 10:06
Navin12-Jun-02 10:06 
GeneralRe: Question of style Pin
Chris Losinger12-Jun-02 10:04
professionalChris Losinger12-Jun-02 10:04 
GeneralRe: Question of style Pin
Shog912-Jun-02 13:21
sitebuilderShog912-Jun-02 13:21 
GeneralRe: Question of style Pin
Chris Losinger12-Jun-02 13:26
professionalChris Losinger12-Jun-02 13:26 
GeneralRe: Question of style Pin
Shog912-Jun-02 13:28
sitebuilderShog912-Jun-02 13:28 
GeneralRe: Question of style Pin
redeemer12-Jun-02 10:23
redeemer12-Jun-02 10:23 
GeneralRe: Question of style Pin
Navin12-Jun-02 15:41
Navin12-Jun-02 15:41 
GeneralRe: Ok, here is the run down... Pin
Tim Smith12-Jun-02 16:11
Tim Smith12-Jun-02 16:11 
Generalhelp Pin
12-Jun-02 8:09
suss12-Jun-02 8:09 
GeneralRe: help Pin
Michael P Butler12-Jun-02 11:16
Michael P Butler12-Jun-02 11:16 
GeneralReadFile from Comm port Pin
JohnnyG12-Jun-02 7:19
JohnnyG12-Jun-02 7:19 
GeneralRe: ReadFile from Comm port Pin
JohnnyG12-Jun-02 10:16
JohnnyG12-Jun-02 10:16 
GeneralWindows Messaging Timing and Threads Pin
SanShou12-Jun-02 6:41
SanShou12-Jun-02 6:41 
GeneralRe: Windows Messaging Timing and Threads Pin
NormDroid12-Jun-02 9:40
professionalNormDroid12-Jun-02 9:40 

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.