Click here to Skip to main content
16,004,887 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalkill .exe from an mfc appl Pin
chenggong22-Jul-05 7:36
chenggong22-Jul-05 7:36 
GeneralRe: kill .exe from an mfc appl Pin
David Crow22-Jul-05 8:23
David Crow22-Jul-05 8:23 
GeneralRich edit... help me Pin
Aqueel22-Jul-05 7:26
Aqueel22-Jul-05 7:26 
GeneralRe: Rich edit... help me Pin
Neelesh K J Jain22-Jul-05 8:09
Neelesh K J Jain22-Jul-05 8:09 
GeneralDelete [] charPtr... Pls help Pin
c121hains22-Jul-05 7:01
c121hains22-Jul-05 7:01 
GeneralRe: Delete [] charPtr... Pls help Pin
Michael Dunn22-Jul-05 8:13
sitebuilderMichael Dunn22-Jul-05 8:13 
GeneralRe: Delete [] charPtr... Pls help Pin
c121hains22-Jul-05 9:18
c121hains22-Jul-05 9:18 
GeneralRe: Delete [] charPtr... Pls help Pin
David Crow22-Jul-05 8:25
David Crow22-Jul-05 8:25 
c121hains wrote:
All i want to do is get all of the text together from an array of CString objects and put it into a single char* pointing to a string. I'm doing memory allocation...

Why are you wanting to do this? The whole reason for using CString is so that you would not need to mess with char variables and memory allocation/cleanup.

c121hains wrote:
int sizeAllText = strlen(lines[0].GetBuffer(0));
strcpy(source, lines[0].GetBuffer(0));
sizeAllText = MergeLines(&allText, sizeAllText, &source, lines[a].GetBuffer(0));


The calls to GetBuffer() are not necessary. Remove them.

c121hains wrote:
int CFindInWindowDlg::MergeLines(char** allText, int sizeSource, char** source, char* aLine)

Change the last parameter to const char * instead.


"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown


GeneralRe: Delete [] charPtr... Pls help Pin
c121hains22-Jul-05 9:17
c121hains22-Jul-05 9:17 
GeneralRe: Delete [] charPtr... Pls help Pin
David Crow22-Jul-05 9:21
David Crow22-Jul-05 9:21 
GeneralRe: Delete [] charPtr... Pls help Pin
c121hains22-Jul-05 13:58
c121hains22-Jul-05 13:58 
GeneralRe: Delete [] charPtr... Pls help Pin
Jose Lamas Rios22-Jul-05 14:21
Jose Lamas Rios22-Jul-05 14:21 
GeneralRe: Delete [] charPtr... Pls help Pin
Tim Smith22-Jul-05 18:24
Tim Smith22-Jul-05 18:24 
GeneralRe: Delete [] charPtr... Pls help Pin
embyro22-Jul-05 8:56
sussembyro22-Jul-05 8:56 
GeneralRe: Delete [] charPtr... Pls help Pin
c121hains22-Jul-05 9:20
c121hains22-Jul-05 9:20 
GeneralRe: Delete [] charPtr... Pls help Pin
Michael Dunn22-Jul-05 9:47
sitebuilderMichael Dunn22-Jul-05 9:47 
GeneralRe: Delete [] charPtr... Pls help Pin
c121hains22-Jul-05 10:32
c121hains22-Jul-05 10:32 
GeneralRe: Delete [] charPtr... Pls help Pin
Jose Lamas Rios22-Jul-05 10:41
Jose Lamas Rios22-Jul-05 10:41 
GeneralRe: Delete [] charPtr... Pls help Pin
c121hains22-Jul-05 13:58
c121hains22-Jul-05 13:58 
GeneralRe: Delete [] charPtr... Pls help Pin
c121hains22-Jul-05 13:59
c121hains22-Jul-05 13:59 
GeneralRe: Delete [] charPtr... Pls help Pin
Michael Dunn29-Jul-05 19:26
sitebuilderMichael Dunn29-Jul-05 19:26 
GeneralRe: Delete [] charPtr... Pls help Pin
Jose Lamas Rios22-Jul-05 10:29
Jose Lamas Rios22-Jul-05 10:29 
GeneralRe: Delete [] charPtr... Pls help Pin
c121hains22-Jul-05 13:57
c121hains22-Jul-05 13:57 
GeneralRe: Delete [] charPtr... Pls help Pin
Jose Lamas Rios22-Jul-05 14:29
Jose Lamas Rios22-Jul-05 14:29 
GeneralCheck if a thread is still running Pin
Budric B.22-Jul-05 5:42
Budric B.22-Jul-05 5:42 

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.