I noticed that I have the .h file for Pdh, but not the library file for it. I am using Dev-C++ so all the files a .a so following the naming convention it would be libpdh.a that is missing. I tried copying a .lib from lcc-Win32's lib directory but that gave an "File format not recognized". If anyone could either post the links to them or post them (they should be like dlls - free to download) that would be great, so I can debug this program. Thanks.