Click here to Skip to main content
15,887,585 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAccess to a POP3 mailbox: Windows Messaging and Collaboration Pin
VictorSotnikov24-Jan-10 22:20
VictorSotnikov24-Jan-10 22:20 
AnswerRe: Access to a POP3 mailbox: Windows Messaging and Collaboration Pin
Rozis25-Jan-10 12:10
Rozis25-Jan-10 12:10 
Questioninitialize disk using c++ code Pin
Madan Chauhan24-Jan-10 19:21
Madan Chauhan24-Jan-10 19:21 
QuestionRe: initialize disk using c++ code Pin
Adam Roderick J24-Jan-10 19:36
Adam Roderick J24-Jan-10 19:36 
AnswerRe: initialize disk using c++ code Pin
Madan Chauhan24-Jan-10 19:42
Madan Chauhan24-Jan-10 19:42 
QuestionHow to convert a CString object to char array in VC++ MFC Pin
Member 439977124-Jan-10 19:17
Member 439977124-Jan-10 19:17 
AnswerRe: How to convert a CString object to char array in VC++ MFC [modified] Pin
Adam Roderick J24-Jan-10 19:23
Adam Roderick J24-Jan-10 19:23 
GeneralRe: How to convert a CString object to char array in VC++ MFC Pin
Cedric Moonen24-Jan-10 20:23
Cedric Moonen24-Jan-10 20:23 
Adam Roderick J 09 wrote:
char* cdata = csdata.GetBuffer();


Calling GetBuffer is not a good solution in this case, even if you call ReleaseBuffer afterward. There's no need to use GetBuffer because CString already defines casting operators (which returns the same type of what GetBuffer returns, so it depends on the UNICODE settings). Using GetBuffer is very bad practice and should be avoided.

Cédric Moonen
Software developer

Charting control [v3.0]
OpenGL game tutorial in C++

GeneralRe: How to convert a CString object to char array in VC++ MFC Pin
Adam Roderick J24-Jan-10 20:59
Adam Roderick J24-Jan-10 20:59 
AnswerRe: How to convert a CString object to char array in VC++ MFC Pin
Joe Woodbury24-Jan-10 19:55
professionalJoe Woodbury24-Jan-10 19:55 
GeneralRe: How to convert a CString object to char array in VC++ MFC Pin
Member 439977124-Jan-10 20:22
Member 439977124-Jan-10 20:22 
GeneralRe: How to convert a CString object to char array in VC++ MFC Pin
Joe Woodbury24-Jan-10 20:35
professionalJoe Woodbury24-Jan-10 20:35 
GeneralRe: How to convert a CString object to char array in VC++ MFC Pin
Member 439977124-Jan-10 21:31
Member 439977124-Jan-10 21:31 
GeneralRe: How to convert a CString object to char array in VC++ MFC Pin
Maya_24-Jan-10 22:28
Maya_24-Jan-10 22:28 
GeneralRe: How to convert a CString object to char array in VC++ MFC Pin
Member 439977125-Jan-10 0:18
Member 439977125-Jan-10 0:18 
GeneralRe: How to convert a CString object to char array in VC++ MFC Pin
Joe Woodbury25-Jan-10 7:42
professionalJoe Woodbury25-Jan-10 7:42 
GeneralRe: How to convert a CString object to char array in VC++ MFC Pin
Joe Woodbury25-Jan-10 7:01
professionalJoe Woodbury25-Jan-10 7:01 
AnswerRe: How to convert a CString object to char array in VC++ MFC Pin
Madan Chauhan25-Jan-10 0:32
Madan Chauhan25-Jan-10 0:32 
Questionquestion hooking virtual table / class functions Pin
nah133724-Jan-10 10:11
nah133724-Jan-10 10:11 
AnswerRe: question hooking virtual table / class functions Pin
Stuart Dootson24-Jan-10 11:54
professionalStuart Dootson24-Jan-10 11:54 
GeneralRe: question hooking virtual table / class functions Pin
nah133724-Jan-10 19:26
nah133724-Jan-10 19:26 
GeneralRe: question hooking virtual table / class functions Pin
Stuart Dootson24-Jan-10 20:40
professionalStuart Dootson24-Jan-10 20:40 
Questioniterator & operator overloading error Pin
khomeyni24-Jan-10 7:19
khomeyni24-Jan-10 7:19 
AnswerRe: iterator & operator overloading error Pin
Avi Berger24-Jan-10 7:31
Avi Berger24-Jan-10 7:31 
GeneralRe: iterator & operator overloading error Pin
khomeyni24-Jan-10 7:38
khomeyni24-Jan-10 7:38 

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.