Click here to Skip to main content
15,916,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: LOGFILE AND BACKUP(MFC) Pin
khan++29-Dec-05 1:52
khan++29-Dec-05 1:52 
AnswerRe: LOGFILE AND BACKUP(MFC) Pin
Maximilien29-Dec-05 3:36
Maximilien29-Dec-05 3:36 
AnswerRe: LOGFILE AND BACKUP(MFC) Pin
Identity Undisclosed29-Dec-05 6:19
Identity Undisclosed29-Dec-05 6:19 
QuestionProblem in executing application Pin
maharaja pandian28-Dec-05 20:01
maharaja pandian28-Dec-05 20:01 
AnswerRe: Problem in executing application Pin
sunit528-Dec-05 20:36
sunit528-Dec-05 20:36 
AnswerRe: Problem in executing application Pin
vikas amin28-Dec-05 23:28
vikas amin28-Dec-05 23:28 
AnswerRe: Problem in executing application Pin
Identity Undisclosed29-Dec-05 1:52
Identity Undisclosed29-Dec-05 1:52 
QuestionPrint Preview Crashes Pin
Identity Undisclosed28-Dec-05 19:13
Identity Undisclosed28-Dec-05 19:13 
When I click close button of CPrintPreview the application crashes. Before explaining what I have done, I find it noteworthy to mention that when application was launched from VC 6.0, no crash of application watsoever occured. But after migrating to VC.NET, I am encoutering this problem.
and let me focus what I have done:

I have derived a class from CPreviewPrint and call OnPreviewClose to close the print preview.
Since the class is derived from CPrintPreview it has a pointer names m_pPreviousView. Now plz just focus on the coming line. The problem starts after this. At this stage this->m_pPreviousView->m_pPreviewState is not NULL. But when I cast it CPreviousView and say store in pPrevView, I get pPrevView->m_pPreviewState NULL.

void MyPrintPreview::OnPreviewClose()
{
SetFocus();

/*
some code ... this->m_pPreviousView->m_pPreviewState is NOT NULL
*/

CPreviewView* pPreviewView = STATIC_DOWNCAST(CPreviewView, this);

/*
pPreviewView->m_pPreviousView->m_pPreviewState is NULL
some code and call OnEndPrintPreview
*/


}

Any help on it will be highly appreciated.
Best Regards,
Questiongetting problem in ontimer(UINT nIDEvent) Pin
cancerion28-Dec-05 19:09
cancerion28-Dec-05 19:09 
AnswerRe: getting problem in ontimer(UINT nIDEvent) Pin
Owner drawn28-Dec-05 19:16
Owner drawn28-Dec-05 19:16 
GeneralRe: getting problem in ontimer(UINT nIDEvent) Pin
cancerion28-Dec-05 19:34
cancerion28-Dec-05 19:34 
QuestionRe: getting problem in ontimer(UINT nIDEvent) Pin
Owner drawn28-Dec-05 19:38
Owner drawn28-Dec-05 19:38 
AnswerRe: getting problem in ontimer(UINT nIDEvent) Pin
cancerion28-Dec-05 20:15
cancerion28-Dec-05 20:15 
GeneralRe: getting problem in ontimer(UINT nIDEvent) Pin
Owner drawn28-Dec-05 20:21
Owner drawn28-Dec-05 20:21 
GeneralRe: getting problem in ontimer(UINT nIDEvent) Pin
cancerion28-Dec-05 20:42
cancerion28-Dec-05 20:42 
GeneralRe: getting problem in ontimer(UINT nIDEvent) Pin
ThatsAlok28-Dec-05 21:19
ThatsAlok28-Dec-05 21:19 
QuestionCalling VB Dll through MFC Pin
achin28-Dec-05 18:34
achin28-Dec-05 18:34 
QuestionUnregister Class function Pin
ragavan28-Dec-05 18:12
ragavan28-Dec-05 18:12 
AnswerRe: Unregister Class function Pin
MF28-Dec-05 19:42
MF28-Dec-05 19:42 
GeneralRe: Unregister Class function Pin
ragavan29-Dec-05 0:10
ragavan29-Dec-05 0:10 
QuestionAbout Design Pattern in MFC : Urgent Reply Pin
parims28-Dec-05 17:47
parims28-Dec-05 17:47 
AnswerRe: About Design Pattern in MFC : Urgent Reply Pin
mbcvamsidhar28-Dec-05 18:53
mbcvamsidhar28-Dec-05 18:53 
GeneralRe: About Design Pattern in MFC : Urgent Reply Pin
parims28-Dec-05 18:55
parims28-Dec-05 18:55 
AnswerRe: About Design Pattern in MFC : Urgent Reply Pin
Johann Gerell28-Dec-05 19:19
Johann Gerell28-Dec-05 19:19 
AnswerRe: About Design Pattern in MFC : Urgent Reply Pin
vikas amin29-Dec-05 0:35
vikas amin29-Dec-05 0:35 

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.