Página 1 de 1

nCommonAVI Values for Windows Vista and 7

Publicado: Mar Sep 27, 2011 5:46 pm
por Xailer
Hello Jose,Ignacio,Josi
I use the following pice of code in one TProgressDlg. When i run in XP environment goes well. When i run the same code on win7 64bits no avi shown. What are the various avi's intetifiers for windows Vista or Windows 7.

IF Os_IsWinXP()
oProgDlg:nResourceAVI:= aviREINDEX
ELSE
oProgDlg:nCommonAVI:= aviFIND
ENDIF

TIA

nCommonAVI Values for Windows Vista and 7

Publicado: Mar Sep 27, 2011 6:36 pm
por ignacio
Xailer escribió el mar, 27 septiembre 2011 17:46Hello Jose,Ignacio,Josi
I use the following pice of code in one TProgressDlg. When i run in XP environment goes well. When i run the same code on win7 64bits no avi shown. What are the various avi's intetifiers for windows Vista or Windows 7.

IF Os_IsWinXP()
oProgDlg:nResourceAVI:= aviREINDEX
ELSE
oProgDlg:nCommonAVI:= aviFIND
ENDIF

TIA
I'm afraid M$ removed those AVIs from Windows 7.
Regards,

nCommonAVI Values for Windows Vista and 7

Publicado: Mar Sep 27, 2011 8:59 pm
por jlalin
Dionisis,
you can extract the AVIs from the XP shell32.dll file and embed in your own
application as resources or external files.
There is a lot of tools to do it:
http://www.angusj.com/resourcehacker/
http://www.nirsoft.net/utils/resources_extract.html
Just remember to work with a copy of shell32.dll and not the original one.
Regards,
José Lalí­n

nCommonAVI Values for Windows Vista and 7

Publicado: Mié Sep 28, 2011 6:17 am
por Xailer
Hello Josi
My problem is not on XP environment but on Windows7 the TProgressDlg not show any avi. Any workaround on this?
TIA

nCommonAVI Values for Windows Vista and 7

Publicado: Mié Sep 28, 2011 12:27 pm
por jlalin
Dionisis,
why don't you use the same code for both:
oProgDlg:nResourceAVI := aviREINDEX
Regards,
José Lalí­n

nCommonAVI Values for Windows Vista and 7

Publicado: Mié Sep 28, 2011 1:30 pm
por Xailer
Hello Josi
I allready use it. Nothing shows on windows 7. On XP shows avi correctly.
All the best
Dionisis
"Jose Lalin" <dezac@corevia.com> wrote in message
news:4e82f654$[email=2@svctag-j7w3v3j....]2@svctag-j7w3v3j....[/email]
Dionisis,
why don't you use the same code for both:
oProgDlg:nResourceAVI := aviREINDEX
Regards,
Jose Lalin

nCommonAVI Values for Windows Vista and 7

Publicado: Mié Sep 28, 2011 1:37 pm
por jlalin
Dionisis,
as I said before, then you will have to extract the avi from shell32.dll
,copy it to your application resource directory and add it to your resource
file as:
1000 AVI "file.avi"
And later: oProgressDlg:nResourceAvi := 1000
Saludos,
José Lalí­n

nCommonAVI Values for Windows Vista and 7

Publicado: Mié Sep 28, 2011 2:20 pm
por jlalin
Dionisis,
it seems they disabled this method on Vista and later:
http://msdn.microsoft.com/en-us/library ... 8v=VS.85%2 9.aspx
Regards,
José Lalí­n

nCommonAVI Values for Windows Vista and 7

Publicado: Mié Sep 28, 2011 3:10 pm
por Xailer
OK Josi i read it M$!!!!
TIA