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

Managed C++/CLI

 
GeneralRe: minimizing dialog to system tray Pin
iddqd5157-Aug-07 3:27
iddqd5157-Aug-07 3:27 
QuestionRepainting Display Seems Slow Pin
BuckBrown6-Aug-07 11:03
BuckBrown6-Aug-07 11:03 
AnswerRe: Repainting Display Seems Slow Pin
Luc Pattyn6-Aug-07 11:10
sitebuilderLuc Pattyn6-Aug-07 11:10 
GeneralRe: Repainting Display Seems Slow Pin
BuckBrown6-Aug-07 11:52
BuckBrown6-Aug-07 11:52 
GeneralRe: Repainting Display Seems Slow Pin
Luc Pattyn6-Aug-07 12:14
sitebuilderLuc Pattyn6-Aug-07 12:14 
GeneralRe: Repainting Display Seems Slow Pin
BuckBrown7-Aug-07 6:24
BuckBrown7-Aug-07 6:24 
GeneralRe: Repainting Display Seems Slow Pin
Luc Pattyn7-Aug-07 6:51
sitebuilderLuc Pattyn7-Aug-07 6:51 
GeneralRe: Repainting Display Seems Slow Pin
BuckBrown7-Aug-07 7:55
BuckBrown7-Aug-07 7:55 
Cool, that's nice to know because I do rotate the drawing. Using information gleened from Nishant Sivakumar code project article "Managed C++ and Windows Forms" I created a function in the Form1 class as follows...

protected: virtual void OnPaint(PaintEventArgs^ e) override
{
Graphics^ graphics = e->Graphics;
DisplayWaferMap(graphics);
}

And this seems to work the way you would want it, but there is another problem that may have a simple if statement check solution. The way I had this was that when the File->Open was invoked, a file was selected and the Wafer^ object instansiated acording to information in the file. Because 'DisplayWaferMap' uses the Wafer^ object the application dies because the Wafer^ object does not exist yet. Is there a method that will tell me if an object exists? Or should I instanciate the Wafer^ object in the Form1 constructor and set a variable myself (seems easy enough)? On the display speed issue I think I have a guess as to what is going between MFC and this. With MFC I beleive that I was painting the entire display (internally) and then issuing an Update() command that would then physically paint the screen. With the CLI code that I have, if the screen is physically repainted with each Graphics->DrawString() command then that's a huge number of physical repaints comapred to just one after all the information has been changed.

Buck
GeneralRe: Repainting Display Seems Slow Pin
Luc Pattyn7-Aug-07 13:36
sitebuilderLuc Pattyn7-Aug-07 13:36 
Questionhow to convert a String to datetime and do subtraction of time ??? Pin
aefmaaradji6-Aug-07 1:01
aefmaaradji6-Aug-07 1:01 
AnswerRe: how to convert a String to datetime and do subtraction of time ??? Pin
Luc Pattyn6-Aug-07 1:12
sitebuilderLuc Pattyn6-Aug-07 1:12 
Questiondouble(*)[2] ? Pin
dalgados5-Aug-07 21:18
dalgados5-Aug-07 21:18 
AnswerRe: double(*)[2] ? Pin
prasad_som5-Aug-07 22:22
prasad_som5-Aug-07 22:22 
Questionhow to declare a matrix in visual c++.net 2005 c++ cli ? Pin
aefmaaradji5-Aug-07 0:28
aefmaaradji5-Aug-07 0:28 
AnswerRe: how to declare a matrix in visual c++.net 2005 c++ cli ? Pin
mid=57415-Aug-07 5:17
mid=57415-Aug-07 5:17 
GeneralRe: how to declare a matrix in visual c++.net 2005 c++ cli ? Pin
aefmaaradji5-Aug-07 12:09
aefmaaradji5-Aug-07 12:09 
GeneralRe: how to declare a matrix in visual c++.net 2005 c++ cli ? Pin
mid=57415-Aug-07 12:16
mid=57415-Aug-07 12:16 
GeneralRe: how to declare a matrix in visual c++.net 2005 c++ cli ? Pin
George L. Jackson5-Aug-07 13:24
George L. Jackson5-Aug-07 13:24 
GeneralRe: how to declare a matrix in visual c++.net 2005 c++ cli ? Pin
aefmaaradji6-Aug-07 0:52
aefmaaradji6-Aug-07 0:52 
QuestionHow to wrap native array? Pin
mid=57414-Aug-07 9:06
mid=57414-Aug-07 9:06 
AnswerRe: How to wrap native array? Pin
Luc Pattyn4-Aug-07 9:24
sitebuilderLuc Pattyn4-Aug-07 9:24 
GeneralRe: How to wrap native array? Pin
mid=57414-Aug-07 9:30
mid=57414-Aug-07 9:30 
GeneralRe: How to wrap native array? Pin
Luc Pattyn4-Aug-07 10:03
sitebuilderLuc Pattyn4-Aug-07 10:03 
GeneralRe: How to wrap native array? Pin
mid=57414-Aug-07 10:38
mid=57414-Aug-07 10:38 
Questiontray icon query Pin
dona jain3-Aug-07 19:50
dona jain3-Aug-07 19:50 

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.