SOLVED SOLVED SOLVED
Read entire thread for solution...
==============================================
I have tried to build a simple hello world browser plug-in. For some reason FireFox doesn't see it. But it doesn't have any issues with the demo browser plug-in. Here are the steps i followed to create the hello world plug-in.
- Run introjucer (built using VS2012), create a new DLL project.
- Rename the juce-master folder to juce-master-REMOVE (I do this make sure VS doesn't attempt to read/build from the origianl source folders)
- open VS2010 project with VS2012, do not update to 2012 libraries when asked.
- copy BrowserPluginCharacteristics.h from demo plug-in and edit (See attached edited copy)
- create npHelloWorld.cpp (attached)
- copy juce-master...../modules/juce_browser_plugin_client folder to <project>...\JuceLibraryCode
- Add juce_browser_plugin.cpp to 'Juce Library Code' folder in project
- Add --#include "modules/juce_browser_plugin_client/juce_browser_plugin.h"-- to JuceHeader.h (after juce_video.h)
- Add --#include "BrowserPluginCharacteristics.h"-- to AppConfig.h (in the user editable section)
- Add $(ProjectDir)..\..\Source in 'additional include dirs' in the project settings
- Clean/rebuild on release
- create testplugin.html (attached)
- copy dll to %appdata%\mozilla\plugins folder
When I start FF, and browse to about:plugins, I see the juce demo plugin, but not mine. If I open the testplugin.html file the javascript console (F12) shows that it fails to locate/load the plug-in. I assume my issue is with the build and/or installation process. I followed the same install process (copy the dll to ...\plugins folder), so I have to think the build is different.
I noticed that when I build the demo plugin I get a couple of linker warnings about some interfaces should be made private. But I get the same warnings in my build. The big difference between the two build processes, is that with my build, I get a bunch of warnings from ...wrapper/juce_npapi_gluecode.cpp and ...wrapper/juce_activex_gluecode.cpp.
Any ideas what I might be doing wrong?