I need to develop a software which will get installed in the user pc and reads the phone number from the attached modem. This phone number will be the users own number not the incoming one. Is it possible using Ms-Comm control?
My experience with the MSComm control makes me recommend you to not use the MSComm control at all. It introduces more problems than it solves. Writing the communication with a device such as a modem is fairly simple. For an example on how to do serial communication you can have a look here[^].
If you have any requirements on performance regarding speed you cannot use MSComm.
Whether you use the MSComm control to communicate with the modem or you roll your own solution is up to you. But I'm very curious on how you're planning on getting the phone number of the user where the modem is installed. I am not aware of such functionality or any AT command that supports it.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
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!