Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Another API problem for you folks.
Why is it that when I use the GetCurrentHwProfile() I keep getting this error from my compiler. Incidentally, I am using Windows XP and the compiler is VS6.
error C2065: 'GetCurrentHwProfile' : undeclared identifier.
The same message also appears when I use the HW_PROFILE_INFO.
error C2065: 'HW_PROFILE_INFO' : undeclared identifier.
I have used the correct header files but still I keep getting the errors.
I then decided to declare both the structure and the function explicitly in the application and naturally enough the program compiled without any complaints but the output was pure gibberish.
What is happening and more importantly why?
Oh! yes, I did use the example in toto given by Microsoft with the same result.