The flashPlayerComponent is really similar to juce_QuickTimeMovieComponent, except specific funtions provided by FlDbg9.ocx.
I copied the EditorCompWrapper from “juce_VstWrapper.cpp” to make a wrapper for the flashPlayerComponent. Instead of choosing file name by adding a file browser, I did dirty and quick way by just hard coding the file path.
In “juce_VSTWrapper::dispatcher”, I replaced the deleteEditor() and createEditor() with the flashcomponentwrapper and call playFlash() right after the object is created.
Object was created successfully. The problem is in flashPlayerComponet::createControlIfNeeded(), “Component::isShowing()” always returns 0, as while the parentComponent_ == 0, getPeer() failed.
If I removed if (isShowing() && ! isControlCreated()) from
createControlifNeeded, in ActiveXControlComponent::createControl(const void* constrolIID), line Component* const peer = getPeer(); failed.
If ActiveXComponent is not a good way to implement existing activeXcontrol into a VST plugin, is there any other way it would work? The problem basically is how to embed a activeX control into Juce dialog as in dll.
Thank you very much!