Click here to Skip to main content
16,005,149 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Release Build Pin
Mike Dimmick7-Jun-05 8:15
Mike Dimmick7-Jun-05 8:15 
GeneralDifferent icon for release and debug builds Pin
benjymous7-Jun-05 4:20
benjymous7-Jun-05 4:20 
GeneralRe: Different icon for release and debug builds Pin
Blake Miller7-Jun-05 4:29
Blake Miller7-Jun-05 4:29 
GeneralRe: Different icon for release and debug builds Pin
benjymous7-Jun-05 4:42
benjymous7-Jun-05 4:42 
GeneralRe: Different icon for release and debug builds Pin
Blake Miller7-Jun-05 5:04
Blake Miller7-Jun-05 5:04 
GeneralFunction calls Pin
nripun7-Jun-05 4:06
nripun7-Jun-05 4:06 
GeneralRe: Function calls Pin
David Crow7-Jun-05 4:26
David Crow7-Jun-05 4:26 
GeneralRe: Function calls Pin
Steen Krogsgaard7-Jun-05 4:26
Steen Krogsgaard7-Jun-05 4:26 
nripun wrote:
char *m_strTemp[10] = new char[count];

here you allocate an array of 10 char pointers and assign the char pointer returned by new to element zero (m_strTemp[0]). It's not an array of 10 (valid) pointers to char arrays.

nripun wrote:
char *tempStr[10] = new char[count];
tempStr = str;


same issue as above. Furthermore, in the second line you set the pointer tempStr to point to the same location as str points to (which is an array of 10 char pointers, where the first one points to a valid array). You do not copy the data pointed to by str into the array pointed to by tempStr.


nripun wrote:
This is giving error.

which error?

I would use containers instead, either MFC containers or STL ones.

Cheers
Steen.

"To claim that computer games influence children is ridiculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
GeneralRe: Function calls Pin
Cedric Moonen7-Jun-05 4:28
Cedric Moonen7-Jun-05 4:28 
GeneralRe: Function calls Pin
nripun7-Jun-05 5:04
nripun7-Jun-05 5:04 
GeneralRe: Function calls Pin
Cedric Moonen7-Jun-05 5:09
Cedric Moonen7-Jun-05 5:09 
GeneralRe: Function calls Pin
nripun7-Jun-05 5:24
nripun7-Jun-05 5:24 
GeneralRe: Function calls Pin
Cedric Moonen7-Jun-05 6:25
Cedric Moonen7-Jun-05 6:25 
GeneralRe: Function calls Pin
nripun7-Jun-05 20:26
nripun7-Jun-05 20:26 
GeneralRe: Function calls Pin
John M. Drescher7-Jun-05 6:23
John M. Drescher7-Jun-05 6:23 
Generalpausing a for loop Pin
Lilli Alexis7-Jun-05 4:01
Lilli Alexis7-Jun-05 4:01 
GeneralRe: pausing a for loop Pin
Cedric Moonen7-Jun-05 4:06
Cedric Moonen7-Jun-05 4:06 
GeneralRe: pausing a for loop Pin
David Crow7-Jun-05 4:28
David Crow7-Jun-05 4:28 
GeneralRe: pausing a for loop Pin
Blake Miller7-Jun-05 4:31
Blake Miller7-Jun-05 4:31 
GeneralRe: pausing a for loop Pin
Lilli Alexis7-Jun-05 4:45
Lilli Alexis7-Jun-05 4:45 
GeneralRe: pausing a for loop Pin
Cedric Moonen7-Jun-05 4:49
Cedric Moonen7-Jun-05 4:49 
GeneralRe: pausing a for loop Pin
Rick York10-Jun-05 8:18
mveRick York10-Jun-05 8:18 
Generalerror C2146 in the IADs.h Pin
cpapen7-Jun-05 3:54
cpapen7-Jun-05 3:54 
GeneralRe: error C2146 in the IADs.h Pin
Blake Miller7-Jun-05 4:43
Blake Miller7-Jun-05 4:43 
GeneralRe: error C2146 in the IADs.h Pin
cpapen7-Jun-05 4:57
cpapen7-Jun-05 4:57 

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.