Click here to Skip to main content
15,909,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General[Solved] VC6 and AMD Dual Core CPU problem [modified] Pin
followait19-Feb-08 5:30
followait19-Feb-08 5:30 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
Maximilien19-Feb-08 6:48
Maximilien19-Feb-08 6:48 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
followait19-Feb-08 15:01
followait19-Feb-08 15:01 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
Maximilien19-Feb-08 15:13
Maximilien19-Feb-08 15:13 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
followait19-Feb-08 15:43
followait19-Feb-08 15:43 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
Maxwell Chen19-Feb-08 17:25
Maxwell Chen19-Feb-08 17:25 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
followait19-Feb-08 17:38
followait19-Feb-08 17:38 
QuestionRe: VC6 and AMD Dual Core CPU problem [modified] Pin
Maxwell Chen19-Feb-08 17:56
Maxwell Chen19-Feb-08 17:56 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
followait19-Feb-08 23:08
followait19-Feb-08 23:08 
QuestionRe: VC6 and AMD Dual Core CPU problem Pin
David Crow19-Feb-08 17:06
David Crow19-Feb-08 17:06 
GeneralRe: VC6 and AMD Dual Core CPU problem Pin
followait19-Feb-08 17:36
followait19-Feb-08 17:36 
QuestionBest Code Signing Certificate? Pin
Stick^19-Feb-08 4:27
Stick^19-Feb-08 4:27 
GeneralRe: Best Code Signing Certificate? Pin
Peter Weyzen19-Feb-08 8:55
Peter Weyzen19-Feb-08 8:55 
GeneralRe: Best Code Signing Certificate? Pin
Mark Salsbery19-Feb-08 9:54
Mark Salsbery19-Feb-08 9:54 
GeneralRe: Best Code Signing Certificate? Pin
Chris Losinger19-Feb-08 10:02
professionalChris Losinger19-Feb-08 10:02 
GeneralRe: Best Code Signing Certificate? Pin
James R. Twine21-Feb-08 6:54
James R. Twine21-Feb-08 6:54 
QuestionHow to get keyboard layout? Pin
Manthis19-Feb-08 3:02
Manthis19-Feb-08 3:02 
GeneralRe: How to get keyboard layout? [modified] Pin
Rajkumar R19-Feb-08 3:33
Rajkumar R19-Feb-08 3:33 
GeneralRe: How to get keyboard layout? Pin
Manthis19-Feb-08 3:52
Manthis19-Feb-08 3:52 
GeneralRe: How to get keyboard layout? Pin
Manthis22-Feb-08 1:46
Manthis22-Feb-08 1:46 
GeneralQuestion about void* casting ( what wrong with my code ... ? ) Pin
Yanshof19-Feb-08 2:37
Yanshof19-Feb-08 2:37 
GeneralRe: Question about void* casting ( what wrong with my code ... ? ) Pin
CPallini19-Feb-08 2:51
mveCPallini19-Feb-08 2:51 
GeneralRe: Question about void* casting ( what wrong with my code ... ? ) Pin
Rajkumar R19-Feb-08 2:54
Rajkumar R19-Feb-08 2:54 
GeneralRe: Question about void* casting ( what wrong with my code ... ? ) Pin
cp987619-Feb-08 10:33
cp987619-Feb-08 10:33 
AnswerRe: Question about void* casting ( what wrong with my code ... ? ) Pin
Rajkumar R19-Feb-08 17:26
Rajkumar R19-Feb-08 17:26 
good link dude but when i just opened my eyes looks this,

"If a string is an input to a function, in most cases it is best to declare the string function parameter as LPCTSTR. Convert to a CString object as necessary within the function using constructors and assignment operators. If the string contents are to be changed by a function, declare the parameter as a nonconstant CString reference (CString&)."

that if u want to modify a CString, CString &.

LPCTSTR is for const readonly object. And i don't see it is the recommended way, it is one of the way.

when i want to pass the readonly object to a MFC C++ function, i prefer "const CString &" than LPCTSTR as it requires to call constructor and destructor additionally to get a CString Object and i try to avoid it.

offcource, if i want to pass to a C function, that is not aware of CString, then LPCTSTR or LPTSTR is the fit.

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.