Click here to Skip to main content
15,886,799 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Printing with GDI+ Pin
Luc Pattyn15-Aug-07 12:10
sitebuilderLuc Pattyn15-Aug-07 12:10 
GeneralRe: Printing with GDI+ Pin
BuckBrown16-Aug-07 9:35
BuckBrown16-Aug-07 9:35 
GeneralRe: Printing with GDI+ Pin
Luc Pattyn16-Aug-07 10:41
sitebuilderLuc Pattyn16-Aug-07 10:41 
GeneralRe: Printing with GDI+ Pin
BuckBrown16-Aug-07 9:43
BuckBrown16-Aug-07 9:43 
GeneralRe: Printing with GDI+ Pin
Luc Pattyn16-Aug-07 10:34
sitebuilderLuc Pattyn16-Aug-07 10:34 
GeneralRe: Printing with GDI+ Pin
BuckBrown16-Aug-07 11:17
BuckBrown16-Aug-07 11:17 
GeneralRe: Printing with GDI+ Pin
Luc Pattyn16-Aug-07 11:24
sitebuilderLuc Pattyn16-Aug-07 11:24 
GeneralRe: Printing with GDI+ Pin
BuckBrown16-Aug-07 12:27
BuckBrown16-Aug-07 12:27 
Yes, yes, yes! I have verified this by making a copy of the board.cs file and renaming it board.cpp. Then I included it into the VS solution and remarked out all of the code. The I unremarked the code compiling as I went. Propblems did not occur until the line...

PrintPage += gcnew PrintPageEventHandler(PrintableBoard_PrintPage);

I had tried ...
PrintPage += gcnew PrintPageEventHandler(PrintableBoard_PrintPage);
PrintPage += gcnew PrintPageEventHandler(this, PrintableBoard_PrintPage);
PrintPage += gcnew PrintPageEventHandler(&PrintableBoard_PrintPage);
PrintPage += gcnew PrintPageEventHandler(this, &PrintableBoard_PrintPage);
PrintPage += gcnew PrintPageEventHandler(Namespace::PrintableBoard::PrintableBoard_PrintPage);
PrintPage += gcnew PrintPageEventHandler(&Namespace::PrintableBoard::PrintableBoard_PrintPage);
PrintPage += gcnew PrintPageEventHandler(this, Namespace::PrintableBoard::PrintableBoard_PrintPage);

but I missed...

PrintPage += gcnew PrintPageEventHandler(this, &Namespace::PrintableBoard::PrintableBoard_PrintPage);

Which is the correct syntax because now it will compile. The other combinations just give similar error messages.

Thanks a lot, chances are that I would not have gone back and realized that there was one combination of arguments that I had not tried.


Buck
GeneralRe: Printing with GDI+ Pin
Luc Pattyn16-Aug-07 12:50
sitebuilderLuc Pattyn16-Aug-07 12:50 
GeneralRe: Printing with GDI+ Pin
BuckBrown20-Aug-07 6:26
BuckBrown20-Aug-07 6:26 
GeneralRe: Printing with GDI+ Pin
BuckBrown20-Aug-07 6:42
BuckBrown20-Aug-07 6:42 
GeneralRe: Printing with GDI+ Pin
Luc Pattyn20-Aug-07 13:12
sitebuilderLuc Pattyn20-Aug-07 13:12 
GeneralRe: Printing with GDI+ Pin
Luc Pattyn16-Aug-07 11:41
sitebuilderLuc Pattyn16-Aug-07 11:41 
QuestionHeapAlloc Pin
miah alom15-Aug-07 11:13
miah alom15-Aug-07 11:13 
AnswerRe: HeapAlloc Pin
Luc Pattyn15-Aug-07 11:23
sitebuilderLuc Pattyn15-Aug-07 11:23 
GeneralRe: HeapAlloc Pin
Mark Salsbery15-Aug-07 11:26
Mark Salsbery15-Aug-07 11:26 
GeneralRe: HeapAlloc Pin
miah alom15-Aug-07 11:50
miah alom15-Aug-07 11:50 
GeneralRe: HeapAlloc Pin
Mark Salsbery15-Aug-07 12:16
Mark Salsbery15-Aug-07 12:16 
GeneralRe: HeapAlloc Pin
Luc Pattyn15-Aug-07 11:55
sitebuilderLuc Pattyn15-Aug-07 11:55 
GeneralRe: HeapAlloc Pin
Mark Salsbery15-Aug-07 12:16
Mark Salsbery15-Aug-07 12:16 
GeneralRe: HeapAlloc Pin
miah alom15-Aug-07 11:49
miah alom15-Aug-07 11:49 
GeneralRe: HeapAlloc Pin
miah alom15-Aug-07 11:59
miah alom15-Aug-07 11:59 
GeneralRe: HeapAlloc Pin
Luc Pattyn15-Aug-07 12:07
sitebuilderLuc Pattyn15-Aug-07 12:07 
GeneralRe: HeapAlloc Pin
miah alom15-Aug-07 12:17
miah alom15-Aug-07 12:17 
GeneralRe: HeapAlloc Pin
Richard Andrew x6416-Aug-07 17:03
professionalRichard Andrew x6416-Aug-07 17:03 

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.