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.
|
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
|