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

C / C++ / MFC

 
GeneralRe: What is the most annoying little programming error you have made repeatedly, that everyone assumes you already knew, and you went absolutely nuts trying to figure it out? Pin
Baris Kurtlutepe10-Mar-03 21:33
Baris Kurtlutepe10-Mar-03 21:33 
AnswerRe: What is the most annoying little programming error you have made repeatedly, that everyone assumes you already knew, and you went absolutely nuts trying to figure it out? Pin
Taka Muraoka10-Mar-03 13:36
Taka Muraoka10-Mar-03 13:36 
AnswerRe: What is the most annoying little programming error you have made repeatedly, that everyone assumes you already knew, and you went absolutely nuts trying to figure it out? Pin
73Zeppelin10-Mar-03 16:45
73Zeppelin10-Mar-03 16:45 
GeneralRe: What is the most annoying little programming error you have made repeatedly, that everyone assumes you already knew, and you went absolutely nuts trying to figure it out? Pin
RaajaOfSelf10-Mar-03 22:37
RaajaOfSelf10-Mar-03 22:37 
AnswerRe: What is the most annoying little programming error you have made repeatedly, that everyone assumes you already knew, and you went absolutely nuts trying to figure it out? Pin
567890123410-Mar-03 22:54
567890123410-Mar-03 22:54 
GeneralHa Ha, I'm such a nitwit,... Pin
ursus zeta11-Mar-03 6:42
ursus zeta11-Mar-03 6:42 
QuestionConvert CStrings to Null-terminated? Pin
brigham_young10-Mar-03 12:30
brigham_young10-Mar-03 12:30 
AnswerRe: Convert CStrings to Null-terminated? Pin
Dave Bryant10-Mar-03 12:34
Dave Bryant10-Mar-03 12:34 
The LPCTSTR operator returns a constant pointer to the underlying null-terminated string - i.e. you can't change it. It is invoked implicitly by the compiler when a function requires a constant string. GetBuffer() returns a non-const pointer to the underlying string, which you must release when you are finished by calling ReleaseBuffer().

So you can normally just use the LPCTSTR operator unless you need to change the string.

Dave
AnswerRe: Convert CStrings to Null-terminated? Pin
Michael Dunn10-Mar-03 13:02
sitebuilderMichael Dunn10-Mar-03 13:02 
GeneralRe: Convert CStrings to Null-terminated? Pin
Nish Nishant10-Mar-03 13:40
sitebuilderNish Nishant10-Mar-03 13:40 
GeneralRe: Convert CStrings to Null-terminated? Pin
Michael Dunn10-Mar-03 14:43
sitebuilderMichael Dunn10-Mar-03 14:43 
QuestionHelp ?? Pointer to View from Doc? Pin
Obi-Wan-Kenobi10-Mar-03 12:27
Obi-Wan-Kenobi10-Mar-03 12:27 
AnswerRe: Help ?? Pointer to View from Doc? Pin
Dave Bryant10-Mar-03 12:37
Dave Bryant10-Mar-03 12:37 
GeneralRe: Help ?? Pointer to View from Doc? Pin
Obi-Wan-Kenobi10-Mar-03 12:50
Obi-Wan-Kenobi10-Mar-03 12:50 
GeneralRe: Help ?? Pointer to View from Doc? Pin
Dave Bryant10-Mar-03 12:57
Dave Bryant10-Mar-03 12:57 
GeneralRe: Help ?? Pointer to View from Doc? Pin
Obi-Wan-Kenobi10-Mar-03 13:02
Obi-Wan-Kenobi10-Mar-03 13:02 
GeneralRe: Help ?? Pointer to View from Doc? Pin
Dave Bryant10-Mar-03 13:05
Dave Bryant10-Mar-03 13:05 
GeneralRe: Help ?? Pointer to View from Doc? Pin
Obi-Wan-Kenobi10-Mar-03 13:14
Obi-Wan-Kenobi10-Mar-03 13:14 
GeneralRe: Help ?? Pointer to View from Doc? Pin
Brian Shifrin10-Mar-03 13:06
Brian Shifrin10-Mar-03 13:06 
GeneralRe: Help ?? Pointer to View from Doc? Pin
Brian Shifrin10-Mar-03 13:07
Brian Shifrin10-Mar-03 13:07 
GeneralRe: Help ?? Pointer to View from Doc? Pin
Obi-Wan-Kenobi10-Mar-03 13:17
Obi-Wan-Kenobi10-Mar-03 13:17 
GeneralRe: Help ?? Pointer to View from Doc? Pin
Dave Bryant10-Mar-03 13:19
Dave Bryant10-Mar-03 13:19 
AnswerRe: Help ?? Pointer to View from Doc? Pin
Jim A. Johnson10-Mar-03 15:21
Jim A. Johnson10-Mar-03 15:21 
GeneralRe: Help ?? Pointer to View from Doc? Pin
Obi-Wan-Kenobi10-Mar-03 17:54
Obi-Wan-Kenobi10-Mar-03 17:54 
GeneralRe: Help ?? Pointer to View from Doc? Pin
jhwurmbach10-Mar-03 20:43
jhwurmbach10-Mar-03 20:43 

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.