Click here to Skip to main content
15,923,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Just a beginner here Pin
valikac10-Oct-02 13:07
valikac10-Oct-02 13:07 
GeneralRe: Just a beginner here Pin
Anonymous10-Oct-02 17:12
Anonymous10-Oct-02 17:12 
GeneralRe: Just a beginner here Pin
G. White10-Oct-02 19:51
G. White10-Oct-02 19:51 
GeneralBest communication Protocol Pin
Spiros10-Oct-02 11:01
Spiros10-Oct-02 11:01 
GeneralRe: Best communication Protocol Pin
Daniel Turini10-Oct-02 11:07
Daniel Turini10-Oct-02 11:07 
GeneralRe: Best communication Protocol Pin
Paul M Watt10-Oct-02 11:38
mentorPaul M Watt10-Oct-02 11:38 
GeneralRe: Best communication Protocol Pin
valikac10-Oct-02 13:10
valikac10-Oct-02 13:10 
GeneralPrinting :: MFC Pin
valikac10-Oct-02 10:52
valikac10-Oct-02 10:52 
Hi.

I am working on a print feature for a simple text program. The print algorithm should print data seen on a CEditView. The data is saved in a CString object.

I implemented the exact same printing algorithm Jeff Prosise shows in his book. However, I encounted two problems.

First, the program crashes under debug mode. The error is this line in viewedit.h.

ASSERT (nPageSize > 1);

Secondly, although the print algorithm does not crash under release mode, the program does not print. The program does send data to the print because the queue system that runs the print list the size of the data sent and the size is valid. However, the printer printed blanks.

Again, I implemented the exact same algorithm Prosise shows. Does anyone know if there are bugs in that printing algorithm?

Last, please post if you have any idea what the bugs mentioned above.

Thanks,
Kuphryn
GeneralRe: Printing :: MFC Pin
Ed Gadziemski10-Oct-02 14:40
professionalEd Gadziemski10-Oct-02 14:40 
GeneralRe: Printing :: MFC Pin
Roger Allen11-Oct-02 1:55
Roger Allen11-Oct-02 1:55 
GeneralRe: Printing :: MFC Pin
valikac11-Oct-02 4:49
valikac11-Oct-02 4:49 
GeneralCRecordset-related question Pin
Christos P.10-Oct-02 10:18
Christos P.10-Oct-02 10:18 
GeneralRe: CRecordset-related question Pin
Ranjan Banerji10-Oct-02 10:26
Ranjan Banerji10-Oct-02 10:26 
GeneralRe: CRecordset-related question Pin
Christos P.10-Oct-02 11:08
Christos P.10-Oct-02 11:08 
GeneralDLL in EXE. Pin
Anonymous10-Oct-02 10:19
Anonymous10-Oct-02 10:19 
GeneralRe: DLL in EXE. Pin
Paul M Watt10-Oct-02 10:21
mentorPaul M Watt10-Oct-02 10:21 
GeneralRe: DLL in EXE. Pin
Anonymous10-Oct-02 10:28
Anonymous10-Oct-02 10:28 
GeneralRe: DLL in EXE. Pin
Paul M Watt10-Oct-02 11:34
mentorPaul M Watt10-Oct-02 11:34 
GeneralRe: DLL in EXE. Pin
Anonymous11-Oct-02 1:59
Anonymous11-Oct-02 1:59 
GeneralMultiple item images for a tree control item Pin
mwallis7610-Oct-02 10:18
mwallis7610-Oct-02 10:18 
GeneralRe: Multiple item images for a tree control item Pin
Gary R. Wheeler10-Oct-02 14:49
Gary R. Wheeler10-Oct-02 14:49 
GeneralCListCtrl selection color Pin
JennyP10-Oct-02 9:49
JennyP10-Oct-02 9:49 
GeneralRe: CListCtrl selection color Pin
Chris Richardson10-Oct-02 10:35
Chris Richardson10-Oct-02 10:35 
Questioncombo box scrolling question? Pin
jimNLX10-Oct-02 9:41
jimNLX10-Oct-02 9:41 
AnswerRe: combo box scrolling question? Pin
alex.barylski10-Oct-02 13:31
alex.barylski10-Oct-02 13:31 

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.