16
I Use This!
Inactive

News

Analyzed about 14 hours ago. based on code collected about 14 hours ago.
Posted over 12 years ago by [email protected] (Richard Bateman)
Ahh. That makes sense =] glad you figured it out. Richard
Posted over 12 years ago by [email protected] (Jochen Brüggemann)
I really seem to be in weekend mode...Of course you are right, but my code works anyway because I *am* within a member function while calling. So to be clear I changed the code: FB::PluginWindow* pluginWindow = getPlugin()->GetWindow(); ...and it still works :-) 2013/2/2 Jochen Brüggemann <[email protected]>
Posted over 12 years ago by [email protected] (Jochen Brüggemann)
hhhmmm. But it does! I have an implementation of getPlugin() in my class (I changed "my" to "plugin" in my last post - in my source "my" is the name of my project): myPtr myAPI::getPlugin() { myPtr plugin(m_plugin.lock()); if (!plugin) { throw FB::script_error("The plugin is invalid");
Posted over 12 years ago by [email protected] (Richard Bateman)
Again, let's go back to that C++ primer. getPlugin is not a static method, you need to call it on your plugin instance. pluginAPI::getPlugin() will not work. Richard
Posted over 12 years ago by [email protected] (heinob)
O.k., that seemed to be a kind of blackout. I have got it now: FB::PluginWindow* pluginWindow = pluginAPI::getPlugin()->GetWin dow(); FB::PluginWindowWin* w = (FB::PluginWindowWin*)(pluginW indow); HWND hwndBrowser = GetAncestor( w->getHWND(), GA_ROOTOWNER ); Thanks for your patience....and not being offensive ;-)
Posted over 12 years ago by [email protected] (Richard Bateman)
I'm not trying to be offensive, but if the idea of casting "NULL" to the pointer you need and then calling a method on that pointer didn't automatically set off alarm bells in your head then you really need to spend some time with a C++ primer. ... [More] There are two types of plugins: windowed and windowless. Windowed plugins are what FireBreath creates by default. Since you don't know otherwise, you have a windowed plugin (you would have had to intentionally change it). It doesn't matter whether your make your plugin visible or not, you are still windowed. There is a possibility that if you have it completely hidden your window may never be given to you, depending on how you hide it; you need that window to make it work, however. I usually "hide" plugins by making them width="1" height="1" to make sure the browser doesn't get too creative about how it "hides" the plugin and that would probably do what you need. [Less]
Posted over 12 years ago by [email protected] (heinob)
Just to be clear: What exactly do you mean by "invisible"? In another post Richard used the word "windowed". Can you explain me the difference between visible/windowed/invisible/unw indowed? Thanks in advance. Am Freitag, 1. Februar 2013 19:38:59 UTC+1 schrieb Georg Fritzsche:
Posted over 12 years ago by [email protected] (heinob)
The snippet cannot not give a hint wether I have a "windowed" plugin, because I copied it from the stackoverflow link I posted below. Indeed I do not know what you exactly mean by "windowed". I thought my plugin is *not* windowed because it is an invisible container of service functions. No UI, besides
Posted over 12 years ago by [email protected] (John Tan)
Oh I forgot to mention, my Xcode version is 4.3.2
Posted over 12 years ago by [email protected] (John Tan)
Hi Richard, I have the same problem as the thread starter too. I have tried compiling it to 32bit and universal 32-64 bit but both does not load on Safari and Chrome. I have tried the FBTestPlugin and it is OK. I have tried building a skeleton FB plugin and it works too. My OS is 10.7.5. This Basic Media