I have upgraded a MFC application to 64bit from 32bit.
I am facing an issue in Release mode.
Issue is: In the print functionality, i have overridden a method OnPreparePrinting. Which has a argument CPrintInfo, and i am calling a method pi->SetMaxPage(1); But this calls is not working in release mode. Result it gives error in Release mode.
BOOL ZMyView::OnPreparePrinting(CPrintInfo* pi)
Please let me know how do i debug and fix this issue. What could be the cause.
This is happening in a DLL which is added into application.
If i pass the CPrintInfo* pi to new separate DLL and call pi->SetMaxPage(1), then it works fine.
Please let me know how do i debug and fix this issue.
Thanks,
Samson
If i pass the CPrintInfo* pi to new separate DLL and call pi->SetMaxPage(1), then it works fine.
But it is not working in the main DLL. Need to fix in Main DLL since i dont want to add dependency DLL.
T Samson Petersingh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.