Solved

LOAD AVI FROM DLL IN TANIMATION

Posted on 2004-03-23
6
379 Views
Last Modified: 2010-04-05

I use this code to load avi from dll in Tanimation (A1)
but I recieve error 'can not open avi'.

//*********************************
DLLHANDLE := LoadLibrary('resdll.dll');

  with A1 do
  try
     try
        ResHandle := DLLHANDLE;
     finally

        ResName := 'myavi';
     end;
  finally
  StartFrame := 25;
  StopFrame :=61;

  end;
//****************************
0
Comment
Question by:sal1150
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 10656764
TAnimate can only open uncompressed AVI and/or those compressed using RLE. If your AVI in the DLL is compressed using some other codec, TAnimate won't work
0
 

Author Comment

by:sal1150
ID: 10657540
my AVI in the DLL is not compressed
0
 
LVL 14

Expert Comment

by:DragonSlayer
ID: 10659003
erm... make sure the spelling is correct? It is case-sensitive.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 15

Accepted Solution

by:
simonet earned 250 total points
ID: 10659461


I have written an example on how to do it:

http://www.bhnet.com.br/~simonet/howtoprojs.htm
(check the sample app "How to create and use resource-only DLLs". the techniques described are exactly what you want).

Yours,

Alex
0
 

Author Comment

by:sal1150
ID: 10662688
hi simonet
I test ur example but u do not solve the problem which happen when u tray to play avi.
this is ur mark and the code:-

  // Always check if the module is loaded before
  // Trying to access it.
  if ResDLLMod=0 then exit;
  // Ok, the routine below looks like a real mess.
  // The problem is that this TAnimate component is anything but a
  // friendly guy.
  // There are ways to improve the routine below, but I just don't have
  // the patience right now.
  try
  with Animate1 do
  try
     try
        ResHandle := ResDLLMod;
     finally
        ResName := 'BORLANDCOOL';
     end;
  finally
     Play(1, FrameCount, 0);
  end;
  except
//
  end;
end;

0
 

Author Comment

by:sal1150
ID: 10662792
spelling is correct.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

728 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