VB Control Help
4 messages in this thread
I am trying to make a distributable demo that will play .flc flies and
am trying to use the Animation VB Custom control. The problem is
setting the animation file name on boot up. It seems the control always
wants the drive and directory. The problem comes if the user wants
to install the demo on a different drive. If they do this they always get
an "Invalid File Format" when the program starts. Is there a way around this?
I have used AVI files in the past, but I don't need synced audio and prefer
the quality of the .flc files. Thanks in advance.
Andrew
Well . . . You could set up an installation routine. When the user
installs the program and launches it for the first time, the program
looks for an *.INI file with it's name. If it's not there, it prompts
the user for information then writes that info to an *.INI file that
the program uses in places where that is needed. You would need to
use the API calls WritePrivateProfileString &
ReadPrivateProfileString. I don't have my code here at home, but if
want, I could send you an example of how it would look.
Joseph,
Thanks for the help. I will give it a try. I was hoping that there would be
an easier way of directing the control to the directory the EXE was executed
from. Have you ever gotten the full screen mode to work? It doesn't seem to
want to work in either of my machines. (ATI ULTRA and Diamond Stealth)
Andrew
Actually, this isn't Joe. We share the log on. I'm Grant. Joe does
tech support for the networ, I do support for multi-media,
presentation graphics and desktop publishing. I haven't actually
tried to get the full screen mode to work or I haven't heard of any
problems. I'll check around and get back to you. Later, Grant
Fritchey