CProgressDlg dlgProgress; // simple dialog with progressbar
this->EnableWindow(FALSE); // disable parent window to make him unclickable
::SetWindowPos(dlgProgress.m_hWnd, this->m_hWnd,0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
dlgProgress.ShowWindow(SW_SHOW); // show new dialog
dlgProgress.CenterWindow(); // center him
dlgProgress.BringWindowToTop(); // bring it to top, because after create they is in the background of the parent dialog, don't know why!!?
There is only one thing that is not ok, i can switch between this two dialogs if i click they icons in the taskbar,
in this case is this little "dlgProgress"(simple Dialog with progressbar) Dialog in the background of hims parent(if i click on parent icon),
and that is what i need to avoid! This little dlgProgress must be on top of hims parent until the process is finish!
From the msdn page for SetWindowPos: http://msdn.microsoft.com/en-us/library/ms633545(VS.85).aspx,
Places the window above all non-topmost windows (that is, behind all topmost windows). This flag has no effect if the window is already a non-topmost window.
I want to know what sort of complexities may arise, if we port an existing application(huge application having so many threads connected to various components) onto a multi-core system.What all the things that can be taken care of while developing an application in order to make it run efficiently in multi-core environment too? If someone have the experience in handling such scenario, please suggest.
Thanks for your comments!! Exactly, I am also worried about the thread/process synchronization issues that may come up in the multi core environment. Can anyone have the experience of facing such issues, or atleast have the knowledge about the issues, if so, please reply?
totally depend on your application architecture, in single core machine, practically each thread on application run on same CPU, means CPU allocate time for Main thread and Workerthread, in that case if program is not correctly syncronize, it can still work.
But on multicore CPU, if every thread utilize service of diffrent CPU, here syncronization should be perfect otherwise be ready for new defect coming your way.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
Hello, everybody. I seek the watermark subject in codeproject, although some articles give fact about the watermark, I need further more detail about the information. Sorry for my poor English, non-native English speaker. Thanks!
Hey guys, i am having a problem formatting my text in a file. what i did was to extract some information from a html file and i would like to format it. Currently my information comes out in this way...
Code: Select all
Cast (Cast overview, first billed only), Sam Worthington ... Jake Sully ,Zoe Saldana ... Neytiri ,Sigourney Weaver ... Dr. Grace Augustine ,
what i would like to achieve is for the program to read the "," and then based on then "," paste it to a newline and continue.. for example...
Code: Select all
Cast (Cast overview, first billed only)
Sam Worthington ... Jake Sully ,
Zoe Saldana ... Neytiri ,
Sigourney Weaver ... Dr. Grace Augustine
Anybody can give some clue on how i can format my text according to this way? Hope for some help in this. Thanks!
so I'd sugget searching for the bracket ')', adding one more to the character position, then removing that part of the string... then, the rest of what you need can be performed by tokenising (look it up, plenty of info/examples around) on the ',', giving you the sub-strings of cast ...
Last Visit: 31-Dec-99 18:00 Last Update: 12-Apr-21 22:40