![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, While in extensive math calculation in MFC application, i used to yield control to windows by calling this code: void YieldControl( void ) { MSG msg ; if( ::PeekMessage( &msg, NULL, 0, 0, PM_REMOVE ) ) { ::TranslateMessage( &msg ) ; : ispatchMessage( &msg ) ;} } How can I do similar thing in .Net application? Thank you, Eitan Barazani |
#3
| |||
| |||
|
|
Take a look at http://msdn2.microsoft.com/en-us/lib...(vs.80).a spx and also at Thread.Sleep and yield statement. Yielding depends on what you are doing. HTH Alex "Eitan" <Eitan (AT) discussions (DOT) microsoft.com> wrote in message news:895BA4FB-3E7F-4D02-86C8-FE0D67191539 (AT) microsoft (DOT) com... Hello, While in extensive math calculation in MFC application, i used to yield control to windows by calling this code: void YieldControl( void ) { MSG msg ; if( ::PeekMessage( &msg, NULL, 0, 0, PM_REMOVE ) ) { ::TranslateMessage( &msg ) ; : ispatchMessage( &msg ) ;} } How can I do similar thing in .Net application? Thank you, Eitan Barazani |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |