I have to support an old project that used to produce some SWF files, I want to render them in a Window.
I found flash installation at here which installs correctly and the viewer is able to play the swf files.
However, on using the ActiveX control IShockwaveFlash
#import "progid:ShockwaveFlash.ShockwaveFlash"
CComPtr<IShockwaveFlash> p = ... // creates the ActiveX control successfully.
std::wstring xx = ... // the file
_bstr_t x(xx.c_str());
hr = p->put_BackgroundColor(RGB(0,0,255));
hr = p->put_Movie(x);
long fn = 0;
p->Play();
hr = p->get_FrameNum(&fn);
All functions succeed but frame num is 0 and I get this output
It used to work in the past. What am I missing? The same occurs when doing regsvr32 on flash.ocx. It succeeds and the ActiveX control is created, but it shows an invalid image.
