Hello,
I'm writing a function that takes in a handle and returns the CPU usage for that function. When I call the GetProcessTimes function, the program continually runs but never stops. I threw...
Type: Posts; User: smarta_982002
Hello,
I'm writing a function that takes in a handle and returns the CPU usage for that function. When I call the GetProcessTimes function, the program continually runs but never stops. I threw...
Hello,
I have a program that is getting a process id and calculating its cpu usage. When I run it on my computer, it runs for a second or two and completes successfully. I ran it on a server...
Thanks for the advice. I added my account to the admin group of the server. I run it as an .exe under scheduled tasks, but now the code runs and never stops. It doesnt use up any CPU in task...
Hello,
I'm using the following function to get the information about a process and pass the process handle to a function that gets CPU usage. When I run this code on my Windows XP system, it...
By "wall-time", do you mean the dwTime portion of this line
iProcUsage = (((lKernel+lUser)*100 ) / dwTime );
So since I have 2 processes, would I change it to this?
I believe that it is a multiprocessor system. How do I remedy the problem?
Hello,
I'm writing a function to find the CPU Usage, simiar to the one shown in Task Manager. The following is what I have so far. The values seem reasonable for low numbers, but when I see it...
Yes, the task is running under the logged on users account and can interact with the desktop
The program converts the file into a zip. Then it hangs when it tries to go from a zip to an exe.
Hello,
I'm trying to run code to compress some files into an exe format. The files seem to convert into a zip fine. But then they wont convert from zip into an exe. Then the program gets hung. ...
Hello,
I'm running some code to compress some files. When I run a scheduled task the program hangs sometimes. However, when I run it directly from the command line, it works every time. I...
I'm trying to write a function to create a log file that includes the current system time in the file name. When I run this code, I have an error code of "invalid argument" for fopen. When I try to...
Hello,
I'm trying to write a function that will create a log file. I have code in here to get the current system time and day and doing a strcat to add it to the file name. However, when I run...
I'm trying to create a program that creates a log file and enters in information.
I created the following function to just create the file. However, whenever I run it, the program results in an...
I'm trying to write code that searches through a folder and retrieves the names of the files in the folder.
So far I have the following code. When I run it, I just keep getting the Usage...
I'm trying to write code so that I can search through a folder and determine the last date that each file was modified. I have the code to determine the date that the files were modified, but I dont...
is "substring found in buffer" supposed to refer to me looking for the tag <QUAL>? If so, how do I look for <QUAL>? Thanks again for your help
Thanks for your help. What code do I write to scan through the stream looking for the tag? I'm a mediocre programmer so I'm not sure what I would write to do that
I have a large file of HTML type format. I've included a sample of it below. I'm trying to find the contents of whats between a specific tag. In this case, I'm trying to find and store the...