Click here to Skip to main content
15,913,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Create a button that can be dragged and dropped?? Pin
toxcct19-Aug-05 1:51
toxcct19-Aug-05 1:51 
AnswerRe: Create a button that can be dragged and dropped?? Pin
MailtoGops19-Aug-05 3:11
MailtoGops19-Aug-05 3:11 
GeneralRe: Create a button that can be dragged and dropped?? Pin
Hachaso22-Aug-05 21:43
Hachaso22-Aug-05 21:43 
GeneralRe: Create a button that can be dragged and dropped?? Pin
MailtoGops23-Aug-05 0:29
MailtoGops23-Aug-05 0:29 
GeneralString* char* Memory issue Pin
s2111979219-Aug-05 1:05
s2111979219-Aug-05 1:05 
GeneralRe: String* char* Memory issue Pin
Bob Stanneveld19-Aug-05 1:28
Bob Stanneveld19-Aug-05 1:28 
GeneralRe: String* char* Memory issue Pin
s2111979219-Aug-05 2:21
s2111979219-Aug-05 2:21 
GeneralRe: String* char* Memory issue Pin
Maximilien19-Aug-05 2:44
Maximilien19-Aug-05 2:44 
ok, I think I get it, you more or less want to send a 1000 email with different strings ?

I think your on the right track with your second example.

is the Main object you own ? does it allocate the String object when it gets constructed ?

I would change the definition of the String member to not be dynamically allocated; if not, you will need to allocate it like you do before the loop.

if the String is a build-in type of the managed c++ language, just assign it a new string in the loop should remove the old one and put the new one in;

Be certain that if you allocate it with new, that youp delete it ( or not, it might be collected later ).




Maximilien Lincourt
Your Head A Splode - Strong Bad
GeneralRe: String* char* Memory issue Pin
s2111979219-Aug-05 3:13
s2111979219-Aug-05 3:13 
GeneralRe: String* char* Memory issue Pin
Bob Stanneveld19-Aug-05 3:25
Bob Stanneveld19-Aug-05 3:25 
GeneralControl ghosting during dialog resize Pin
rem-c19-Aug-05 0:38
rem-c19-Aug-05 0:38 
GeneralRe: Control ghosting during dialog resize Pin
Roger Allen19-Aug-05 3:44
Roger Allen19-Aug-05 3:44 
GeneralRe: Control ghosting during dialog resize Pin
Gary R. Wheeler19-Aug-05 4:02
Gary R. Wheeler19-Aug-05 4:02 
GeneralRe: Control ghosting during dialog resize Pin
rem-c19-Aug-05 4:56
rem-c19-Aug-05 4:56 
QuestionI want a file DLL write by VC++ used in VisualBasic ? Pin
Thangnc19-Aug-05 0:30
Thangnc19-Aug-05 0:30 
AnswerRe: I want a file DLL write by VC++ used in VisualBasic ? Pin
David Crow19-Aug-05 2:30
David Crow19-Aug-05 2:30 
GeneralRe: I want a file DLL write by VC++ used in VisualBasic ? Pin
Thangnc19-Aug-05 16:13
Thangnc19-Aug-05 16:13 
GeneralRe: I want a file DLL write by VC++ used in VisualBasic ? Pin
David Crow22-Aug-05 3:13
David Crow22-Aug-05 3:13 
QuestionHelp! CString convert to LPBYTE ? Pin
alias001818-Aug-05 22:28
alias001818-Aug-05 22:28 
AnswerRe: Help! CString convert to LPBYTE ? Pin
try8818-Aug-05 22:51
try8818-Aug-05 22:51 
AnswerRe: Help! CString convert to LPBYTE ? Pin
David Crow19-Aug-05 2:33
David Crow19-Aug-05 2:33 
AnswerRe: Help! CString convert to LPBYTE ? Pin
MailtoGops19-Aug-05 3:27
MailtoGops19-Aug-05 3:27 
GeneralRe: Help! CString convert to LPBYTE ? Pin
Gary R. Wheeler19-Aug-05 4:27
Gary R. Wheeler19-Aug-05 4:27 
GeneralRe: Help! CString convert to LPBYTE ? Pin
alias001819-Aug-05 19:33
alias001819-Aug-05 19:33 
Generalusing TRACE(); Pin
cpprules18-Aug-05 21:50
cpprules18-Aug-05 21:50 

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.