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

Managed C++/CLI

 
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 
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 
Hi Buck,

I just learned C++ needs two arguments ina delegate constructor, the first one
being "this".

The following code compiles:

namespace test3 {
	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;
	using namespace System::Drawing::Printing;

	public ref class PD : public System::Drawing::Printing::PrintDocument {
	public:
		PD(void) {
			this->PrintPage+=gcnew PrintPageEventHandler(
				this, &test3::PD::pdm);
		}
 
		void pdm(Object^ sender, PrintPageEventArgs^e) {
		}
	};
}


That's my longest C++/CLI program ever. Hope it helps.

Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


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 
QuestionParallel port access in Windows XP [modified] Pin
shaleen415-Aug-07 8:31
shaleen415-Aug-07 8:31 
AnswerRe: Parallel port access in Windows XP Pin
Mark Salsbery15-Aug-07 9:13
Mark Salsbery15-Aug-07 9:13 
GeneralRe: Parallel port access in Windows XP Pin
led mike15-Aug-07 11:36
led mike15-Aug-07 11:36 
GeneralRe: Parallel port access in Windows XP Pin
Mark Salsbery15-Aug-07 12:21
Mark Salsbery15-Aug-07 12:21 
QuestionRe: Parallel port access in Windows XP Pin
mirispearl16-Aug-07 19:45
mirispearl16-Aug-07 19:45 

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.