C + + Builder create a Flash control __c++

Source: Internet
Author: User

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
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.