DIGIT-ARC read-only archive · snapshot: July 23, 2026

Windows system load % in C

5 posts · originally from https://geek.digit.in/community/threads/windows-system-load-in-c.110492/

D
dbell Original post #1
Mar 11, 2009 at 4:48 AM
I want to create a small app that needs to read the system load %.
Would prefer to write it in C, using the Borland BCC55 tools, with the Bloodshed Dev-Cpp IDE.
I found a simple example using the pdh (Performance Data Helper) dll, but when I tried to compile it, I received tons of errors, apparently due to incompatibility with stdio.
( *www.codeguru.com/forum/archive/index.php/t-270120.html )

I see others in this group have referenced the BCC tools, so hopefully someone can help steer me correctly.

Thanks!

Dave
dheeraj_kumar
Mar 12, 2009 at 6:17 PM
I have a suggestion, not a solution. Ditch Borland and DevCPP. Use VC++ 2008 Express edition and download the Platform SDK if needed.
D
dbell #3
Mar 12, 2009 at 9:55 PM
I have a suggestion, not a solution. Ditch Borland and DevCPP. Use VC++ 2008 Express edition and download the Platform SDK if needed.

Yeah, well, "old dogs", etc.
1) Fairly long learning curve for a completely new IDE, Win32 apps, instead of console target, etc.
2) Already have Visual Studio (here at work), and haven't hardly tried to navigate it!
3) Can't install Express, since the nanny state our corporate infrastructure imposes on us refuses to release admin rights any more. Probably can't install SDK, if I need that, either!

Dave
dheeraj_kumar
Mar 14, 2009 at 6:55 PM
1. It supports console apps. The IDE is pretty easy to learn. I moved from VC++6 to VC++ 2008 IDE directly, everything was changed but a half hour later I was totally at ease. I have used Dev-C++ so I can tell you its easy to migrate :)
2. :)
3.
LINK HERE

www.dll-files.com for pdh.dll
D
dbell #5
Mar 16, 2009 at 9:45 PM
1. It supports console apps. The IDE is pretty easy to learn. I moved from VC++6 to VC++ 2008 IDE directly, everything was changed but a half hour later I was totally at ease. I have used Dev-C++ so I can tell you its easy to migrate :)
2. :)
3.
LINK HERE

www.dll-files.com for pdh.dll

1) I will give it a try, if I can get it to install. We're very limited in what we can accomplish, outside corporate-authorized guidelines.
3 and the dll-files link) I already do have pdh.dll in \windows\system32, and what appear to be correct lib and include files.
The problem is the pile of errors that come from redefinition of something in stdio.h, stopping the build.

I'll attach the example source (very short) and compiler log.
Maybe someone will see something obvious.

Thanks!

Dave