i wrote a code to get hard disk info and used FindFirstVolume(). however, the console-based application was ok but when i made an MFC application doing the same thing, it did not compile correctly. i think the problem is with my redeclaration of _WIN32_WINNT in the MFC application. this is because there are header files in the MFC application that already assigns the value of _WIN32_WINNT and i can't seem to find all of the header files that do this.
jov0708
0
Newbie Poster
Recommended Answers
Jump to Postiit did not compile correctly..
What does the compiler say? What errors are there? I've just tried using FindFirstVolumeW in a MFC-app, but it works fine for me.
Jump to PostWhat is the error? You can always redifine _WIN32_WINNT as per your target OS
All 6 Replies
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
dubeyprateek
26
Junior Poster
jov0708
0
Newbie Poster
jov0708
0
Newbie Poster
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
jov0708
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.