Click here to Skip to main content
15,919,423 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Tree Control Pin
Rage21-Dec-06 22:28
professionalRage21-Dec-06 22:28 
GeneralRe: Tree Control Pin
Krishnatv21-Dec-06 22:59
Krishnatv21-Dec-06 22:59 
Questionimage capture Pin
indrajeshr21-Dec-06 20:06
indrajeshr21-Dec-06 20:06 
AnswerRe: image capture Pin
Rage21-Dec-06 22:32
professionalRage21-Dec-06 22:32 
AnswerRe: image capture Pin
Greg Daye22-Dec-06 2:59
Greg Daye22-Dec-06 2:59 
GeneralRe: image capture Pin
Mark Salsbery22-Dec-06 5:17
Mark Salsbery22-Dec-06 5:17 
GeneralRe: image capture Pin
indrajeshr25-Dec-06 23:25
indrajeshr25-Dec-06 23:25 
QuestionProblem with Repalcing a view Pin
Shraddha Gautam21-Dec-06 19:13
Shraddha Gautam21-Dec-06 19:13 
Hello all,
I am facing a problem in replacing a view to display the output.
I have a pieceof code as follows ::

**************************************************************************
///
some print statements;;

...
...
//////

CRuntimeClass *ptr = RUNTIME_CLASS(COutputRichEditView);
pMainFrame->ReplaceView(0,1,ptr,CSize(200,200));

///
again some print statements;;

...
...
//////

CRuntimeClass *ptr = RUNTIME_CLASS(COutputRichEditView);
pMainFrame->ReplaceView(0,1,ptr,CSize(200,200));

***************************************************************************

The above code initially prints a set of statements and displays them to the user. Then it takes some other input from the user.Calculates the values.It again has some print statements. The second set of print statements are to be displayed after the first set. So i need to write the
following 2 lines again.

CRuntime....
pMainFrame....

As soon as i repeat the above statement, access violation occurs.
I tried using following code as well. I defined a class COutputRichEditView1.

CRuntimeClass *ptr = RUNTIME_CLASS(COutputRichEditView1);
pMainFrame->ReplaceView(0,1,ptr,CSize(200,200));

But its not working...
Any help in this context will be useful.
I have already hunted information,but doesn't prove to be useful.
Please help..Its urgent.

Regards,
shraddha
QuestionRe: Problem with Repalcing a view Pin
prasad_som21-Dec-06 20:39
prasad_som21-Dec-06 20:39 
AnswerRe: Problem with Repalcing a view Pin
Rage21-Dec-06 22:40
professionalRage21-Dec-06 22:40 
Questionis the Floppy Disk have the unique sign? Pin
jakeyjia21-Dec-06 19:10
jakeyjia21-Dec-06 19:10 
AnswerRe: is the Floppy Disk have the unique sign? Pin
kakan21-Dec-06 19:27
professionalkakan21-Dec-06 19:27 
GeneralRe: is the Floppy Disk have the unique sign? Pin
jakeyjia21-Dec-06 19:51
jakeyjia21-Dec-06 19:51 
GeneralRe: is the Floppy Disk have the unique sign? Pin
kakan21-Dec-06 20:20
professionalkakan21-Dec-06 20:20 
GeneralRe: is the Floppy Disk have the unique sign? Pin
jakeyjia21-Dec-06 20:30
jakeyjia21-Dec-06 20:30 
GeneralRe: is the Floppy Disk have the unique sign? Pin
kakan21-Dec-06 20:49
professionalkakan21-Dec-06 20:49 
QuestionBase Class of dialog Pin
zareee21-Dec-06 19:09
zareee21-Dec-06 19:09 
AnswerRe: Base Class of dialog Pin
prasad_som21-Dec-06 20:01
prasad_som21-Dec-06 20:01 
QuestionTo Distinguish among file and folder Pin
tony1-udz21-Dec-06 19:01
tony1-udz21-Dec-06 19:01 
AnswerRe: To Distinguish among file and folder Pin
sunit521-Dec-06 19:04
sunit521-Dec-06 19:04 
GeneralRe: To Distinguish among file and folder Pin
tony1-udz21-Dec-06 19:16
tony1-udz21-Dec-06 19:16 
AnswerRe: To Distinguish among file and folder Pin
prasad_som21-Dec-06 23:34
prasad_som21-Dec-06 23:34 
GeneralRe: To Distinguish among file and folder Pin
Hamid_RT22-Dec-06 17:00
Hamid_RT22-Dec-06 17:00 
AnswerRe: To Distinguish among file and folder Pin
Cristian Amarie28-Dec-06 22:24
Cristian Amarie28-Dec-06 22:24 
QuestionHow do we can given the highlighted effect to the toolbar button when it is pressed Pin
Anamika200521-Dec-06 18:39
Anamika200521-Dec-06 18:39 

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.