Click here to Skip to main content
15,917,628 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: copying selected items Pin
Mark Salsbery13-Oct-06 6:29
Mark Salsbery13-Oct-06 6:29 
GeneralRe: copying selected items Pin
radhika2813-Oct-06 18:40
radhika2813-Oct-06 18:40 
GeneralRe: copying selected items Pin
Mark Salsbery14-Oct-06 7:18
Mark Salsbery14-Oct-06 7:18 
QuestionI want to open a notepad from my application without disappearing it. Pin
Pham duc an13-Oct-06 2:30
Pham duc an13-Oct-06 2:30 
AnswerRe: I want to open a notepad from my application without disappearing it. Pin
Galatei13-Oct-06 2:55
Galatei13-Oct-06 2:55 
QuestionRe: I want to open a notepad from my application without disappearing it. Pin
David Crow13-Oct-06 3:50
David Crow13-Oct-06 3:50 
QuestionUrgent :Regarding pointer to a pointer Pin
janadhana13-Oct-06 2:22
janadhana13-Oct-06 2:22 
AnswerRe: Urgent :Regarding pointer to a pointer Pin
Galatei13-Oct-06 2:44
Galatei13-Oct-06 2:44 
Hi,

That's very simple. When you increment amount pointer, you actually change its address, which is not valid when you call delete.

You can do something like this to avoid its modification (in main):
...
	long *ptr = amount;
	for (int i = 0; i < 5 ;++i,++ptr) {
		cout<< *ptr << endl;
	}
	delete [] amount;
...


Regards
GeneralRe: Urgent :Regarding pointer to a pointer Pin
janadhana13-Oct-06 4:51
janadhana13-Oct-06 4:51 
AnswerRe: Urgent :Regarding pointer to a pointer [modified] Pin
prasad_som13-Oct-06 3:07
prasad_som13-Oct-06 3:07 
GeneralRe: Urgent :Regarding pointer to a pointer Pin
janadhana13-Oct-06 4:52
janadhana13-Oct-06 4:52 
GeneralRe: Urgent :Regarding pointer to a pointer Pin
prasad_som13-Oct-06 4:59
prasad_som13-Oct-06 4:59 
AnswerRe: Urgent :Regarding pointer to a pointer Pin
David Crow13-Oct-06 3:53
David Crow13-Oct-06 3:53 
GeneralRe: Urgent :Regarding pointer to a pointer Pin
Galatei13-Oct-06 4:09
Galatei13-Oct-06 4:09 
GeneralRe: Urgent :Regarding pointer to a pointer Pin
David Crow13-Oct-06 4:14
David Crow13-Oct-06 4:14 
QuestionQuestion Pin
messages13-Oct-06 1:50
messages13-Oct-06 1:50 
AnswerRe: Question Pin
prasad_som13-Oct-06 2:10
prasad_som13-Oct-06 2:10 
AnswerRe: Question Pin
David Crow13-Oct-06 3:46
David Crow13-Oct-06 3:46 
QuestionNeed to open Particular page or topic of help file Pin
Krishnatv13-Oct-06 1:06
Krishnatv13-Oct-06 1:06 
AnswerRe: Need to open Particular page or topic of help file Pin
Hamid_RT13-Oct-06 1:30
Hamid_RT13-Oct-06 1:30 
GeneralRe: Need to open Particular page or topic of help file Pin
Krishnatv13-Oct-06 1:37
Krishnatv13-Oct-06 1:37 
AnswerRe: Need to open Particular page or topic of help file Pin
David Crow13-Oct-06 3:43
David Crow13-Oct-06 3:43 
QuestionHow to add text data in avi file? Pin
Hemant kulkarni13-Oct-06 0:43
Hemant kulkarni13-Oct-06 0:43 
AnswerRe: How to add text data in avi file? Pin
Hamid_RT13-Oct-06 0:49
Hamid_RT13-Oct-06 0:49 
GeneralRe: How to add text data in avi file? Pin
Hemant kulkarni13-Oct-06 0:52
Hemant kulkarni13-Oct-06 0:52 

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.