Glenn M wrote:
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/...sdk/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.
--
Unforgiven