Solved

LOAD AVI FROM DLL IN TANIMATION

Posted on 2004-03-23
6
380 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
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month8 days, 15 hours left to enroll

615 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