FireBreath FB::PluginWindowWin 包含问题
我尝试按照答案中的步骤进行操作 浏览器插件中的Directx控件
但是当我添加中提到的解决方案时 http://colonelpanic.net/2010/11/firebreath-tips -在Windows上绘图/ FireBreath 提示:在 Windows 上绘图
“1.使您的插件对象窗口特定,
将 EVENTTYPE_CASE 中指定的事件源类型更改为 FB::PluginWindowWin(以及处理程序中的类型),然后您的对象就会以这种方式转换你需要它。”
我收到了 119 个错误,所有错误都在 Winsock2.h 文件中,我将其包含在其他文件中, 话说重定义,不同联动。该怎么办?
谢谢,萨拉
I tried to follow the steps in the answer of
Directx control in browser plugin
but when I added the solution mentioned in
http://colonelpanic.net/2010/11/firebreath-tips-drawing-on-windows/
FireBreath Tips: Drawing on Windows
"1.Make your plugin object windows specific
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."
I got 119 errors, all are in winsock2.h file, which I included in other file,
saying redefinition, different linkage. what to do?
Thanks, Sara
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否添加了#include“Win/PluginWindowWin.h”?
另一件可以帮助的事情是在文件的早期#include“win_common.h”。某些 Windows 标头和 Winsock 的包含顺序很重要,因此如果它们顺序混乱,可能会导致此问题。
did you add the #include "Win/PluginWindowWin.h"?
another thing that can help that is #include "win_common.h" early in the file. The include order of certain windows headers and winsock matters, so that can cause this issue if they get out of order.
这是当尝试包含 windows.h 和 Winsock2.h 时出现的常见问题。
windows.h 包含winsock.h 本身,因此,如果在其后包含winsock2.h,则会出现一些重新定义冲突。
解决方案:首先包含“winsock2.h”。
This is a general problem occures when one tries to include windows.h and winsock2.h.
windows.h includes winsock.h itself, therefore, if you include winsock2.h after it, several redefinition conflicts arise.
Solution: include "winsock2.h" first.