Date conversion with Delphi 5 not working on 64 bit ma -


i have delphi 5 program wrote , compiled on windows 8.1 32 bit machine. reads date text file , converts strtodate(). works on 32 bit pc have copied .exe 64 bit laptop (windows 7)and error '24/4/2015' not valid date. region, language, date settings same on both machines , difference can think of laptop 64 bit. affect date conversion?

this might "shortdateformat in win7 64-bit returning default" bug. solution seems to add somewhere in program init code following snippet:

setthreadlocale(getuserdefaultlcid); getformatsettings; 

Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -