Join 149,537 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,534 people online right now. Registration is fast and FREE... Join Now!
hi all...i am given this assignment....please help me out in this..
suppose i have an input text file in which i have name of some computer application like notepad, Internet Explorer etc..also a specified time for which that particular aaplcation can run in a day is given alongside the name of the application. Now i need to check if any of the program in the input text file is running or not. I also have an output file. If the particular application is running then i will check whether it's name is written in the output file or not. iI will repeat this check process after every 10 seconds. If the program is running then i will add 10 to the time of that application in output file. I will repeat this procedure till both the times in input and output files get matched. After they get matched, i will kill the process for that day. But after the date gets change, the application will reset to zero and the same procedure gets repeated.
please give me the idea for coding what to do and how to do in this problem...This is related to my job and i need to provide the answer by tomoorow's morning...
I know i've not provided any coding and this is against the rule but i really need help..please just give me some hint as to how the coding is to be done... Thank you
I am using VC++... i have done the coding for how to run a window... Also how to use the timer and increment count after every 10seconds... But now i need to connect the two of them... I need to increment the count after every 10seconds only if the application that i opened earlier is still open. Please do help me in this..Thankyou
This post has been edited by doubts: 28 Nov, 2007 - 09:06 PM
If you're using Visual VC++ why are you posting this question in the Visual Basic Forum? Moving to the C and C++ Forum, you'll have better luck there than in a VB forum
If I understand correctly you have 2 applications. 1 that keeps track of a timer and updates it every 10 secs.
The 2nd, I assume is also a GUI based application? If it is then you can use the FindWindow() API to get a handle to the 2nd application (I don't know if FindWindow() works with a dos app)