Page 1 of 1

FlashPlayerControl won't work with IE7

Posted: Mon Nov 20, 2006 2:01 pm
by Jim W.
We had some machines not playing SWFs. The common denominator was IE7. Now we can reproduce it with the samples as described below. Is anyone else having problems?

I made a simple change to the directX sample to get the swf from a url instead of embedded in the exe, and it won't play on a machine with IE7 installed.

Here's what I changed:

// Load movie from resource
// comment out this line
// FPCPutMovieFromResource g_hwndFlashPlayerControl, NULL, _T("SWF1"), _T("SWF"));

//add these line
SFPCPutMovie FPCPutMovie;
FPCPutMovie.lpszBuffer = "http://70.85.186.86/albino_flash001/TheUltimateShowdown(www.albinoblacksheep.com).swf" ;
::SendMessage(g_hwndFlashPlayerControl, FPCM_PUT_MOVIE, 0, (LPARAM)&FPCPutMovie);

if ( FAILED( FPCPutMovie.hr ) )
{
MessageBox( NULL, "Put failed", "Error", MB_OK | MB_ICONSTOP);
return FALSE;
}

Posted: Mon Nov 20, 2006 4:31 pm
by Jim W.
Looks like the latest flashplayercontrol.dll fixes it!

Posted: Mon Nov 20, 2006 4:38 pm
by Softanics
Yes, you are right.

The problem with IE7 is solved.

Thank you.