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

Managed C++/CLI

 
AnswerRe: assignment vs default ctor Pin
Mark Salsbery11-Aug-07 6:55
Mark Salsbery11-Aug-07 6:55 
Questionoperator++(int) Pin
swjam11-Aug-07 4:58
swjam11-Aug-07 4:58 
AnswerRe: operator++(int) Pin
Mark Salsbery11-Aug-07 6:58
Mark Salsbery11-Aug-07 6:58 
AnswerRe: operator++(int) Pin
BadKarma11-Aug-07 23:48
BadKarma11-Aug-07 23:48 
QuestionRTTI dynamic_cast Pin
swjam11-Aug-07 0:45
swjam11-Aug-07 0:45 
AnswerRe: RTTI dynamic_cast [modified] Pin
swjam11-Aug-07 0:51
swjam11-Aug-07 0:51 
QuestionIn C++/CLI, What has replaced LOGFONT and TEXTMETRIC? Pin
BuckBrown10-Aug-07 12:05
BuckBrown10-Aug-07 12:05 
QuestionHow do you get screen graphics into Document? Pin
BuckBrown9-Aug-07 9:54
BuckBrown9-Aug-07 9:54 
Hi, I'm using visual Studio C++/CLI. I found an example in Visual Basic and followed these steps. Using the Toolbox in the form designer I added printDialog1 and printDocument1 to my Form1. Then I modified printDialog1 and set the AllowSelection and AllowSomePages properties to true and the Document property to printDocument1. This association would seem to imply that printDocument1 would contain the contents of Form1 but evidently it doesn't. I set up the fileToolStripMenuItem to have a printToolStripMenuItem and then double clicked on it to get the function header and modified it as follows...

private: System::Void printToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e)
{
if(printDialog1->ShowDialog() == System::Windows::Forms::DialogResult::OK)
printDocument1->Print();
}

This prints a blank page. How do I associate the graphics on my screen with printDocument1 so it will actually come out of the printer? I know this is probably incredibly trivial but most people don't document the trivial. For example, in order to be able to paint I needed to know the screen size. After googling "C++ .NET display size" I got no help. Then I tried "C++ .NET screen size" and still didn't find anything. After an hour or so I stumbled onto Screen::Bounds. I didn't even know the Screen class existed! I have five texts on C++ 2005 and none of them list the Screen class in the index (or a lot of other classes that I have found by accident that seem to be important or useful). So I would not be surprised if there is a command that takes the information from the screen and copies it to printDocument1, but is so basic that everyone knows how to do it already, everyone except the people that have never done it before. What's the $64,000 answer here?

Thanks

Buck
AnswerRe: How do you get screen graphics into Document? Pin
Luc Pattyn9-Aug-07 10:40
sitebuilderLuc Pattyn9-Aug-07 10:40 
GeneralRe: How do you get screen graphics into Document? Pin
BuckBrown9-Aug-07 11:05
BuckBrown9-Aug-07 11:05 
GeneralRe: How do you get screen graphics into Document? Pin
Luc Pattyn9-Aug-07 11:18
sitebuilderLuc Pattyn9-Aug-07 11:18 
GeneralRe: How do you get screen graphics into Document? Pin
BuckBrown9-Aug-07 11:40
BuckBrown9-Aug-07 11:40 
GeneralRe: How do you get screen graphics into Document? Pin
Luc Pattyn9-Aug-07 11:42
sitebuilderLuc Pattyn9-Aug-07 11:42 
Questiondirectx Pin
saisp8-Aug-07 18:22
saisp8-Aug-07 18:22 
Questionc++ projects Pin
Reet Dhiman7-Aug-07 23:43
Reet Dhiman7-Aug-07 23:43 
AnswerRe: c++ projects Pin
iddqd5158-Aug-07 3:26
iddqd5158-Aug-07 3:26 
AnswerRe: c++ projects Pin
originSH8-Aug-07 6:10
originSH8-Aug-07 6:10 
GeneralRe: c++ projects Pin
Karismatic8-Aug-07 20:24
Karismatic8-Aug-07 20:24 
GeneralRe: c++ projects Pin
originSH9-Aug-07 4:28
originSH9-Aug-07 4:28 
AnswerRe: c++ projects Pin
Jonathan [Darka]10-Aug-07 4:48
professionalJonathan [Darka]10-Aug-07 4:48 
Questioncannot convert parameter 1 from 'cli::array ^' to 'cli::array ^' Pin
BuckBrown7-Aug-07 12:03
BuckBrown7-Aug-07 12:03 
AnswerRe: cannot convert parameter 1 from 'cli::array ^' to 'cli::array ^' Pin
Luc Pattyn7-Aug-07 14:22
sitebuilderLuc Pattyn7-Aug-07 14:22 
GeneralRe: cannot convert parameter 1 from 'cli::array ^' to 'cli::array ^' Pin
BuckBrown8-Aug-07 5:37
BuckBrown8-Aug-07 5:37 
GeneralRe: cannot convert parameter 1 from 'cli::array ^' to 'cli::array ^' Pin
BuckBrown8-Aug-07 7:22
BuckBrown8-Aug-07 7:22 
GeneralRe: cannot convert parameter 1 from 'cli::array ^' to 'cli::array ^' Pin
Luc Pattyn8-Aug-07 7:35
sitebuilderLuc Pattyn8-Aug-07 7: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.