Solved

TAnimate Error when load file .AVI Size 4.8 MB....How to have it fixed?

Posted on 2002-05-09
6
452 Views
Last Modified: 2010-04-04
        I have build Resource Only DLL, say, 'TEST.DLL' contain Resource name 'TEST01' in which built from 'TEST.AVI' file in order to protect AVI from externally used with any AVI player... Then comes the time problems revealed....
         I've noticed that whenever I tried to Attached file AVI to TAnimate components and AVI is huge in size...It will then show Error message at design time 'Can't load AVI'. Then I turn back to smaller file size, it works properly...I've looked into code in Comctrls.PAS where TAnimate's source code lie... I wonder how to fix the problems or how to download any component capable of load AVI file over 4 MB from DLL or how to write a code to load AVI Resource from DLL and have it shown in form
         Show me full source code... I'll give you back my points, please....
0
Comment
Question by:DOOM_DAEMON
6 Comments
 
LVL 9

Expert Comment

by:ginsonic
Comment Utility
listening... for moment
0
 
LVL 17

Expert Comment

by:inthe
Comment Utility
hi,
TMediaplayer would be better..
i know you metioned
"in order to protect AVI from externally used with any AVI player... "
but you cant really protect it as there are many editors etc avialable on internet for getting the avi from the res dll anyway.
0
 
LVL 1

Author Comment

by:DOOM_DAEMON
Comment Utility
       I know that TMediaPlayer is capable of displaying .AVI file in TAnimate but I insist... I just want it harder to extract my own AVI file from DLL. Though I know that Resource Explorer is capable of doing such stuff...So how to Extract .AVI and have it shown on my form still be my Question and I increase points up to 200 for you guy who can help me out... Please do me a favor...
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 1

Author Comment

by:DOOM_DAEMON
Comment Utility
       I know that TMediaPlayer is capable of displaying .AVI file in TAnimate but I insist... I just want it harder to extract my own AVI file from DLL. Though I know that Resource Explorer is capable of doing such stuff...So how to Extract .AVI and have it shown on my form still be my Question and I increase points up to 200 for you guy who can help me out... Please do me a favor...
0
 

Accepted Solution

by:
PEGGY earned 250 total points
Comment Utility
Hi,
I had a similiar problem with TAnimate.If u r not very keen on using TAnimate then may be this suggestion can be of use to you.

If u check MPlayer.pas(TMediaPlayer) source, u will find that the Display property of TMediaPlayer is of type TWincontrol...ie. u do not need to use TAnimate with TMediaPlayer....u can simply use any other TWincontrol component to display ur avi....and that too of a much bigger size..

Just drop a Panel (or any TWincontrol) on ur form.
Drop the MediaPlayer component and in its Display property select the TWincontrol dropped earlier(Panel).

At runtime click on the play button & there it is...



regards
PEGGY
0
 
LVL 1

Expert Comment

by:pnh73
Comment Utility
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept answer from PEGGY

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now