From 543cdf06d9ef828dca80c6fd5f1fd345a4c04fbf Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Tue, 30 Jan 2018 16:17:37 +0000 Subject: [PATCH] systools: Rearrange units and packages git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6159 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- .../img-systools-db.txt} | 0 .../img-systools-general.txt} | 5 - .../systools/images/img-systools-win.txt | 5 + components/systools/images/make_res.bat | 3 + .../{source/design => }/images/tstbarcode.png | Bin .../design => }/images/tstcode16kbarcode.png | Bin .../images/tstdatamatrixbarcode.png | Bin .../design => }/images/tstdbbarcode.png | Bin .../images/tstdbmaxicodebarcode.png | Bin .../design => }/images/tstdbpdf417barcode.png | Bin .../design => }/images/tstdbpnbarcode.png | Bin .../design => }/images/tstexceptionlog.png | Bin .../design => }/images/tstexpression.png | Bin .../design => }/images/tstexpressionedit.png | Bin .../design => }/images/tstfiletohtml.png | Bin .../design => }/images/tstgenerallog.png | Bin .../design => }/images/tstmaxicodebarcode.png | Bin .../design => }/images/tstnetconnection.png | Bin .../design => }/images/tstnetmessage.png | Bin .../design => }/images/tstnetperformance.png | Bin .../design => }/images/tstnteventlog.png | Bin .../{source/design => }/images/tstnvbits.png | Bin .../design => }/images/tstnvcollection.png | Bin .../design => }/images/tstnvdictionary.png | Bin .../{source/design => }/images/tstnvdque.png | Bin .../design => }/images/tstnvlarray.png | Bin .../{source/design => }/images/tstnvlist.png | Bin .../design => }/images/tstnvlmatrix.png | Bin .../images/tstnvsortedcollection.png | Bin .../{source/design => }/images/tstnvtree.png | Bin .../design => }/images/tstpdf417barcode.png | Bin .../design => }/images/tstpnbarcode.png | Bin .../{source/design => }/images/tstregex.png | Bin .../images/tstspawnapplication.png | Bin .../design => }/images/tstversioninfo.png | Bin .../design => }/images/tstwmdatacopy.png | Bin components/systools/laz_systools.lpk | 124 +++--- components/systools/laz_systools_design.lpk | 8 +- components/systools/laz_systoolsdb.lpk | 12 +- components/systools/laz_systoolsdb_design.lpk | 7 +- components/systools/laz_systoolswin.lpk | 2 +- .../systools/laz_systoolswin_design.lpk | 2 +- .../source/{ => db}/design/stregdb.pas | 0 .../source/{ => db}/design/stregdb.res | Bin .../systools/source/db/run/stdb2dbc.pas | 358 ++++++++++++++++++ .../systools/source/db/run/stdbbarc.pas | 136 +++++++ .../systools/source/db/run/stdbpnbc.pas | 133 +++++++ .../source/design/images/make_res.bat | 2 - .../source/{ => general}/design/stproped.pas | 0 .../source/{ => general}/design/streg.pas | 8 +- .../source/{ => general}/design/streg.res | Bin 8128 -> 6571 bytes .../source/{ => general}/run/st2dbarc.pas | 0 .../source/{ => general}/run/stastro.pas | 0 .../source/{ => general}/run/stastrop.pas | 0 .../source/{ => general}/run/stbarc.pas | 0 .../source/{ => general}/run/stbarpn.pas | 0 .../source/{ => general}/run/stbase.pas | 0 .../source/{ => general}/run/stbcd.pas | 0 .../source/{ => general}/run/stbits.pas | 0 .../source/{ => general}/run/stccy.dat | 0 .../source/{ => general}/run/stccycnv.dat | 0 .../source/{ => general}/run/stcoll.pas | 28 +- .../source/{ => general}/run/stconst.pas | 0 .../source/{ => general}/run/stcrc.pas | 0 .../source/{ => general}/run/stdate.pas | 0 .../source/{ => general}/run/stdatest.pas | 0 .../source/{ => general}/run/stdecmth.pas | 0 .../source/{ => general}/run/stdict.pas | 0 .../source/{ => general}/run/stdque.pas | 0 .../source/{ => general}/run/steclpse.pas | 0 .../source/{ => general}/run/stexpr.pas | 0 .../source/{ => general}/run/stexpr.txt | 0 .../source/{ => general}/run/stfin.pas | 0 .../source/{ => general}/run/sthash.pas | 0 .../source/{ => general}/run/stinistm.pas | 0 .../source/{ => general}/run/stjup.pas | 0 .../source/{ => general}/run/stjupsat.pas | 0 .../source/{ => general}/run/stlarr.pas | 0 .../source/{ => general}/run/stlist.pas | 0 .../source/{ => general}/run/stmars.pas | 0 .../source/{ => general}/run/stmath.pas | 0 .../source/{ => general}/run/stmerc.pas | 0 .../source/{ => general}/run/stmerge.pas | 0 .../source/{ => general}/run/stmoney.pas | 0 .../source/{ => general}/run/stneptun.pas | 0 .../source/{ => general}/run/stnvbits.pas | 0 .../source/{ => general}/run/stnvcoll.pas | 0 .../source/{ => general}/run/stnvcont.pas | 0 .../source/{ => general}/run/stnvdict.pas | 0 .../source/{ => general}/run/stnvdq.pas | 0 .../source/{ => general}/run/stnvlary.pas | 0 .../source/{ => general}/run/stnvlist.pas | 0 .../source/{ => general}/run/stnvlmat.pas | 0 .../source/{ => general}/run/stnvscol.pas | 0 .../source/{ => general}/run/stnvtree.pas | 0 .../source/{ => general}/run/stpluto.pas | 0 .../source/{ => general}/run/stpqueue.pas | 0 .../source/{ => general}/run/stptrns.pas | 0 .../source/{ => general}/run/strandom.pas | 0 .../source/{ => general}/run/stregex.pas | 0 .../source/{ => general}/run/stsaturn.pas | 0 .../source/{ => general}/run/ststat.pas | 0 .../source/{ => general}/run/ststrl.pas | 0 .../source/{ => general}/run/ststrms.pas | 0 .../source/{ => general}/run/ststrs.pas | 0 .../source/{ => general}/run/sttext.pas | 0 .../source/{ => general}/run/sttohtml.pas | 0 .../source/{ => general}/run/sttree.pas | 0 .../source/{ => general}/run/sttxtdat.pas | 0 .../source/{ => general}/run/sturanus.pas | 0 .../source/{ => general}/run/stutils.pas | 0 .../source/{ => general}/run/stvarr.pas | 0 .../source/{ => general}/run/stvenus.pas | 0 .../source/windows_only/design/stregwin.pas | 4 +- .../source/windows_only/run/stgenlog.pas | 6 +- .../source/windows_only/run/sttext.pas | 175 --------- .../source/windows_only/run/stwmdcpy.pas | 6 +- 117 files changed, 739 insertions(+), 285 deletions(-) rename components/systools/{source/design/images/img-systoolsdb.txt => images/img-systools-db.txt} (100%) rename components/systools/{source/design/images/img-systools.txt => images/img-systools-general.txt} (81%) create mode 100644 components/systools/images/img-systools-win.txt create mode 100644 components/systools/images/make_res.bat rename components/systools/{source/design => }/images/tstbarcode.png (100%) rename components/systools/{source/design => }/images/tstcode16kbarcode.png (100%) rename components/systools/{source/design => }/images/tstdatamatrixbarcode.png (100%) rename components/systools/{source/design => }/images/tstdbbarcode.png (100%) rename components/systools/{source/design => }/images/tstdbmaxicodebarcode.png (100%) rename components/systools/{source/design => }/images/tstdbpdf417barcode.png (100%) rename components/systools/{source/design => }/images/tstdbpnbarcode.png (100%) rename components/systools/{source/design => }/images/tstexceptionlog.png (100%) rename components/systools/{source/design => }/images/tstexpression.png (100%) rename components/systools/{source/design => }/images/tstexpressionedit.png (100%) rename components/systools/{source/design => }/images/tstfiletohtml.png (100%) rename components/systools/{source/design => }/images/tstgenerallog.png (100%) rename components/systools/{source/design => }/images/tstmaxicodebarcode.png (100%) rename components/systools/{source/design => }/images/tstnetconnection.png (100%) rename components/systools/{source/design => }/images/tstnetmessage.png (100%) rename components/systools/{source/design => }/images/tstnetperformance.png (100%) rename components/systools/{source/design => }/images/tstnteventlog.png (100%) rename components/systools/{source/design => }/images/tstnvbits.png (100%) rename components/systools/{source/design => }/images/tstnvcollection.png (100%) rename components/systools/{source/design => }/images/tstnvdictionary.png (100%) rename components/systools/{source/design => }/images/tstnvdque.png (100%) rename components/systools/{source/design => }/images/tstnvlarray.png (100%) rename components/systools/{source/design => }/images/tstnvlist.png (100%) rename components/systools/{source/design => }/images/tstnvlmatrix.png (100%) rename components/systools/{source/design => }/images/tstnvsortedcollection.png (100%) rename components/systools/{source/design => }/images/tstnvtree.png (100%) rename components/systools/{source/design => }/images/tstpdf417barcode.png (100%) rename components/systools/{source/design => }/images/tstpnbarcode.png (100%) rename components/systools/{source/design => }/images/tstregex.png (100%) rename components/systools/{source/design => }/images/tstspawnapplication.png (100%) rename components/systools/{source/design => }/images/tstversioninfo.png (100%) rename components/systools/{source/design => }/images/tstwmdatacopy.png (100%) rename components/systools/source/{ => db}/design/stregdb.pas (100%) rename components/systools/source/{ => db}/design/stregdb.res (100%) create mode 100644 components/systools/source/db/run/stdb2dbc.pas create mode 100644 components/systools/source/db/run/stdbbarc.pas create mode 100644 components/systools/source/db/run/stdbpnbc.pas delete mode 100644 components/systools/source/design/images/make_res.bat rename components/systools/source/{ => general}/design/stproped.pas (100%) rename components/systools/source/{ => general}/design/streg.pas (98%) rename components/systools/source/{ => general}/design/streg.res (79%) rename components/systools/source/{ => general}/run/st2dbarc.pas (100%) rename components/systools/source/{ => general}/run/stastro.pas (100%) rename components/systools/source/{ => general}/run/stastrop.pas (100%) rename components/systools/source/{ => general}/run/stbarc.pas (100%) rename components/systools/source/{ => general}/run/stbarpn.pas (100%) rename components/systools/source/{ => general}/run/stbase.pas (100%) rename components/systools/source/{ => general}/run/stbcd.pas (100%) rename components/systools/source/{ => general}/run/stbits.pas (100%) rename components/systools/source/{ => general}/run/stccy.dat (100%) rename components/systools/source/{ => general}/run/stccycnv.dat (100%) rename components/systools/source/{ => general}/run/stcoll.pas (96%) rename components/systools/source/{ => general}/run/stconst.pas (100%) rename components/systools/source/{ => general}/run/stcrc.pas (100%) rename components/systools/source/{ => general}/run/stdate.pas (100%) rename components/systools/source/{ => general}/run/stdatest.pas (100%) rename components/systools/source/{ => general}/run/stdecmth.pas (100%) rename components/systools/source/{ => general}/run/stdict.pas (100%) rename components/systools/source/{ => general}/run/stdque.pas (100%) rename components/systools/source/{ => general}/run/steclpse.pas (100%) rename components/systools/source/{ => general}/run/stexpr.pas (100%) rename components/systools/source/{ => general}/run/stexpr.txt (100%) rename components/systools/source/{ => general}/run/stfin.pas (100%) rename components/systools/source/{ => general}/run/sthash.pas (100%) rename components/systools/source/{ => general}/run/stinistm.pas (100%) rename components/systools/source/{ => general}/run/stjup.pas (100%) rename components/systools/source/{ => general}/run/stjupsat.pas (100%) rename components/systools/source/{ => general}/run/stlarr.pas (100%) rename components/systools/source/{ => general}/run/stlist.pas (100%) rename components/systools/source/{ => general}/run/stmars.pas (100%) rename components/systools/source/{ => general}/run/stmath.pas (100%) rename components/systools/source/{ => general}/run/stmerc.pas (100%) rename components/systools/source/{ => general}/run/stmerge.pas (100%) rename components/systools/source/{ => general}/run/stmoney.pas (100%) rename components/systools/source/{ => general}/run/stneptun.pas (100%) rename components/systools/source/{ => general}/run/stnvbits.pas (100%) rename components/systools/source/{ => general}/run/stnvcoll.pas (100%) rename components/systools/source/{ => general}/run/stnvcont.pas (100%) rename components/systools/source/{ => general}/run/stnvdict.pas (100%) rename components/systools/source/{ => general}/run/stnvdq.pas (100%) rename components/systools/source/{ => general}/run/stnvlary.pas (100%) rename components/systools/source/{ => general}/run/stnvlist.pas (100%) rename components/systools/source/{ => general}/run/stnvlmat.pas (100%) rename components/systools/source/{ => general}/run/stnvscol.pas (100%) rename components/systools/source/{ => general}/run/stnvtree.pas (100%) rename components/systools/source/{ => general}/run/stpluto.pas (100%) rename components/systools/source/{ => general}/run/stpqueue.pas (100%) rename components/systools/source/{ => general}/run/stptrns.pas (100%) rename components/systools/source/{ => general}/run/strandom.pas (100%) rename components/systools/source/{ => general}/run/stregex.pas (100%) rename components/systools/source/{ => general}/run/stsaturn.pas (100%) rename components/systools/source/{ => general}/run/ststat.pas (100%) rename components/systools/source/{ => general}/run/ststrl.pas (100%) rename components/systools/source/{ => general}/run/ststrms.pas (100%) rename components/systools/source/{ => general}/run/ststrs.pas (100%) rename components/systools/source/{ => general}/run/sttext.pas (100%) rename components/systools/source/{ => general}/run/sttohtml.pas (100%) rename components/systools/source/{ => general}/run/sttree.pas (100%) rename components/systools/source/{ => general}/run/sttxtdat.pas (100%) rename components/systools/source/{ => general}/run/sturanus.pas (100%) rename components/systools/source/{ => general}/run/stutils.pas (100%) rename components/systools/source/{ => general}/run/stvarr.pas (100%) rename components/systools/source/{ => general}/run/stvenus.pas (100%) delete mode 100644 components/systools/source/windows_only/run/sttext.pas diff --git a/components/systools/source/design/images/img-systoolsdb.txt b/components/systools/images/img-systools-db.txt similarity index 100% rename from components/systools/source/design/images/img-systoolsdb.txt rename to components/systools/images/img-systools-db.txt diff --git a/components/systools/source/design/images/img-systools.txt b/components/systools/images/img-systools-general.txt similarity index 81% rename from components/systools/source/design/images/img-systools.txt rename to components/systools/images/img-systools-general.txt index d8ed68bd1..bfddf0ffe 100644 --- a/components/systools/source/design/images/img-systools.txt +++ b/components/systools/images/img-systools-general.txt @@ -5,12 +5,10 @@ tstexceptionlog.png tstexpression.png tstexpressionedit.png tstfiletohtml.png -tstgenerallog.png tstmaxicodebarcode.png tstnetconnection.png tstnetmessage.png tstnetperformance.png -tstnteventlog.png tstnvbits.png tstnvcollection.png tstnvdictionary.png @@ -23,6 +21,3 @@ tstnvtree.png tstpdf417barcode.png tstpnbarcode.png tstregex.png -tstspawnapplication.png -tstversioninfo.png -tstwmdatacopy.png diff --git a/components/systools/images/img-systools-win.txt b/components/systools/images/img-systools-win.txt new file mode 100644 index 000000000..5d8e38dce --- /dev/null +++ b/components/systools/images/img-systools-win.txt @@ -0,0 +1,5 @@ +tstgenerallog.png +tstnteventlog.png +tstspawnapplication.png +tstversioninfo.png +tstwmdatacopy.png diff --git a/components/systools/images/make_res.bat b/components/systools/images/make_res.bat new file mode 100644 index 000000000..64a7e3b14 --- /dev/null +++ b/components/systools/images/make_res.bat @@ -0,0 +1,3 @@ +lazres ..\source\general\design\streg.res @img-systools-general.txt +lazres ..\source\db\design\stregdb.res @img-systools-db.txt +lazres ..\source\windows_only\design\stregwin.res @img-systools-win.txt diff --git a/components/systools/source/design/images/tstbarcode.png b/components/systools/images/tstbarcode.png similarity index 100% rename from components/systools/source/design/images/tstbarcode.png rename to components/systools/images/tstbarcode.png diff --git a/components/systools/source/design/images/tstcode16kbarcode.png b/components/systools/images/tstcode16kbarcode.png similarity index 100% rename from components/systools/source/design/images/tstcode16kbarcode.png rename to components/systools/images/tstcode16kbarcode.png diff --git a/components/systools/source/design/images/tstdatamatrixbarcode.png b/components/systools/images/tstdatamatrixbarcode.png similarity index 100% rename from components/systools/source/design/images/tstdatamatrixbarcode.png rename to components/systools/images/tstdatamatrixbarcode.png diff --git a/components/systools/source/design/images/tstdbbarcode.png b/components/systools/images/tstdbbarcode.png similarity index 100% rename from components/systools/source/design/images/tstdbbarcode.png rename to components/systools/images/tstdbbarcode.png diff --git a/components/systools/source/design/images/tstdbmaxicodebarcode.png b/components/systools/images/tstdbmaxicodebarcode.png similarity index 100% rename from components/systools/source/design/images/tstdbmaxicodebarcode.png rename to components/systools/images/tstdbmaxicodebarcode.png diff --git a/components/systools/source/design/images/tstdbpdf417barcode.png b/components/systools/images/tstdbpdf417barcode.png similarity index 100% rename from components/systools/source/design/images/tstdbpdf417barcode.png rename to components/systools/images/tstdbpdf417barcode.png diff --git a/components/systools/source/design/images/tstdbpnbarcode.png b/components/systools/images/tstdbpnbarcode.png similarity index 100% rename from components/systools/source/design/images/tstdbpnbarcode.png rename to components/systools/images/tstdbpnbarcode.png diff --git a/components/systools/source/design/images/tstexceptionlog.png b/components/systools/images/tstexceptionlog.png similarity index 100% rename from components/systools/source/design/images/tstexceptionlog.png rename to components/systools/images/tstexceptionlog.png diff --git a/components/systools/source/design/images/tstexpression.png b/components/systools/images/tstexpression.png similarity index 100% rename from components/systools/source/design/images/tstexpression.png rename to components/systools/images/tstexpression.png diff --git a/components/systools/source/design/images/tstexpressionedit.png b/components/systools/images/tstexpressionedit.png similarity index 100% rename from components/systools/source/design/images/tstexpressionedit.png rename to components/systools/images/tstexpressionedit.png diff --git a/components/systools/source/design/images/tstfiletohtml.png b/components/systools/images/tstfiletohtml.png similarity index 100% rename from components/systools/source/design/images/tstfiletohtml.png rename to components/systools/images/tstfiletohtml.png diff --git a/components/systools/source/design/images/tstgenerallog.png b/components/systools/images/tstgenerallog.png similarity index 100% rename from components/systools/source/design/images/tstgenerallog.png rename to components/systools/images/tstgenerallog.png diff --git a/components/systools/source/design/images/tstmaxicodebarcode.png b/components/systools/images/tstmaxicodebarcode.png similarity index 100% rename from components/systools/source/design/images/tstmaxicodebarcode.png rename to components/systools/images/tstmaxicodebarcode.png diff --git a/components/systools/source/design/images/tstnetconnection.png b/components/systools/images/tstnetconnection.png similarity index 100% rename from components/systools/source/design/images/tstnetconnection.png rename to components/systools/images/tstnetconnection.png diff --git a/components/systools/source/design/images/tstnetmessage.png b/components/systools/images/tstnetmessage.png similarity index 100% rename from components/systools/source/design/images/tstnetmessage.png rename to components/systools/images/tstnetmessage.png diff --git a/components/systools/source/design/images/tstnetperformance.png b/components/systools/images/tstnetperformance.png similarity index 100% rename from components/systools/source/design/images/tstnetperformance.png rename to components/systools/images/tstnetperformance.png diff --git a/components/systools/source/design/images/tstnteventlog.png b/components/systools/images/tstnteventlog.png similarity index 100% rename from components/systools/source/design/images/tstnteventlog.png rename to components/systools/images/tstnteventlog.png diff --git a/components/systools/source/design/images/tstnvbits.png b/components/systools/images/tstnvbits.png similarity index 100% rename from components/systools/source/design/images/tstnvbits.png rename to components/systools/images/tstnvbits.png diff --git a/components/systools/source/design/images/tstnvcollection.png b/components/systools/images/tstnvcollection.png similarity index 100% rename from components/systools/source/design/images/tstnvcollection.png rename to components/systools/images/tstnvcollection.png diff --git a/components/systools/source/design/images/tstnvdictionary.png b/components/systools/images/tstnvdictionary.png similarity index 100% rename from components/systools/source/design/images/tstnvdictionary.png rename to components/systools/images/tstnvdictionary.png diff --git a/components/systools/source/design/images/tstnvdque.png b/components/systools/images/tstnvdque.png similarity index 100% rename from components/systools/source/design/images/tstnvdque.png rename to components/systools/images/tstnvdque.png diff --git a/components/systools/source/design/images/tstnvlarray.png b/components/systools/images/tstnvlarray.png similarity index 100% rename from components/systools/source/design/images/tstnvlarray.png rename to components/systools/images/tstnvlarray.png diff --git a/components/systools/source/design/images/tstnvlist.png b/components/systools/images/tstnvlist.png similarity index 100% rename from components/systools/source/design/images/tstnvlist.png rename to components/systools/images/tstnvlist.png diff --git a/components/systools/source/design/images/tstnvlmatrix.png b/components/systools/images/tstnvlmatrix.png similarity index 100% rename from components/systools/source/design/images/tstnvlmatrix.png rename to components/systools/images/tstnvlmatrix.png diff --git a/components/systools/source/design/images/tstnvsortedcollection.png b/components/systools/images/tstnvsortedcollection.png similarity index 100% rename from components/systools/source/design/images/tstnvsortedcollection.png rename to components/systools/images/tstnvsortedcollection.png diff --git a/components/systools/source/design/images/tstnvtree.png b/components/systools/images/tstnvtree.png similarity index 100% rename from components/systools/source/design/images/tstnvtree.png rename to components/systools/images/tstnvtree.png diff --git a/components/systools/source/design/images/tstpdf417barcode.png b/components/systools/images/tstpdf417barcode.png similarity index 100% rename from components/systools/source/design/images/tstpdf417barcode.png rename to components/systools/images/tstpdf417barcode.png diff --git a/components/systools/source/design/images/tstpnbarcode.png b/components/systools/images/tstpnbarcode.png similarity index 100% rename from components/systools/source/design/images/tstpnbarcode.png rename to components/systools/images/tstpnbarcode.png diff --git a/components/systools/source/design/images/tstregex.png b/components/systools/images/tstregex.png similarity index 100% rename from components/systools/source/design/images/tstregex.png rename to components/systools/images/tstregex.png diff --git a/components/systools/source/design/images/tstspawnapplication.png b/components/systools/images/tstspawnapplication.png similarity index 100% rename from components/systools/source/design/images/tstspawnapplication.png rename to components/systools/images/tstspawnapplication.png diff --git a/components/systools/source/design/images/tstversioninfo.png b/components/systools/images/tstversioninfo.png similarity index 100% rename from components/systools/source/design/images/tstversioninfo.png rename to components/systools/images/tstversioninfo.png diff --git a/components/systools/source/design/images/tstwmdatacopy.png b/components/systools/images/tstwmdatacopy.png similarity index 100% rename from components/systools/source/design/images/tstwmdatacopy.png rename to components/systools/images/tstwmdatacopy.png diff --git a/components/systools/laz_systools.lpk b/components/systools/laz_systools.lpk index c78b4496b..1f794b28e 100644 --- a/components/systools/laz_systools.lpk +++ b/components/systools/laz_systools.lpk @@ -8,9 +8,9 @@ - - - + + + - + - + - + - + - + @@ -44,219 +44,219 @@ SysTools is a library of utility routines and classes which includes 1-D and 2- - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/components/systools/laz_systools_design.lpk b/components/systools/laz_systools_design.lpk index 3634a45dc..74ad24e64 100644 --- a/components/systools/laz_systools_design.lpk +++ b/components/systools/laz_systools_design.lpk @@ -10,8 +10,8 @@ - - + + - + - + diff --git a/components/systools/laz_systoolsdb.lpk b/components/systools/laz_systoolsdb.lpk index 7c8cf883f..e574539a9 100644 --- a/components/systools/laz_systoolsdb.lpk +++ b/components/systools/laz_systoolsdb.lpk @@ -8,9 +8,9 @@ - - - + + + - + - + - + diff --git a/components/systools/laz_systoolsdb_design.lpk b/components/systools/laz_systoolsdb_design.lpk index 39e3f5322..3caaa3e53 100644 --- a/components/systools/laz_systoolsdb_design.lpk +++ b/components/systools/laz_systoolsdb_design.lpk @@ -10,8 +10,8 @@ - - + + - + @@ -31,6 +31,7 @@ The package systoolsdb contains data-aware barcode components."/> + diff --git a/components/systools/laz_systoolswin.lpk b/components/systools/laz_systoolswin.lpk index 7d00ebe19..4977269e4 100644 --- a/components/systools/laz_systoolswin.lpk +++ b/components/systools/laz_systoolswin.lpk @@ -10,7 +10,7 @@ - + - + <>lD=nWr*QOKJq;)pMsfmoJ|)>1i`Z z;4Wif?Lr5&+^qh;u6U@HKX88W(S6RcSmHos&#p!Pz zr^j-~PNVh<9cdq1`&=IG=lnir_W6!wQy$;lRqDxVC=j)@Wsy_o4(F1Gt!+Yn3wTyN z=h~2Ib=+!I{Vk^Qy4Obww=dYUCXhWaRwq0C`nFQWkO;4k5O;xXKrb?Qy85}Sb4qAp zVA!0^zLZr}3d8SyK>xckgn>gK1ljM3^}9S>978H@?VZ{P371mhIv5J-pF#!ipzP8@LL}9FK;YKKv3AysAb(G0K=puv_+^z-5I^%6C{!+-iLE z%wghORgZ`Ts>N={6>_uWU(Ed^?-9X#CF_ZI%C2MggeLek3#IzS8qYc^ZFQOZzt4{Q zKR*UZT%7W)^8UwU`>x}{*H4$&eOah`?O;j&o(zGzE4#g4Z;j}eym0!?>msoQSGmN@ z%N)w$GM2qvWqCGs|6=aR8qOjA<1+M7~B~AC)(Qs)3jp!RETHRP62y{<>&v^ zzl^IgSUxsvoiJ-gi2CEI3sXbBY};4YIAebQe!lq|rB(<`Yn9B@j}@FIA<4>IG+oCn zIp|o%`>Stf%{=OCx!~64NlgyBml!Pe4PrRqtHsi#(%Q6Rqfu{Dc`B1tHIK$;+b+JP zOZPFaQubJPaY}b^<1)9I3O~D>zDSwgV(h)Fa`#`ylHC8iDc$-4pY$?4lQD{`V^Tzv_|TURGHaslIr_5SkT&!yM+&hZQ57xz`+d1Q51 zp=pwfD#yvHc?Xmf!q2cC?b~GbpW|17Lh^?NXOC!SGh7K1x&q8CF-C6e-gmBT+ST)A zr*e4YVYg*Bqx<(v+}mJ&=>^l#i77qvE=&nzTV;4^)2Hw6#ovU-uhV<= colPageElements then begin {last page is full, add another} Start := T.pdStart+colPageElements; - T := TPageDescriptor(colPageList.Append(Pointer(colPageElements))); + T := TPageDescriptor(colPageList.Append(Pointer(PtrInt(colPageElements)))); T.pdStart := Start; {T.pdCount := 0;} end; @@ -500,7 +500,7 @@ begin Start := N.pdStart; if Index < Start then begin {element has not been set before} - N := TPageDescriptor(colPageList.PlaceBefore(Pointer(colPageElements), N)); + N := TPageDescriptor(colPageList.PlaceBefore(Pointer(PtrInt(colPageElements)), N)); N.pdStart := Index; N.pdCount := 1; N.pdPage^[0] := Data; @@ -528,7 +528,7 @@ begin Start := N.pdStart; if (Index >= Start+N.pdCount) then begin {element has not been set before} - N := TPageDescriptor(colPageList.PlaceBefore(Pointer(colPageElements), N)); + N := TPageDescriptor(colPageList.PlaceBefore(Pointer(PtrInt(colPageElements)), N)); N.pdStart := Index; N.pdCount := 1; N.pdPage^[0] := Data; @@ -545,7 +545,7 @@ begin end; {an element after all existing ones} - N := TPageDescriptor(colPageList.Append(Pointer(colPageElements))); + N := TPageDescriptor(colPageList.Append(Pointer(PtrInt(colPageElements)))); colCachePage := N; N.pdStart := Index; N.pdCount := 1; @@ -628,7 +628,7 @@ begin with N do if pdCount >= colPageElements then begin {page is full, add another} - P := TPageDescriptor(colPageList.Place(Pointer(colPageElements), N)); + P := TPageDescriptor(colPageList.Place(Pointer(PtrInt(colPageElements)), N)); {new page starts with element after the new one} P.pdStart := pdStart+PageIndex+1; PC := colPageElements-PageIndex; @@ -737,7 +737,7 @@ begin colPageElements := PageElements; {start with one empty page} - colPageList.Append(Pointer(colPageElements)); + colPageList.Append(Pointer(PtrInt(colPageElements))); colCachePage := TPageDescriptor(colPageList.Head); end; @@ -807,7 +807,7 @@ begin if N.pdCount >= colPageElements then begin {last page is full, add another} Start := N.pdStart+colPageElements; - N := TPageDescriptor(colPageList.Append(Pointer(colPageElements))); + N := TPageDescriptor(colPageList.Append(Pointer(PtrInt(colPageElements)))); N.pdStart := Start; {N.pdCount := 0;} end; @@ -931,7 +931,7 @@ begin begin colPageList.Clear; colPageElements := PageElements; - colPageList.Append(Pointer(colPageElements)); + colPageList.Append(Pointer(PtrInt(colPageElements))); colCachePage := TPageDescriptor(colPageList.Head); end; ReadListBegin; @@ -1162,7 +1162,7 @@ begin begin colPageList.Clear; colPageElements := PageElements; - colPageList.Append(Pointer(colPageElements)); + colPageList.Append(Pointer(PtrInt(colPageElements))); colCachePage := TPageDescriptor(colPageList.Head); end; FDuplicates := ReadBoolean; diff --git a/components/systools/source/run/stconst.pas b/components/systools/source/general/run/stconst.pas similarity index 100% rename from components/systools/source/run/stconst.pas rename to components/systools/source/general/run/stconst.pas diff --git a/components/systools/source/run/stcrc.pas b/components/systools/source/general/run/stcrc.pas similarity index 100% rename from components/systools/source/run/stcrc.pas rename to components/systools/source/general/run/stcrc.pas diff --git a/components/systools/source/run/stdate.pas b/components/systools/source/general/run/stdate.pas similarity index 100% rename from components/systools/source/run/stdate.pas rename to components/systools/source/general/run/stdate.pas diff --git a/components/systools/source/run/stdatest.pas b/components/systools/source/general/run/stdatest.pas similarity index 100% rename from components/systools/source/run/stdatest.pas rename to components/systools/source/general/run/stdatest.pas diff --git a/components/systools/source/run/stdecmth.pas b/components/systools/source/general/run/stdecmth.pas similarity index 100% rename from components/systools/source/run/stdecmth.pas rename to components/systools/source/general/run/stdecmth.pas diff --git a/components/systools/source/run/stdict.pas b/components/systools/source/general/run/stdict.pas similarity index 100% rename from components/systools/source/run/stdict.pas rename to components/systools/source/general/run/stdict.pas diff --git a/components/systools/source/run/stdque.pas b/components/systools/source/general/run/stdque.pas similarity index 100% rename from components/systools/source/run/stdque.pas rename to components/systools/source/general/run/stdque.pas diff --git a/components/systools/source/run/steclpse.pas b/components/systools/source/general/run/steclpse.pas similarity index 100% rename from components/systools/source/run/steclpse.pas rename to components/systools/source/general/run/steclpse.pas diff --git a/components/systools/source/run/stexpr.pas b/components/systools/source/general/run/stexpr.pas similarity index 100% rename from components/systools/source/run/stexpr.pas rename to components/systools/source/general/run/stexpr.pas diff --git a/components/systools/source/run/stexpr.txt b/components/systools/source/general/run/stexpr.txt similarity index 100% rename from components/systools/source/run/stexpr.txt rename to components/systools/source/general/run/stexpr.txt diff --git a/components/systools/source/run/stfin.pas b/components/systools/source/general/run/stfin.pas similarity index 100% rename from components/systools/source/run/stfin.pas rename to components/systools/source/general/run/stfin.pas diff --git a/components/systools/source/run/sthash.pas b/components/systools/source/general/run/sthash.pas similarity index 100% rename from components/systools/source/run/sthash.pas rename to components/systools/source/general/run/sthash.pas diff --git a/components/systools/source/run/stinistm.pas b/components/systools/source/general/run/stinistm.pas similarity index 100% rename from components/systools/source/run/stinistm.pas rename to components/systools/source/general/run/stinistm.pas diff --git a/components/systools/source/run/stjup.pas b/components/systools/source/general/run/stjup.pas similarity index 100% rename from components/systools/source/run/stjup.pas rename to components/systools/source/general/run/stjup.pas diff --git a/components/systools/source/run/stjupsat.pas b/components/systools/source/general/run/stjupsat.pas similarity index 100% rename from components/systools/source/run/stjupsat.pas rename to components/systools/source/general/run/stjupsat.pas diff --git a/components/systools/source/run/stlarr.pas b/components/systools/source/general/run/stlarr.pas similarity index 100% rename from components/systools/source/run/stlarr.pas rename to components/systools/source/general/run/stlarr.pas diff --git a/components/systools/source/run/stlist.pas b/components/systools/source/general/run/stlist.pas similarity index 100% rename from components/systools/source/run/stlist.pas rename to components/systools/source/general/run/stlist.pas diff --git a/components/systools/source/run/stmars.pas b/components/systools/source/general/run/stmars.pas similarity index 100% rename from components/systools/source/run/stmars.pas rename to components/systools/source/general/run/stmars.pas diff --git a/components/systools/source/run/stmath.pas b/components/systools/source/general/run/stmath.pas similarity index 100% rename from components/systools/source/run/stmath.pas rename to components/systools/source/general/run/stmath.pas diff --git a/components/systools/source/run/stmerc.pas b/components/systools/source/general/run/stmerc.pas similarity index 100% rename from components/systools/source/run/stmerc.pas rename to components/systools/source/general/run/stmerc.pas diff --git a/components/systools/source/run/stmerge.pas b/components/systools/source/general/run/stmerge.pas similarity index 100% rename from components/systools/source/run/stmerge.pas rename to components/systools/source/general/run/stmerge.pas diff --git a/components/systools/source/run/stmoney.pas b/components/systools/source/general/run/stmoney.pas similarity index 100% rename from components/systools/source/run/stmoney.pas rename to components/systools/source/general/run/stmoney.pas diff --git a/components/systools/source/run/stneptun.pas b/components/systools/source/general/run/stneptun.pas similarity index 100% rename from components/systools/source/run/stneptun.pas rename to components/systools/source/general/run/stneptun.pas diff --git a/components/systools/source/run/stnvbits.pas b/components/systools/source/general/run/stnvbits.pas similarity index 100% rename from components/systools/source/run/stnvbits.pas rename to components/systools/source/general/run/stnvbits.pas diff --git a/components/systools/source/run/stnvcoll.pas b/components/systools/source/general/run/stnvcoll.pas similarity index 100% rename from components/systools/source/run/stnvcoll.pas rename to components/systools/source/general/run/stnvcoll.pas diff --git a/components/systools/source/run/stnvcont.pas b/components/systools/source/general/run/stnvcont.pas similarity index 100% rename from components/systools/source/run/stnvcont.pas rename to components/systools/source/general/run/stnvcont.pas diff --git a/components/systools/source/run/stnvdict.pas b/components/systools/source/general/run/stnvdict.pas similarity index 100% rename from components/systools/source/run/stnvdict.pas rename to components/systools/source/general/run/stnvdict.pas diff --git a/components/systools/source/run/stnvdq.pas b/components/systools/source/general/run/stnvdq.pas similarity index 100% rename from components/systools/source/run/stnvdq.pas rename to components/systools/source/general/run/stnvdq.pas diff --git a/components/systools/source/run/stnvlary.pas b/components/systools/source/general/run/stnvlary.pas similarity index 100% rename from components/systools/source/run/stnvlary.pas rename to components/systools/source/general/run/stnvlary.pas diff --git a/components/systools/source/run/stnvlist.pas b/components/systools/source/general/run/stnvlist.pas similarity index 100% rename from components/systools/source/run/stnvlist.pas rename to components/systools/source/general/run/stnvlist.pas diff --git a/components/systools/source/run/stnvlmat.pas b/components/systools/source/general/run/stnvlmat.pas similarity index 100% rename from components/systools/source/run/stnvlmat.pas rename to components/systools/source/general/run/stnvlmat.pas diff --git a/components/systools/source/run/stnvscol.pas b/components/systools/source/general/run/stnvscol.pas similarity index 100% rename from components/systools/source/run/stnvscol.pas rename to components/systools/source/general/run/stnvscol.pas diff --git a/components/systools/source/run/stnvtree.pas b/components/systools/source/general/run/stnvtree.pas similarity index 100% rename from components/systools/source/run/stnvtree.pas rename to components/systools/source/general/run/stnvtree.pas diff --git a/components/systools/source/run/stpluto.pas b/components/systools/source/general/run/stpluto.pas similarity index 100% rename from components/systools/source/run/stpluto.pas rename to components/systools/source/general/run/stpluto.pas diff --git a/components/systools/source/run/stpqueue.pas b/components/systools/source/general/run/stpqueue.pas similarity index 100% rename from components/systools/source/run/stpqueue.pas rename to components/systools/source/general/run/stpqueue.pas diff --git a/components/systools/source/run/stptrns.pas b/components/systools/source/general/run/stptrns.pas similarity index 100% rename from components/systools/source/run/stptrns.pas rename to components/systools/source/general/run/stptrns.pas diff --git a/components/systools/source/run/strandom.pas b/components/systools/source/general/run/strandom.pas similarity index 100% rename from components/systools/source/run/strandom.pas rename to components/systools/source/general/run/strandom.pas diff --git a/components/systools/source/run/stregex.pas b/components/systools/source/general/run/stregex.pas similarity index 100% rename from components/systools/source/run/stregex.pas rename to components/systools/source/general/run/stregex.pas diff --git a/components/systools/source/run/stsaturn.pas b/components/systools/source/general/run/stsaturn.pas similarity index 100% rename from components/systools/source/run/stsaturn.pas rename to components/systools/source/general/run/stsaturn.pas diff --git a/components/systools/source/run/ststat.pas b/components/systools/source/general/run/ststat.pas similarity index 100% rename from components/systools/source/run/ststat.pas rename to components/systools/source/general/run/ststat.pas diff --git a/components/systools/source/run/ststrl.pas b/components/systools/source/general/run/ststrl.pas similarity index 100% rename from components/systools/source/run/ststrl.pas rename to components/systools/source/general/run/ststrl.pas diff --git a/components/systools/source/run/ststrms.pas b/components/systools/source/general/run/ststrms.pas similarity index 100% rename from components/systools/source/run/ststrms.pas rename to components/systools/source/general/run/ststrms.pas diff --git a/components/systools/source/run/ststrs.pas b/components/systools/source/general/run/ststrs.pas similarity index 100% rename from components/systools/source/run/ststrs.pas rename to components/systools/source/general/run/ststrs.pas diff --git a/components/systools/source/run/sttext.pas b/components/systools/source/general/run/sttext.pas similarity index 100% rename from components/systools/source/run/sttext.pas rename to components/systools/source/general/run/sttext.pas diff --git a/components/systools/source/run/sttohtml.pas b/components/systools/source/general/run/sttohtml.pas similarity index 100% rename from components/systools/source/run/sttohtml.pas rename to components/systools/source/general/run/sttohtml.pas diff --git a/components/systools/source/run/sttree.pas b/components/systools/source/general/run/sttree.pas similarity index 100% rename from components/systools/source/run/sttree.pas rename to components/systools/source/general/run/sttree.pas diff --git a/components/systools/source/run/sttxtdat.pas b/components/systools/source/general/run/sttxtdat.pas similarity index 100% rename from components/systools/source/run/sttxtdat.pas rename to components/systools/source/general/run/sttxtdat.pas diff --git a/components/systools/source/run/sturanus.pas b/components/systools/source/general/run/sturanus.pas similarity index 100% rename from components/systools/source/run/sturanus.pas rename to components/systools/source/general/run/sturanus.pas diff --git a/components/systools/source/run/stutils.pas b/components/systools/source/general/run/stutils.pas similarity index 100% rename from components/systools/source/run/stutils.pas rename to components/systools/source/general/run/stutils.pas diff --git a/components/systools/source/run/stvarr.pas b/components/systools/source/general/run/stvarr.pas similarity index 100% rename from components/systools/source/run/stvarr.pas rename to components/systools/source/general/run/stvarr.pas diff --git a/components/systools/source/run/stvenus.pas b/components/systools/source/general/run/stvenus.pas similarity index 100% rename from components/systools/source/run/stvenus.pas rename to components/systools/source/general/run/stvenus.pas diff --git a/components/systools/source/windows_only/design/stregwin.pas b/components/systools/source/windows_only/design/stregwin.pas index 7dfdc91d5..7a7df308b 100644 --- a/components/systools/source/windows_only/design/stregwin.pas +++ b/components/systools/source/windows_only/design/stregwin.pas @@ -31,7 +31,7 @@ //{$I StDefine.inc} -//{$R streg.r32} +{$R stregwin.res} unit StRegWin; @@ -40,7 +40,7 @@ interface uses Classes, {$IFDEF FPC} - PropEdits //, LazarusPackageIntf //, FieldsEditor, ComponentEditors + PropEdits {$ELSE} {$IFDEF VERSION6} DesignIntf, diff --git a/components/systools/source/windows_only/run/stgenlog.pas b/components/systools/source/windows_only/run/stgenlog.pas index f3a3dd180..9c26add8c 100644 --- a/components/systools/source/windows_only/run/stgenlog.pas +++ b/components/systools/source/windows_only/run/stgenlog.pas @@ -254,7 +254,7 @@ begin FLogFileHeader := StLogFileHeader; HighLevel := StDefHighLevel; glHighLevelTriggered := False; - glTimeBase := GetTickCount; + glTimeBase := GetTickCount64; end; destructor TStGeneralLog.Destroy; @@ -309,7 +309,7 @@ begin { Bail if we're not logging } if not Enabled then Exit; - TimeMrk := GetTickCount; + TimeMrk := GetTickCount64; { Determine size needed } SizeReq := SizeOf(TStLogRec); @@ -495,7 +495,7 @@ begin { Copy second half } Move(glBuffer[0], glTempBuffer[ChunkSize], (LogRec.lrData4 - ChunkSize)); - LogRec.lrData3 := DWORD(@glTempBuffer[0]); + LogRec.lrData3 := DWORD(PtrInt((@glTempBuffer[0]))); glBufferHead := LogRec.lrData4 - ChunkSize; end; end diff --git a/components/systools/source/windows_only/run/sttext.pas b/components/systools/source/windows_only/run/sttext.pas deleted file mode 100644 index 394d6c92d..000000000 --- a/components/systools/source/windows_only/run/sttext.pas +++ /dev/null @@ -1,175 +0,0 @@ -// Upgraded to Delphi 2009: Sebastian Zierer - -(* ***** BEGIN LICENSE BLOCK ***** - * Version: MPL 1.1 - * - * The contents of this file are subject to the Mozilla Public License Version - * 1.1 (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * http://www.mozilla.org/MPL/ - * - * Software distributed under the License is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License - * for the specific language governing rights and limitations under the - * License. - * - * The Original Code is TurboPower SysTools - * - * The Initial Developer of the Original Code is - * TurboPower Software - * - * Portions created by the Initial Developer are Copyright (C) 1996-2002 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): - * - * ***** END LICENSE BLOCK ***** *) - -{*********************************************************} -{* SysTools: StText.pas 4.04 *} -{*********************************************************} -{* SysTools: Routines for manipulating Delphi Text files *} -{*********************************************************} - -{$IFDEF FPC} - {$mode DELPHI} -{$ENDIF} - -{$I StDefine.inc} - -unit StText; - -interface - -uses - Windows, - SysUtils, STConst, StBase, StSystem; - -function TextSeek(var F : TextFile; Target : LongInt) : Boolean; - {-Seek to the specified position in a text file opened for input} - -function TextFileSize(var F : TextFile) : LongInt; - {-Return the size of a text file} - -function TextPos(var F : TextFile) : LongInt; - {-Return the current position of the logical file pointer (that is, - the position of the physical file pointer, adjusted to account for - buffering)} - -function TextFlush(var F : TextFile) : Boolean; - {-Flush the buffer(s) for a text file} - -implementation - -function TextSeek(var F : TextFile; Target : LongInt) : Boolean; - {-Do a Seek for a text file opened for input. Returns False in case of I/O - error.} -var - Pos : LongInt; -begin - with TTextRec(F) do begin - {assume failure} - Result := False; - {check for file opened for input} - if Mode <> fmInput then Exit; - Pos := FileSeek(Handle, 0, FILE_CURRENT); - if Pos = -1 then Exit; - Dec(Pos, BufEnd); - {see if the Target is within the buffer} - Pos := Target-Pos; - if (Pos >= 0) and (Pos < LongInt(BufEnd)) then - {it is--just move the buffer pointer} - BufPos := Pos - else begin - if FileSeek(Handle, Target, FILE_BEGIN) = -1 then Exit; - {tell Delphi its buffer is empty} - BufEnd := 0; - BufPos := 0; - end; - end; - {if we get to here we succeeded} - Result := True; -end; - -function TextFileSize(var F : TextFile) : LongInt; - {-Return the size of text file F. Returns -1 in case of I/O error.} -var - Old : LongInt; - Res : LongInt; -begin - Result := -1; - with TTextRec(F) do begin - {check for open file} - if Mode = fmClosed then Exit; - {get/save current pos of the file pointer} - Old := FileSeek(Handle, 0, FILE_CURRENT); - if Old = -1 then Exit; - {have OS move to end-of-file} - Res := FileSeek(Handle, 0, FILE_END); - if Res = -1 then Exit; - {reset the old position of the file pointer} - if FileSeek(Handle, Old, FILE_BEGIN) = - 1 then Exit; - end; - Result := Res; -end; - -function TextPos(var F : TextFile) : LongInt; - {-Return the current position of the logical file pointer (that is, - the position of the physical file pointer, adjusted to account for - buffering). Returns -1 in case of I/O error.} -var - Position : LongInt; -begin - Result := -1; - with TTextRec(F) do begin - {check for open file} - if Mode = fmClosed then Exit; - Position := FileSeek(Handle, 0, FILE_CURRENT); - if Position = -1 then Exit; - end; - with TTextRec(F) do - if Mode = fmOutput then {writing} - Inc(Position, BufPos) - else if BufEnd <> 0 then {reading} - Dec(Position, BufEnd-BufPos); - {return the calculated position} - Result := Position; -end; - -function TextFlush(var F : TextFile) : Boolean; - {-Flush the buffer(s) for a text file. Returns False in case of I/O error.} -var - Position : LongInt; - Code : Integer; -begin - Result := False; - with TTextRec(F) do begin - {check for open file} - if Mode = fmClosed then Exit; - {see if file is opened for reading or writing} - if Mode = fmInput then begin - {get current position of the logical file pointer} - Position := TextPos(F); - {exit in case of I/O error} - if Position = -1 then Exit; - if FileSeek(Handle, Position, FILE_BEGIN) = - 1 then Exit; - end - else begin - {write the current contents of the buffer, if any} - if BufPos <> 0 then begin - Code := FileWrite(Handle, BufPtr^, BufPos); - if Code = -1 {<> 0} then Exit; - end; - {flush OS's buffers} - if not FlushOsBuffers(Handle) then Exit; - end; - {tell Delphi its buffer is empty} - BufEnd := 0; - BufPos := 0; - end; - {if we get to here we succeeded} - Result := True; -end; - - -end. diff --git a/components/systools/source/windows_only/run/stwmdcpy.pas b/components/systools/source/windows_only/run/stwmdcpy.pas index c7c91c253..506e115ef 100644 --- a/components/systools/source/windows_only/run/stwmdcpy.pas +++ b/components/systools/source/windows_only/run/stwmdcpy.pas @@ -117,9 +117,9 @@ begin Exit; if Value then begin PrevWndProc:= Pointer( - SetWindowLong(TForm(Owner).Handle, GWL_WNDPROC, LongInt(NewWndProc))) + SetWindowLong(TForm(Owner).Handle, GWL_WNDPROC, PtrInt(NewWndProc))) end else if Assigned(PrevWndProc) then begin - SetWindowLong(TForm(Owner).Handle, GWL_WNDPROC, LongInt(PrevWndProc)); + SetWindowLong(TForm(Owner).Handle, GWL_WNDPROC, PtrInt(PrevWndProc)); PrevWndProc := nil; end; end; @@ -131,7 +131,7 @@ var begin with Msg do begin if (Msg = WM_COPYDATA) then begin - CDS := PCopyDataStruct(Pointer(lParam))^; + CDS := PCopyDataStruct(Pointer(PtrInt(lParam)))^; if (CDS.dwData = WMCOPYID) then begin if (Assigned(FOnDataReceived)) then FOnDataReceived(Self, CDS);