Hi there,
A quick question here - Can you load AVIs into a resource file - if so how and how do you access them. I want to make a loading animation for my program but dont want the dependancy on an external file!
Printable View
Hi there,
A quick question here - Can you load AVIs into a resource file - if so how and how do you access them. I want to make a loading animation for my program but dont want the dependancy on an external file!
Yes, you load them as Custom Data, and access them using the LoadResData function:
[Highlight=VB]
ByteArray = LoadResData(2054, 10) '10 = Custom Data
Groovy - how do you put stuff in it?
In Resource Editor, click Add Custom Resource (the button with two empty squares and two squares that reads 1) and select the AVI file you want to add (NOTE: Custom Resouces must not exceed 64K)