Search:

Type: Posts; User: smarta_982002

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,877

    GetProcessTimes hanging

    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...
  2. Replies
    3
    Views
    2,079

    Program running long

    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...
  3. Replies
    2
    Views
    4,439

    Thanks for the advice. I added my account to the...

    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...
  4. Replies
    2
    Views
    4,439

    Invalid Handle Error

    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...
  5. Replies
    7
    Views
    8,278

    By "wall-time", do you mean the dwTime portion of...

    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?
  6. Replies
    7
    Views
    8,278

    I believe that it is a multiprocessor system. ...

    I believe that it is a multiprocessor system. How do I remedy the problem?
  7. Replies
    7
    Views
    8,278

    Calculating CPU Usage

    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...
  8. Replies
    4
    Views
    1,767

    Yes, the task is running under the logged on...

    Yes, the task is running under the logged on users account and can interact with the desktop
  9. Replies
    4
    Views
    1,767

    The program converts the file into a zip. Then...

    The program converts the file into a zip. Then it hangs when it tries to go from a zip to an exe.
  10. Replies
    3
    Views
    1,606

    Files wont zip into 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. ...
  11. Replies
    4
    Views
    1,767

    Problems in code with winzip

    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...
  12. Replies
    13
    Views
    14,560

    Creating Log File

    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...
  13. Replies
    13
    Views
    14,560

    Creating Log File

    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...
  14. Replies
    4
    Views
    2,200

    Error when creating file

    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...
  15. Replies
    1
    Views
    2,389

    Finding files in a directory

    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...
  16. Replies
    3
    Views
    1,641

    Directory Functions

    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...
  17. Replies
    6
    Views
    1,171

    is "substring found in buffer" supposed to refer...

    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
  18. Replies
    6
    Views
    1,171

    Follow up

    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
  19. Replies
    6
    Views
    1,171

    Search through HTML

    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...
Results 1 to 19 of 19