We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Prohledat stránky podpory

Vyhněte se podvodům. Za účelem poskytnutí podpory vás nikdy nežádáme, abyste zavolali nebo poslali SMS na nějaké telefonní číslo nebo abyste sdělili své osobní údaje. Jakékoliv podezřelé chování nám prosím nahlaste pomocí odkazu „Nahlásit zneužití“.

Zjistit více

How to develop a plugin for 64-bit windows 2008 server?

  • 3 odpovědi
  • 1 má tento problém
  • 7 zobrazení
  • Poslední odpověď od gnittala

more options

I have developed a plugin to open local application from web pages, but the plugin could only run on 32-bit windows and 32-bit and 64-bit windows 7, it couldn't work on 64-bit windows 2008 server. The plugin was compiled by vs2008 studio on 32-bit windows xp. Any instructions or advices, men of genius? Thanks

I have developed a plugin to open local application from web pages, but the plugin could only run on 32-bit windows and 32-bit and 64-bit windows 7, it couldn't work on 64-bit windows 2008 server. The plugin was compiled by vs2008 studio on 32-bit windows xp. Any instructions or advices, men of genius? Thanks

Všechny odpovědi (3)

more options

Hello, Do you have any logs on what happens when you try to load the plugin on Windows 2008 server? Given that you mentioned that it is working on 64-bit Windows 7, I would think this might have to do with some access credentials.

Any logs from the developer console will be very helpful to narrow down the issue.

Thank you

more options

Hi Gnittala,

Thanks for your reply.

I debug the javascript code in firebug on windows 8 and found that firefox would be not responding while executing "document.body.append(myPlugin)".

My javascript code is below: function openLocalApp(cmdPath, cmdLine) { var npMyPlugin = navigator.mimeTypes["application/mozilla-npruntime-scriptable-plugin"]; if (npMyPlugin) { var myPlugin = document.createElement("embed"); myPlugin.style.visibility = "hidden"; myPlugin.type = "application/mozilla-npruntime-scriptable-plugin"; myPlugin.width = 0; myPlugin.height = 0; document.body.appendChild(myPlugin); myPlugin.foo(cmdPath, cmdLine); } else { alert("Failed to create the plugin!"); } }

And firefox plugin's source code copys from the following link: http://mxr.mozilla.org/seamonkey/source/modules/plugin/samples/npruntime/ Just changed a little.

I know the sample is very old, but newer proper sample couldn't be found. So if you can give me a newer sample, I'll appreciate. Thanks again.

Upravil uživatel jackey_option dne

more options

You didn't mention the code snippet where your plugin is getting instantiated and seeing that will be helpful. Are you sure that the myplugin object was non-null when you were trying to make the appendchild function?

Also, can you please use dependency walker to check your DLL for missing dependencies on Windows server 2008 64-bit. May be the DLL load is failing because some library is missing.

I am not well versed with the changes in the NPAPI plugin architecture, so it might be worth posting your query to this group Mozilla plugin dev