如何将自定义 AVI 与 TAnimate 结合使用?
我有一个 AVI 文件,是使用 资源提取 从 shell32 中提取的。我想将其与 TAnimate 一起使用,但我不知道如何加载该文件。
我使用 DelphiDabbler 的 rcdatacreator 程序 成功将 AVI 加载到 .RES 文件中(您必须下载“工作示例”以获取 rcdatacreator。但是,我现在的问题是弄清楚如何从 .RES 中提取 AVI 文件并将其提供给 TAnimate。
我正在使用 Delphi 2010:
感谢任何帮助。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如 Andreas 提到的(在他现已删除的答案中),您不需要使用外部工具在最新版本的 Delphi 中添加资源。
使用 IDE 菜单中的
Project/Resources and Images...
。通过浏览到 .AVI 文件所在的文件夹来添加新资源,为其命名,然后在资源类型中键入AVI
。 (它不在列表中,但您可以添加它。)在运行时,使用以下代码:
As Andreas mentioned (in his now deleted answer), you don't need to use an external tool to add the resource in recent versions of Delphi.
Use
Project/Resources and Images...
from the IDE menu. Add a new resource by browsing to the folder your .AVI file is in, give it a name, and type inAVI
for the Resource Type. (It's not in the list, but you can add it.)At runtime, use the following code: