Home > Software engineering >  Compile on win10 GetFileVersionInfo Windows API calls, it won't be on Windows 7
Compile on win10 GetFileVersionInfo Windows API calls, it won't be on Windows 7

Time:09-24

Look at Microsoft's official documents, said that these functions use Mincore. Lib and Api - ms - win - core - version - l1-1-0. DLL
I compiler running under win10, running under Windows 7, prompt the lack of Api - ms - win - the core - version - l1-1-0. DLL, kao the document on the past, and the lack of a file...
Document say this function since Windows support,
Another post I searched on the Internet, http://bbs.csdn.net/topics/390894979, according to Microsoft document at the time that these functions need to use Version. The lib and Version. DLL, rather than the docs now Mincore. Lib and Api - ms - win - core - Version - l1-1-0. DLL,
Microsoft has changed the dependent libraries?

How many operating systems support?

CodePudding user response:

Think of way to temporarily
 # ifdef WIN10 
# pragma comment (lib, "Mincore. Lib")
# the else
# pragma comment (lib, "version. Lib")
# endif
  • Related