Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to read .xml file in MFC? Pin
ThatsAlok4-Nov-08 18:31
ThatsAlok4-Nov-08 18:31 
AnswerRe: How to read .xml file in MFC? Pin
Hamid_RT4-Nov-08 19:06
Hamid_RT4-Nov-08 19:06 
Question[SOLVED] How to copy a stringstream in to a buffer Pin
CodingLover4-Nov-08 18:16
CodingLover4-Nov-08 18:16 
AnswerRe: How to copy a stringstream in to a buffer Pin
ThatsAlok4-Nov-08 18:32
ThatsAlok4-Nov-08 18:32 
GeneralRe: How to copy a stringstream in to a buffer Pin
Hamid_RT4-Nov-08 19:05
Hamid_RT4-Nov-08 19:05 
GeneralRe: How to copy a stringstream in to a buffer Pin
ThatsAlok4-Nov-08 20:03
ThatsAlok4-Nov-08 20:03 
GeneralRe: How to copy a stringstream in to a buffer Pin
Hamid_RT4-Nov-08 23:53
Hamid_RT4-Nov-08 23:53 
AnswerRe: How to copy a stringstream in to a buffer Pin
ThatsAlok4-Nov-08 18:38
ThatsAlok4-Nov-08 18:38 
Sorry for my above comment, i confused stringstream with stringbuilder class of managed Vc++.


CodingLover wrote:
char* new_buff = new char[str.str().length()];
::memcpy(new_buff, str, str.str().length());



char* new_buff = new char[str.str().length()+1];
_tcscpy(new_buff,str.str().c_str());

"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixture


cheers,
Alok Gupta
VC Forum Q&A :- I/IV
Support CRY- Child Relief and You/xml>

NewsRe: How to copy a stringstream in to a buffer Pin
CodingLover4-Nov-08 19:12
CodingLover4-Nov-08 19:12 
QuestionHow to draw lines may be like gridlines between images in thumbnail view Pin
sribachana4-Nov-08 17:38
sribachana4-Nov-08 17:38 
AnswerRe: How to draw lines may be like gridlines between images in thumbnail view Pin
Hamid_RT4-Nov-08 19:25
Hamid_RT4-Nov-08 19:25 
GeneralRe: How to draw lines may be like gridlines between images in thumbnail view Pin
sribachana4-Nov-08 21:16
sribachana4-Nov-08 21:16 
QuestionHow to export an object from a DLL! Help me please! Pin
farid_colombia4-Nov-08 17:12
farid_colombia4-Nov-08 17:12 
AnswerRe: How to export an object from a DLL! Help me please! Pin
ThatsAlok4-Nov-08 18:33
ThatsAlok4-Nov-08 18:33 
GeneralRe: How to export an object from a DLL! Help me please! Pin
farid_colombia4-Nov-08 18:55
farid_colombia4-Nov-08 18:55 
GeneralRe: How to export an object from a DLL! Help me please! Pin
ThatsAlok4-Nov-08 19:59
ThatsAlok4-Nov-08 19:59 
GeneralRe: How to export an object from a DLL! Help me please! Pin
farid_colombia5-Nov-08 6:28
farid_colombia5-Nov-08 6:28 
GeneralRe: How to export an object from a DLL! Help me please! Pin
farid_colombia5-Nov-08 19:06
farid_colombia5-Nov-08 19:06 
AnswerRe: How to export an object from a DLL! Help me please! Pin
Hamid_RT4-Nov-08 19:25
Hamid_RT4-Nov-08 19:25 
GeneralRe: How to export an object from a DLL! Help me please! Pin
farid_colombia5-Nov-08 19:05
farid_colombia5-Nov-08 19:05 
QuestionVisual Studio 2008 Pin
sidkraft4-Nov-08 15:33
sidkraft4-Nov-08 15:33 
AnswerRe: Visual Studio 2008 Pin
Joe Woodbury4-Nov-08 17:59
professionalJoe Woodbury4-Nov-08 17:59 
AnswerRe: Visual Studio 2008 Pin
Hamid_RT4-Nov-08 19:30
Hamid_RT4-Nov-08 19:30 
QuestionCode instrumation for coverage Pin
Frygreen4-Nov-08 14:02
Frygreen4-Nov-08 14:02 
QuestionRe: Code instrumation for coverage Pin
CPallini4-Nov-08 21:24
mveCPallini4-Nov-08 21:24 

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.