In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

nCommonAVI Values for Windows Vista and 7

Xailer professional forum in English
Responder
Xailer
Mensajes: 328
Registrado: Mar Dic 23, 2008 5:40 pm

nCommonAVI Values for Windows Vista and 7

Mensaje 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
Dionisis Divaris
SGS-soft
Home Page :
Support at :support.sgs@gmail.com[/email]
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9447
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

nCommonAVI Values for Windows Vista and 7

Mensaje 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,
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
jlalin
Mensajes: 926
Registrado: Sab Dic 25, 2010 11:10 pm

nCommonAVI Values for Windows Vista and 7

Mensaje 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
Xailer
Mensajes: 328
Registrado: Mar Dic 23, 2008 5:40 pm

nCommonAVI Values for Windows Vista and 7

Mensaje 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
Dionisis Divaris
SGS-soft
Home Page :
Support at :support.sgs@gmail.com[/email]
jlalin
Mensajes: 926
Registrado: Sab Dic 25, 2010 11:10 pm

nCommonAVI Values for Windows Vista and 7

Mensaje por jlalin »

Dionisis,
why don't you use the same code for both:
oProgDlg:nResourceAVI := aviREINDEX
Regards,
José Lalí­n
Xailer
Mensajes: 328
Registrado: Mar Dic 23, 2008 5:40 pm

nCommonAVI Values for Windows Vista and 7

Mensaje 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
Dionisis Divaris
SGS-soft
Home Page :
Support at :support.sgs@gmail.com[/email]
jlalin
Mensajes: 926
Registrado: Sab Dic 25, 2010 11:10 pm

nCommonAVI Values for Windows Vista and 7

Mensaje 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
jlalin
Mensajes: 926
Registrado: Sab Dic 25, 2010 11:10 pm

nCommonAVI Values for Windows Vista and 7

Mensaje 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
Xailer
Mensajes: 328
Registrado: Mar Dic 23, 2008 5:40 pm

nCommonAVI Values for Windows Vista and 7

Mensaje por Xailer »

OK Josi i read it M$!!!!
TIA
Dionisis Divaris
SGS-soft
Home Page :
Support at :support.sgs@gmail.com[/email]
Responder