C + + Builder Create Flash controls
1, through the browser to install a good flashplayer control
2. Create Flashplayer control
Turn on RAD Studio 2010
A Create a new package, named ShockwaveFlash
B Import Flashplayer Control
RAD Studio 2010 Menu Component Select Import Component, select Import ActiveX control, find ShockwaveFlash, select "Next"
Set unit Dir to save the cell file, and the search path (it is recommended to be empty), click Next
Select "ADD Unit to ... project", Finish
(Complete control creation)
Click Compile to display LINK32 Error, find shockwaveflashobjects_ocx.h file, find the following 8 functions, there are two groups, a total of 16, all in front of the function definition plus inline keyword, and then recompile.
GetDispID, RemoteInvokeEx, DeleteMemberByName, DeleteMemberByDispID, Getmemberproperties, GetMemberName, Getnextdispid, Getnamespaceparent
This time the compilation all passed, the Flash control creation completes.
Do a little program to test ... After testing, flash playback is normal.
if (opendialog1->execute () = = True)
{
Shockwaveflash1->movie = opendialog1->filename;
Shockwaveflash1->loop = false;
Shockwaveflash1->play ();
Opendialog1->filename
}