FireBreath FB :: PluginWindowWin包含问题 [英] FireBreath FB::PluginWindowWin include problem

查看:112
本文介绍了FireBreath FB :: PluginWindowWin包含问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图按照答案的步骤进行操作 浏览器插件中的Directx控件

I tried to follow the steps in the answer of Directx control in browser plugin

但是当我添加在中提到的解决方案时 http://colonelpanic.net/2010/11/firebreath-tips -在Windows上绘画/ FireBreath提示:在Windows上绘图

but when I added the solution mentioned in http://colonelpanic.net/2010/11/firebreath-tips-drawing-on-windows/ FireBreath Tips: Drawing on Windows

" 1.特定于您的插件对象窗口

"1.Make your plugin object windows specific

将EVENTTYPE_CASE中指定的事件源的类型更改为FB :: PluginWindowWin(以及处理程序中的类型),即可按照需要的方式投射对象."

change the type of the event source specified in EVENTTYPE_CASE to FB::PluginWindowWin (as well as the type in the handlers) and you will have your object cast in the way you need it."

我遇到了119个错误,所有错误都在winsock2.h文件中,该文件包含在其他文件中, 说的是重新定义,不同的联系.该怎么办?

I got 119 errors, all are in winsock2.h file, which I included in other file, saying redefinition, different linkage. what to do?

谢谢莎拉

推荐答案

当尝试包含windows.h和winsock2.h时,这是一个普遍的问题.

This is a general problem occures when one tries to include windows.h and winsock2.h.

windows.h本身包含winsock.h,因此,如果在它之后包含winsock2.h,则会出现一些重新定义冲突.

windows.h includes winsock.h itself, therefore, if you include winsock2.h after it, several redefinition conflicts arise.

解决方案:首先包含"winsock2.h".

Solution: include "winsock2.h" first.

这篇关于FireBreath FB :: PluginWindowWin包含问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆