Windows system load % in C

Status
Not open for further replies.

dbell

Right off the assembly line
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

Legen-wait for it-dary!
I have a suggestion, not a solution. Ditch Borland and DevCPP. Use VC++ 2008 Express edition and download the Platform SDK if needed.
 
OP
D

dbell

Right off the assembly line
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

Legen-wait for it-dary!
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
 
OP
D

dbell

Right off the assembly line
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
 
Status
Not open for further replies.
Top Bottom