Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: DLL Issue Pin
Programm3r1-Aug-06 19:49
Programm3r1-Aug-06 19:49 
AnswerRe: DLL Issue Pin
Sarath C1-Aug-06 19:31
Sarath C1-Aug-06 19:31 
AnswerRe: DLL Issue Pin
Naveen1-Aug-06 19:44
Naveen1-Aug-06 19:44 
QuestionRemove from Heap using delete. Pin
HakunaMatada1-Aug-06 19:00
HakunaMatada1-Aug-06 19:00 
AnswerRe: Remove from Heap using delete. Pin
Sarath C1-Aug-06 19:14
Sarath C1-Aug-06 19:14 
GeneralRe: Remove from Heap using delete. Pin
Naveen1-Aug-06 19:24
Naveen1-Aug-06 19:24 
GeneralRe: Remove from Heap using delete. Pin
Sarath C1-Aug-06 19:35
Sarath C1-Aug-06 19:35 
GeneralRe: Remove from Heap using delete. Pin
HakunaMatada1-Aug-06 19:43
HakunaMatada1-Aug-06 19:43 
Hi. Thanks for your reply. Well now I have..

char* strFile = new char[50] ;<br />
CString str( "Hello\nCoders" ) ;<br />
strFile = str.GetBuffer( str.GetLength() );<br />
str.ReleaseBuffer() ;<br />
std::ofstream myfile;<br />
myfile.open ("d:\\example.txt");<br />
myfile << strFile ;<br />
myfile.close() ;<br />
delete[] strFile ;


but it still doesn't work. As you may have noticed, I used the ReleaseBuffer as you had suggested but to no avail. Am I doing something wrong?

---
Beer | [beer] Hakuna-Matada Beer | [beer]
It means no worries for the rest of your days...
It's our problem free, Philosophy

<marquee behavior="alternate" scrollamount="5" scrolldelay="50">Jig | [Dance]

GeneralRe: Remove from Heap using delete. [modified] Pin
Sarath C1-Aug-06 20:13
Sarath C1-Aug-06 20:13 
GeneralRe: Remove from Heap using delete. Pin
HakunaMatada1-Aug-06 21:18
HakunaMatada1-Aug-06 21:18 
AnswerRe: Remove from Heap using delete. Pin
Steve Echols1-Aug-06 19:25
Steve Echols1-Aug-06 19:25 
GeneralRe: Remove from Heap using delete. Pin
Sarath C1-Aug-06 19:34
Sarath C1-Aug-06 19:34 
GeneralRe: Remove from Heap using delete. Pin
Steve Echols1-Aug-06 20:13
Steve Echols1-Aug-06 20:13 
GeneralRe: Remove from Heap using delete. Pin
Sarath C1-Aug-06 20:14
Sarath C1-Aug-06 20:14 
AnswerRe: Remove from Heap using delete. Pin
Amar Sutar1-Aug-06 19:26
Amar Sutar1-Aug-06 19:26 
AnswerRe: Remove from Heap using delete. Pin
Michael Dunn1-Aug-06 19:29
sitebuilderMichael Dunn1-Aug-06 19:29 
QuestionHow can i provide multlanguage support to my application? Pin
gloriousgopi1-Aug-06 18:55
gloriousgopi1-Aug-06 18:55 
AnswerRe: How can i provide multlanguage support to my application? Pin
Parthi_Appu1-Aug-06 19:03
Parthi_Appu1-Aug-06 19:03 
GeneralRe: How can i provide multlanguage support to my application? Pin
gloriousgopi1-Aug-06 19:10
gloriousgopi1-Aug-06 19:10 
GeneralRe: How can i provide multlanguage support to my application? Pin
Hamid_RT1-Aug-06 19:33
Hamid_RT1-Aug-06 19:33 
AnswerRe: How can i provide multlanguage support to my application? Pin
gloriousgopi1-Aug-06 19:59
gloriousgopi1-Aug-06 19:59 
AnswerRe: How can i provide multlanguage support to my application? Pin
prasad_som1-Aug-06 22:48
prasad_som1-Aug-06 22:48 
GeneralRe: How can i provide multlanguage support to my application? Pin
gloriousgopi2-Aug-06 4:05
gloriousgopi2-Aug-06 4:05 
Questionnew window Pin
With_problem1-Aug-06 18:51
With_problem1-Aug-06 18:51 
AnswerRe: new window Pin
Parthi_Appu1-Aug-06 19:02
Parthi_Appu1-Aug-06 19:02 

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.