anixon Posted December 10, 2007 Share Posted December 10, 2007 I have a backward compatibility issue with the latest version of AutoIT 3.2.10.0 in that this code #include <A3LTime.au3> ;Local to GMT Time Conversion Value in Hours $gmtime = _Time_GetTimeZoneInformation() $aLTime = ($gmtime[1] / - 1) / 60 * 10000 Produces errors like the following: >Running AU3Check (1.54.10.0) from:C:\Program Files\AutoIt3 C:\Program Files\AutoIt3\Include\A3LStructs.au3(41,100) : ERROR: $tagBITMAPINFO previously declared as a 'Const' "long XPelsPerMeter;long YPelsPerMeter;dword ClrUsed;dword ClrImportant;dword RGBQuad" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Program Files\AutoIt3\Include\A3LConstants.au3(28,65) : ERROR: $CCM_SETBKCOLOR previously declared as a 'Const' Global Const $CCM_SETBKCOLOR = $CCM_FIRST + 1 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ It problem is not resolved by adding the Includes for A3LStructs.au3 or A3LConstants.au. These are the Includes that I am using ;Include Sub-routines #include <array.au3> #include <A3LTime.au3> #include <Date.au3> #include <GUIConstantsEx.au3> #include <GDIPlus.au3> #include <extprop.au3> #include <file.au3> #include <Math.au3> #include <Misc.au3> #include <String.au3> I get a good AutoCheck if I remark out ;#include <A3LTime.au3> GMT time processing is critical to my Script Help is always appreciated Ant.. Link to comment Share on other sites More sharing options...
GEOSoft Posted December 10, 2007 Share Posted December 10, 2007 The A3L files have achieved a level of redundency previously only reached by Microsoft. They were never part of the AutoIt includes and major changes in AutoIt would have required major changes to the a3L files. I think the _Time_GetTimeZoneInformation() may have been replaced with _Date_Time_GetTimeZoneInformation() in the date.au3 file but you should check what the function returns before using it George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
anixon Posted December 10, 2007 Author Share Posted December 10, 2007 The A3L files have achieved a level of redundency previously only reached by Microsoft. They were never part of the AutoIt includes and major changes in AutoIt would have required major changes to the a3L files.I think the _Time_GetTimeZoneInformation() may have been replaced with _Date_Time_GetTimeZoneInformation() in the date.au3 file but you should check what the function returns before using itThank you for your help. I found your comments about redundency very very funny. Reminds me of when I was once asked what a Bureaucracy was and after careful consideration I came to the conclusion that it was an organisation having lost its purpose and direction resolved to double its efforts. CheersAnt.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now