Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.avi as Resource in exe
#1
Can I include a .avi file as a resource in a .exe

Code:
Copy      Help
str afile = AM_Workdir
afile + "\wait.avi"
lpstr animfile = afile

SendMessage han (0x0400+100) 0 animfile
#2
You need a resource editor program that can create res files and add ANI resources. For example Resource Hacker (free).

In resource editor, open new file. Add ani file as resource of type ANI (it is string, not RT_ANI etc) and name eg 1 (it is numeric id). Save with res extension.

In Make Exe dialog, specify that res file.

In dialog procedure, use that id instead of file name, and also use module handle as wparam.

Code:
Copy      Help
,;SendMessage han ACM_OPEN 0 "C:\WINDOWS\clock.avi"
,SendMessage han ACM_OPEN GetExeResHandle 1

I tested it. Works well in exe. If you then try to run the dialog in QM, it will not show the ani, as well as will fail to load any other resources. It is a bug and will be fixed in QM 2.2.0.3.


Forum Jump:


Users browsing this thread: 1 Guest(s)