问题
I would like to use CEF with VS 2017 using C++ (not C#, so CEFSharp won't work here). I can't quite understand how to do this. From what I have read, it seems like I need to build the source into a .sln file and then modify the existing code, however their site also says there are binaries available to download, which is confusing me.
How do I program in C++ using CEF and VS 2017?
回答1:
- Download CEF3 binaries, and extract archive to
folder - Download and install CMake
- Open CMake, and set:
- Where is the source code:
folder - Where to build the binaries:
folder/build
- Where is the source code:
- Press Configure
- Press Generate
- Open solution in
folder/build/cef.sln - Build Debug/Release
- Reference in your project
folder/build/libcef_dll_wrapper/[Debug|Release]/libcef_dll_wrapper.lib - Copy files to your bin folder:
folder/[Debug|Release]folder/Resources
来源:https://stackoverflow.com/questions/45142685/how-to-use-chromium-embedded-framework-with-visual-studio-2017-c