Click here to Skip to main content
15,914,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
I never use LPTSTR. I may have a TCHAR array here and there if I need to pass a non-const string to a system API. But I never use functions that take LPTSTR - I'd use a non-const reference to a CString in that case.

For clarification, what I meant about a parameter creating a temporary CString object is in this scenario. I guess it would only matter, as Chris Losinger said, if you pass in great big strings or are in a loop or something like that.

void SomeFunc(const CString &Green Alien | [Alien] )
{
...
}

...
// This will create a temporary CString to pass into
// SomeFunc.
SomeFunc("This is not a C-String!");

// But this won't.
CString Green Alien | [Alien] = "This one is.";
SomeFunc(Green Alien | [Alien] );

Yes, I know it is against C++ standards to use an icon as a variable name. Smile | :)


No generalization is 100% true.
Not even this one.
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 
GeneralCallbakc Functions Pin
arthivjii12-Jun-02 6:36
arthivjii12-Jun-02 6:36 
GeneralRe: Callbakc Functions Pin
Chris Losinger12-Jun-02 6:55
professionalChris Losinger12-Jun-02 6:55 
GeneralRe: Callbakc Functions Pin
Alexandru Savescu12-Jun-02 8:43
Alexandru Savescu12-Jun-02 8:43 
GeneralRe: Callbakc Functions Pin
Chris Losinger12-Jun-02 9:00
professionalChris Losinger12-Jun-02 9:00 
GeneralInstallshield questions... Pin
Mike Zinni12-Jun-02 5:36
Mike Zinni12-Jun-02 5:36 
GeneralRe: Installshield questions... Pin
Navin12-Jun-02 8:33
Navin12-Jun-02 8:33 
QuestionHi! everybody! How about "graph line printing"? Pin
12-Jun-02 5:41
suss12-Jun-02 5:41 
QuestionHow to fill a vector or a list with data from a file! Pin
JMajors9812-Jun-02 4:50
JMajors9812-Jun-02 4:50 
AnswerRe: How to fill a vector or a list with data from a file! Pin
Chris Losinger12-Jun-02 5:39
professionalChris Losinger12-Jun-02 5:39 
AnswerRe: How to fill a vector or a list with data from a file! Pin
Joaquín M López Muñoz12-Jun-02 11:57
Joaquín M López Muñoz12-Jun-02 11:57 

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.