I tried to follow the steps in the answer of
[Directx control in browser plugin](https://stackoverflow.com/questions/6097069/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