"Not Enough Memory" with Animated gif

B

BruceS

For Access 2002:

Q1: Have tried using Stephen Leban's animated gif ActiveX control from
http://www.lebans.com/animatedgifplayer.htm on a simple form with only that
control. I get an error, "Not enough free memory to update the display.
Close any unneeded programs and try again." when the form is opened. The
..gif is only about 4K. What I am doing wrong?

Q2: Does anyone know how I can call the standard Windows XP "copying file"
animation (the with papers flying from folder to folder) while I copy a large
file with my subroutine?

Thanks in advance,
Bruce
 
D

Douglas J. Steele

BruceS said:
Q2: Does anyone know how I can call the standard Windows XP "copying
file"
animation (the with papers flying from folder to folder) while I copy a
large
file with my subroutine?

Consider using the SHFileOperation API to do your copying. The image comes
"for free" with it.

Randy Birch has sample code at
http://vbnet.mvps.org/code/shell/shfileopadv.htm

(Obligatory warning: Randy's site is aimed at VB programmers, not Access
programmers. Since there are significant differences in the controls that
available for forms in VB versus forms in Access, not all of the examples
will transfer directly into Access. This is one of those cases: he's using
control arrays, which Access doesn't support. Hopefully, though, the VB code
itself will make sense to you)

Sorry, no idea about the first question.
 
B

BruceS

Thanks, Doug. Will give it a try.
Bruce

Douglas J. Steele said:
Consider using the SHFileOperation API to do your copying. The image comes
"for free" with it.

Randy Birch has sample code at
http://vbnet.mvps.org/code/shell/shfileopadv.htm

(Obligatory warning: Randy's site is aimed at VB programmers, not Access
programmers. Since there are significant differences in the controls that
available for forms in VB versus forms in Access, not all of the examples
will transfer directly into Access. This is one of those cases: he's using
control arrays, which Access doesn't support. Hopefully, though, the VB code
itself will make sense to you)

Sorry, no idea about the first question.
 
S

Stephen Lebans

If you want to play an Animated Gif then my standard answer is:
"The easiest method is to download a 3'rd party ActiveX control. For
performance reasons, it's written in ATL and multithreaded, I like and have
used this one.
http://skyscraper.fortunecity.com/capacity/402/activex.html


For a listing of other controls have a look at:
http://www.generation.net/~hleboeuf/gif.htm


You can also use the MS Web Browser control. Check the currently installed
ActiveX controls on your system.


Finally, for those situations where you do not want to use an ActiveX
control or just want to play a single Animated Gif as part of a splash
screen there is code on my site to do this in native Access VBA. No 3'rd
party DLL's required. The code is a bit dated now and does not include
support for Local Color tables that my latest version in VB6 does. Update
coming soon..it's my next project.(I've been saying this for 6 months now!)
http://www.lebans.com/animatedgifplayer.htm"



--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top