我正在https://bitbucket.org/chromiumembedded/cef/wiki/Tutorial上试用CEF wikipage上的Windows教程.
但是,32位和64位的CEF构建将无法在Visual Studio 2010上构建/运行.
顺便说一句,我正在运行Windows 7(64位)和Visual Studio 2010.
以下是错误:
32位构建
- error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1600' in simple_app.obj
- (A THOUSAND LINES OF ERRORS)
- out\Debug\cefsimple.exe : fatal error LNK1120: 11 unresolved externals
Run Code Online (Sandbox Code Playgroud)
64位构建
- out\Debug\obj\libcef_dll_wrapper\transfer_util.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
- LINK : fatal error LNK1104: cannot open file 'C:\Users\Benj\Desktop\Blueprint Gaming\Chromium Embedded Framework\64 Bit\cef_binary_3.1921.1661_windows64\out\Debug\lib\libcef_dll_wrapper.lib'
Run Code Online (Sandbox Code Playgroud) 我需要有关如何检索屏幕分辨率的帮助,如下图所示.

我找到了这个文档,它真的很有帮助.这是我尝试的代码,基于这些文档:
int numberOfScreens = GetSystemMetrics(SM_CMONITORS);
int width = GetSystemMetrics(SM_CXSCREEN);
int height = GetSystemMetrics(SM_CYSCREEN);
std::cout << "Number of monitors: " << numberOfScreens << "\n"; // returns 3
std::cout << "Width:" << width << "\n";
std::cout << "Height:" << height << "\n";
Run Code Online (Sandbox Code Playgroud)
但是,它仅识别并提供有关主监视器的信息.我如何获得有关其他显示器的信息?
我正在尝试使用Google云端存储客户端库在Appengine上进行简单的上传和下载.
在执行期间,它返回以下错误:
java.lang.NoClassDefFoundError: Could not initialize class com.google.appengine.tools.cloudstorage.oauth.OauthRawGcsServiceFactory
at com.google.appengine.tools.cloudstorage.GcsServiceFactory.createRawGcsService(GcsServiceFactory.java:42)
at com.google.appengine.tools.cloudstorage.GcsServiceFactory.createGcsService(GcsServiceFactory.java:34)
Run Code Online (Sandbox Code Playgroud)
错误指向此处:
@Override
public void doGet( HttpServletRequest request, HttpServletResponse response ) throws IOException {
GcsFilename fileName = getFileName( request );
GcsInputChannel readChannel = gcsService.openPrefetchingReadChannel(fileName, 0, BUFFER_SIZE);
copy(Channels.newInputStream(readChannel), response.getOutputStream());
}
@Override
public void doPost( HttpServletRequest request, HttpServletResponse response ) throws IOException {
GcsOutputChannel outputChannel = gcsService.createOrReplace( getFileName(request), GcsFileOptions.getDefaultInstance() );
copy( request.getInputStream(), Channels.newOutputStream(outputChannel) );
}
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?
我看到这个线程铬嵌入式框架的官方论坛,但似乎没有给出解决方案.说实话,我对C++平台感到不舒服.你能帮我提供一个将CEF绑定到webapp的片段吗?
我想使用默认控件来控制应用程序:
ALT+ F4- 关闭
F5- 刷新浏览器