Error "Can not find access point of LoadPackagedLibrary procedure in DLL file KERNEL32.dll" when compiling project on windows 7

Hello. I have been developing a program on Windows 10 computer with VS2017, it builds and runs nice there. Now I passed a project to another person who uses VS2017 on Win7. The project builds OK, but it does not start, because of this error:

--------------------------- Application1.exe - Access point not found ---------------- 
----------- Can not find access point of LoadPackagedLibrary procedure in DLL file KERNEL32.dll. 
--------------------------- OK ---------------------- -----

How to fix this? I need the program to be running on Win7 too.

Ivan P's picture

This project builds and runs on windows 10, on another machine.

And the build does not start on Windows 7, same error.

This appears to be a compatibility issue!