Click here to Skip to main content
16,006,382 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralStreaming into CStrings.. Pin
Bernhard16-Oct-01 5:04
Bernhard16-Oct-01 5:04 
GeneralRe: Streaming into CStrings.. Pin
Joaquín M López Muñoz16-Oct-01 9:35
Joaquín M López Muñoz16-Oct-01 9:35 
GeneralVisual Studio crashes on Windows 2000.. Pin
Kant16-Oct-01 4:53
Kant16-Oct-01 4:53 
GeneralRe: ,Formatting c string and std strings Pin
Jon Salter16-Oct-01 4:51
Jon Salter16-Oct-01 4:51 
GeneralRe: ,Formatting c string and std strings Pin
Bernhard16-Oct-01 4:53
Bernhard16-Oct-01 4:53 
GeneralRe: ,Formatting c string and std strings Pin
Jon Salter16-Oct-01 4:55
Jon Salter16-Oct-01 4:55 
GeneralRe: ,Formatting c string and std strings Pin
Bernhard16-Oct-01 4:59
Bernhard16-Oct-01 4:59 
Generalbasic question Pin
16-Oct-01 4:28
suss16-Oct-01 4:28 
Hi all!! I'm learning C++ and there I'd like somebody to tell me how to properly use the class CString. The problem is that I've a lot of problems with it, when I'm using different CString vars sometimes they screw each others' values. I've noticed that using a property called GetBuffer and ReleaseBuffer, they get fixed.
Could somebody tell me the use of that properties and which is the difference between using MyCStringVar.GetBuffer(iBufferLength) and (LPTSTR)(LPCTSTR)MyCStringVar ?? As far as I know they both return a pointer to the string.

I know it might be a basic question but if somebody could answer it I'd really appreciate it, thanks.

GeneralRe: basic question Pin
Rob Caldecott16-Oct-01 4:44
Rob Caldecott16-Oct-01 4:44 
GeneralRe: basic question Pin
16-Oct-01 4:57
suss16-Oct-01 4:57 
GeneralRe: basic question Pin
Alvaro Mendez16-Oct-01 6:24
Alvaro Mendez16-Oct-01 6:24 
GeneralRe: One rule.... Pin
Masaaki Onishi16-Oct-01 6:40
Masaaki Onishi16-Oct-01 6:40 
GeneralRe: basic question Pin
peterchen16-Oct-01 7:30
peterchen16-Oct-01 7:30 
GeneralRe: basic question Pin
16-Oct-01 22:33
suss16-Oct-01 22:33 
GeneralRe: basic question Pin
Xian16-Oct-01 8:48
Xian16-Oct-01 8:48 
GeneralTalking to Parallel Port Pin
Russell Morris16-Oct-01 3:53
Russell Morris16-Oct-01 3:53 
GeneralRe: Talking to Parallel Port Pin
User 842016-Oct-01 4:44
User 842016-Oct-01 4:44 
GeneralRe: Talking to Parallel Port Pin
Russell Morris16-Oct-01 5:43
Russell Morris16-Oct-01 5:43 
GeneralRe: Multiple selection CTreeCtrl Pin
16-Oct-01 4:00
suss16-Oct-01 4:00 
QuestionHow can I trap Virtual Keys ? Pin
Braulio Dez16-Oct-01 3:19
Braulio Dez16-Oct-01 3:19 
GeneralNeed tools / techniques for tracing GDI leakage Pin
Jase Jennings16-Oct-01 2:14
Jase Jennings16-Oct-01 2:14 
GeneralRe: Need tools / techniques for tracing GDI leakage Pin
Braulio Dez16-Oct-01 3:18
Braulio Dez16-Oct-01 3:18 
GeneralRe: Need tools / techniques for tracing GDI leakage Pin
Jase Jennings16-Oct-01 3:51
Jase Jennings16-Oct-01 3:51 
GeneralRe: Need tools / techniques for tracing GDI leakage Pin
Rob Caldecott16-Oct-01 3:20
Rob Caldecott16-Oct-01 3:20 
GeneralRe: Need tools / techniques for tracing GDI leakage Pin
Jase Jennings16-Oct-01 3:55
Jase Jennings16-Oct-01 3:55 

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.