Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 11-03-2009, 04:48 AM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Mar 2009
Posts: 3
Default Windows system load % in C


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.
( http://www.codeguru.com/forum/archiv.../t-270120.html )

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

Thanks!

Dave
dbell is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 12-03-2009, 06:17 PM   #2 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: Windows system load % in C

I have a suggestion, not a solution. Ditch Borland and DevCPP. Use VC++ 2008 Express edition and download the Platform SDK if needed.
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Old 12-03-2009, 09:55 PM   #3 (permalink)
Right Off the Assembly Line
 
Join Date: Mar 2009
Posts: 3
Default Re: Windows system load % in C

Quote:
Originally Posted by dheeraj_kumar View Post
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
dbell is offline  
Old 14-03-2009, 06:55 PM   #4 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: Windows system load % in C

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
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Old 16-03-2009, 09:45 PM   #5 (permalink)
Right Off the Assembly Line
 
Join Date: Mar 2009
Posts: 3
Default Re: Windows system load % in C

Quote:
Originally Posted by dheeraj_kumar View Post
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
Attached Files
File Type: txt compile_log.txt (3.4 KB, 5 views)
dbell is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Sujeet
- by gforz
- by soumya
- by icebags

Advertisement




All times are GMT +5.5. The time now is 03:09 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2