I've enjoyed your nice CodeCaddy for some time and I'm well due to say a big Thank You!

But when I try to download 1.80 (12-03-10), I get 1.74 (2010-03-06).
Is it just me who has some old stuff in my cache or?
Code: Select all
Structure CreationTime
dwLowDateTime.w
dwHighDateTime.w
EndStructure
Structure LastAccessedTime
dwLowDateTime.w
dwHighDateTime.w
EndStructure
Structure LastWriteTime
dwLowDateTime.w
dwHighDateTime.w
EndStructure
Structure FileTimeToSystemTime
wYear.w;
wMonth.w;
wDayOfWeek.w;
wDay.w;
wHour.w;
wMinute.w;
wSecond.w;
wMilliseconds.w;
EndStructure
Declare.s FileTime(fspec$)
Procedure.s FileTime(fspec$)
;Protected fspec$
Protected CT.CreationTime
Protected LA.LastAccessedTime
Protected LW.LastWriteTime
Protected st.FileTimeToSystemTime
Protected LocalTime.FileTimeToSystemTime ;added to use Local System Time
hwnd=CreateFile_(fspec$,#GENERIC_READ,#FILE_SHARE_READ,null,#OPEN_EXISTING,#FILE_ATTRIBUTE_NORMAL,null )
If hwnd > 0 ; Only test files ( return = null string if directory )
void = GetFileTime_(hwnd,CT,LA,LW);CreateTime, LastAccessed, LastWrite times
;FileTimeToSystemTime_(LW,ST) ;(System Time <> Local Time eg:Central Standard Time
FileTimeToLocalFileTime_(LW,LocalTime);convert File Time To Local File Time
FileTimeToSystemTime_(LocalTime,st) ; just leave Seconds out
fspec$ = Str(st\wMonth) + "/" + Str(st\wDay) + "/" + Str(st\wYear) + " " + Str(st\wHour) + ":" + Str(st\wMinute) ; + ":" + Str(ST\wSecond)
CloseHandle_(HWND)
;Time is in Military 2400 time. Convert to AM PM time
P = FindString(fspec$, ":", 1)
th=Val(Mid(fspec$,P-2,2))
ts$=Mid(fspec$+"00",P,3)
fspec$=Trim(Left(fspec$,p-3))+" "
If th < 13
fspec$=fspec$+Str(th)+ts$+" AM"
Else
th=th-12
fspec$=fspec$+Str(th)+ts$+" PM"
EndIf
Else
fspec$=""
EndIf
ProcedureReturn fspec$
EndProcedure
Filename$="D:\DCAT\MAIN_D~1.BMP" ;<=====<<<< you need to put any valid file name found on your hard drive here.
fspec$=FileTime(Filename$) ; (won't hurt the file, just gets time and date info)
Debug fspec$
Code: Select all
Declare.s testb(b.l)
Procedure.l testa(a.l)
Protected aa.s
aa.s = testb(b.l)
EndProcedure
Procedure.s testb(b.l)
ProcedureReturn Str(b.l)
EndProcedure
Debug "Duh"
Code: Select all
Declare FileTime(fspec$)
Declare.s FileTime(fspec$)
What I saw was codecaddy-build(auto) under Tools - Configure Tools.I assume the option you had to turn off was 'strip unused during build', correct?
Code: Select all
Filename$="D:\DCAT\MAIN_D~1.BMP" ;<=====<<<< you need to put any valid file name found on your hard drive here.
fspec$=FileTime(Filename$) ; (it won't hurt the file, just gets time and date info)
I will try this and PM you back.Nevertheless, I've upped a new version that strips out unused Declare statements, just to be sure. It's CodeCaddy v1.84x, please test it.
This surprises me a little. Just start CodeCaddy (or press [Ctrl]+[F1] on an empty line in the editor) and CodeCaddy pops up. You can always find the version number on the titlebar of the window, or you can check the Help / About menu where it will list some additional information.yrreti wrote: Perhaps maybe a dumb question, but is there any place where you can view the version?
I think there are some more declarations missing. For example...I noticed that I added the Declare after I pasted the code above, and I forgot to add the '.s'.
Code: Select all
Protected CT.CreationTime
Protected LA.LastAccessedTime
Protected LW.LastWriteTime
I'm almost thinking you never started CodeCaddy itself. Did you ever doubleclick on codecaddy.exe? If so, check out the menu Options / Preferences and go to the tab Pre-Process. Here you will find the tick box 'remove unused procedures and macros from builds' and clear it. Here's an illustration:What I saw was codecaddy-build(auto) under Tools - Configure Tools.I assume the option you had to turn off was 'strip unused during build', correct?
Uh?!? It does! Well, except the earliest version, but since then it does. So now I'm at a loss again... What version are you running?DoubleDutch wrote: It would be good if the thinning dialog had some kind of progress bar.