newer versions of header files

G

Glenn M

I have visual c++ 6.0 and i want to use a function
(setupuninstalloeminf) in setupapi.h that was not part of the original
setupapi.h shipped with vsc++ but was added later.

how do i go about getting the newer header file with the newer
function on my system. simply copying the header file from my visual
c++.net install to the vsc++ install seems to produce errors.

do i need to copy across a newer verion of setupapi.lib too, is that
all i need to copy across and is there a location that you can use to
download the latest verions of these components.

any help appreciate

thanks
 
U

Unforgiven

Glenn said:
I have visual c++ 6.0 and i want to use a function
(setupuninstalloeminf) in setupapi.h that was not part of the original
setupapi.h shipped with vsc++ but was added later.

how do i go about getting the newer header file with the newer
function on my system. simply copying the header file from my visual
c++.net install to the vsc++ install seems to produce errors.

This is off-topic for this group, as setupapi.h is not a Standard C++
header, but part of Windows specific header files.
Therein also lies your answer. You need the Windows Platform SDK. You can
get it here (both as an on-line installation, as well as full download):
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/

After you install the SDK under the path where you installed it (typically
C:\Program Files\Microsoft SDK) there will be a "lib" folder and a "include"
folder. These contain the latest versions of the header files and libraries
belonging to Windows. The last step is instructing Visual C++ to use these
headers. In Visual C++ 6, go to Tools/Options, the Directories tab. Add the
"include" dir from the Platform SDK to the list for Include files, and the
"lib" dir to the list for Library files. Make sure they are at the *top* of
the list, otherwise it'll still use the old files, since it would see those
first.

You can also instruct VC++.NET to use these files, the same settings as in
VC6 can be found in VC++ under the "Projects/VC++ Directories" category in
the options window.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top