Skip to content

Commit

Permalink
Check compiling with Delphi 7
Browse files Browse the repository at this point in the history
  • Loading branch information
mirus77 committed Dec 19, 2018
1 parent 30df595 commit e4ea2e2
Show file tree
Hide file tree
Showing 12 changed files with 1,179 additions and 93 deletions.
77 changes: 40 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# DelphiEET
Delphi component for registered sale data messages. http://www.etrzby.cz

- It may be compiled with Delphi 2007 (only WinInet) and Delphi 10.2 Berlin (Indy and WinInet)
- It may be compiled with
Delphi 7 (Native WinInet, SecureBridge, Synapse) and
Delphi 2007 (Native WinInet, SecureBridge, Synapse) and
Delphi 10.2 Berlin (Indy, WinInet, SecureBridge, Synapse)
Delphi 10.3 Rio (Net.HttpClient, SecureBridge, Synapse)


## Use with USE_LIBEET
Expand All @@ -10,69 +14,68 @@ Demo need library.
```
libeetsigner.dll # source at : https://github.com/mirus77/libeet
- needed installed Visual C++ Redistributable Packages for Visual Studio 2013
openssl 1.0.x (libeay32.dll, ssleay32.dll) libs for Indy Https comunication
- can be used openssl lib from https://indy.fulgan.com/SSL/ or from project with dependencies libgcc_s_dw2-1.dll and libwinpthread-1.dll
openssl 1.0.x (libeay32.dll, ssleay32.dll) libs for Indy, Synapse Https communication
- can be used openssl lib from https://indy.fulgan.com/SSL/ or from project bin directory
```
Delphi project Options for demo TestEET.dpr with USE_LIBEET

```
Delphi Compiler Options -> Conditional Defines :
USE_LIBEET - for using with libeetsigner
USE_INDY - for using in Windows XP required. This is not usable for Delphi Starter Edition.
USE_DIRECTINDY - enable function with direct usage indy for post request and receive response.
USE_LIBEET - use wrapper libeetsigner.dll - static compiled into one library (libxml2, xmlsec, openssl)
compiled with Visual Studio 2013 U5 Express - VC12 (VS Runtime 2013) needed MSVCR120.dll
USE_VS_LIBS - use libxml2 and xmlsec compiled with Visual Studio
solution for time_t compatibility
VS 2013 and lower using MSVCRxxx.dll
VS 2015 and higher VCRUNTIME140.dll (ucrtbase.dll)
Select EETHttpClient directives :
USE_SYNAPSE_CLIENT - use Synapse library for HTTP Post (WinXP and higher)
or USE_RIO_CLIENT - Native SOAP HTTPRio for HTTP Post (default choice) Win Vista and higher
or USE_SBRIDGE_CLIENT - use SecureBridge components from www.devart.com for HTTP Post (WinXP and higher)
or USE_NETHTTP_CLIENT - use Net.HttpClient with Delphi XE8 and higher for HTTP Post (uniplatform)
For x64 binaries of demo use directive USE_LIBEET
Delphi Compiler Options -> Output Directory: ..\bin
Delphi Compiler Options -> Output Directory: ..\..\bin
Delphi Compiler Options -> Search Path:
$(BDS)\source\soap;..\include\databinding;
..\include\eet;..\include\vcruntime
..\..\source\databinding;..\..\source\eet;
..\..\source\xmlsec;..\..\source\vcruntime;..\..\source\httpclient
Delphi Compiler Options -> Unit Output Directory: .\dcu
```


## Use without USE_LIBEET
Demo need libxml2 and libxmlsec library from : ftp://ftp.zlatkovic.com/libxml/64bit/
or self compiled libXML, XMLSEC with Visual Studio (build scripts at https://github.com/mirus77/build_xmlsoft).
Demo need library.
```
Self compiled libXML, XMLSEC with Visual Studio (build scripts at https://github.com/mirus77/build_xmlsoft).
```

```
libcharset-1.dll
libeay32.dll
libexslt-0.dll
libgcc_s_dw2-1.dll
libiconv-2.dll
libintl-8.dll
libltdl-7.dll
libwinpthread-1.dll
libxml2-2.dll
libxmlsec1-openssl.dll
libxmlsec1.dll
libxslt-1.dll
libexslt.dll
libiconv.dll
libxml2.dll
libxmlsec-openssl.dll
libxmlsec.dll
libxslt.dll
openssl.exe (for testing)
ssleay32.dll
xmlsec1.exe (for testing)
zlib1.dll
xmlsec.exe (for testing)
```

Delphi project Options for demo TestEET.dpr

```
Delphi Compiler Options -> Conditional Defines :
USE_INDY - for using in Windows XP required. This is not usable for Delphi Starter Edition.
USE_DIRECTINDY - enable function with direct usage indy for post request and receive response.
Delphi Compiler Options -> Conditional Defines :
USE_VS_LIBS - use libeetsigner.dll in debug mode
Default c-runtime msvcrt.dll for MinGW xmlsec1.
For x64 binaries of demo use directive USE_LIBEET
Delphi Compiler Options -> Output Directory: ..\bin
Select EETHttpClient directives :
USE_SYNAPSE_CLIENT - use Synapse library for HTTP Post (WinXP and higher)
or USE_RIO_CLIENT - Native SOAP HTTPRio for HTTP Post (default choice) Win Vista and higher
or USE_SBRIDGE_CLIENT - use SecureBridge components from www.devart.com for HTTP Post (WinXP and higher)
or USE_NETHTTP_CLIENT - use Net.HttpClient with Delphi XE8 and higher for HTTP Post (uniplatform)
Delphi Compiler Options -> Output Directory: ..\..\bin
Delphi Compiler Options -> Search Path:
$(BDS)\source\soap;..\include\databinding;
..\include\eet;..\include\synapse;..\include\szutils;
..\include\xmlsec;..\include\vcruntime
..\..\source\databinding;..\..\source\eet;
..\..\source\vcruntime;..\..\source\httpclient
Delphi Compiler Options -> Unit Output Directory: .\dcu
```
Empty file added demo/D2007/dcu/.gitkeep
Empty file.
Empty file added demo/D2007/dcu/debug/.gitkeep
Empty file.
151 changes: 151 additions & 0 deletions demo/D7/TestEET_D7.dof
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
[FileVersion]
Version=7.0
[Compiler]
A=8
B=0
C=1
D=1
E=0
F=0
G=1
H=1
I=1
J=0
K=0
L=1
M=0
N=1
O=1
P=1
Q=0
R=0
S=0
T=0
U=0
V=1
W=0
X=1
Y=1
Z=1
ShowHints=1
ShowWarnings=1
UnitAliases=WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE;
NamespacePrefix=
SymbolDeprecated=1
SymbolLibrary=1
SymbolPlatform=1
UnitLibrary=1
UnitPlatform=1
UnitDeprecated=1
HResultCompat=1
HidingMember=1
HiddenVirtual=1
Garbage=1
BoundsError=1
ZeroNilCompat=1
StringConstTruncated=1
ForLoopVarVarPar=1
TypedConstVarPar=1
AsgToTypedConst=1
CaseLabelRange=1
ForVariable=1
ConstructingAbstract=1
ComparisonFalse=1
ComparisonTrue=1
ComparingSignedUnsigned=1
CombiningSignedUnsigned=1
UnsupportedConstruct=1
FileOpen=1
FileOpenUnitSrc=1
BadGlobalSymbol=1
DuplicateConstructorDestructor=1
InvalidDirective=1
PackageNoLink=1
PackageThreadVar=1
ImplicitImport=1
HPPEMITIgnored=1
NoRetVal=1
UseBeforeDef=1
ForLoopVarUndef=1
UnitNameMismatch=1
NoCFGFileFound=1
MessageDirective=1
ImplicitVariants=1
UnicodeToLocale=1
LocaleToUnicode=1
ImagebaseMultiple=1
SuspiciousTypecast=1
PrivatePropAccessor=1
UnsafeType=0
UnsafeCode=0
UnsafeCast=0
[Linker]
MapFile=0
OutputObjs=0
ConsoleApp=1
DebugInfo=0
RemoteSymbols=0
MinStackSize=16384
MaxStackSize=1048576
ImageBase=4194304
ExeDescription=
[Directories]
OutputDir=..\..\bin
UnitOutputDir=.\dcu
PackageDLLOutputDir=
PackageDCPOutputDir=
SearchPath=..\..\source\eet;..\..\source\databinding;..\..\source\vcruntime;..\..\source\httpclient;..\..\source\xmlsec
Packages=vcl;rtl;vclx;indy;inet;xmlrtl;vclie;inetdbbde;inetdbxpress;dbrtl;dsnap;dsnapcon;vcldb;soaprtl;VclSmp;dbexpress;dbxcds;inetdb;bdertl;vcldbx;webdsnap;websnap;adortl;ibxpress;teeui;teedb;tee;dss;visualclx;visualdbclx;vclactnband;vclshlctrls;IntrawebDB_50_70;Intraweb_50_70;Rave50CLX;Rave50VCL;dclOfficeXP;SynEdit_R7
Conditionals=USE_VS_LIBS;USE_LIBEET
DebugSourceDirs=
UsePackages=0
[Parameters]
RunParams=
HostApplication=
Launcher=
UseLauncher=0
DebugCWD=
[Language]
ActiveLang=
ProjectLang=
RootDir=
[Version Info]
IncludeVerInfo=0
AutoIncBuild=0
MajorVer=1
MinorVer=0
Release=0
Build=0
Debug=0
PreRelease=0
Special=0
Private=0
DLL=0
Locale=1029
CodePage=1250
[Version Info Keys]
CompanyName=
FileDescription=
FileVersion=1.0.0.0
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=1.0.0.0
Comments=
[HistoryLists\hlConditionals]
Count=1
Item0=USE_VS_LIBS;USE_LIBEET
[HistoryLists\hlUnitAliases]
Count=1
Item0=WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE;
[HistoryLists\hlSearchPath]
Count=1
Item0=..\..\source\eet;..\..\source\databinding;..\..\source\vcruntime;..\..\source\httpclient;..\..\source\xmlsec
[HistoryLists\hlUnitOutputDirectory]
Count=1
Item0=.\dcu
[HistoryLists\hlOutputDirectorry]
Count=1
Item0=..\..\bin
32 changes: 16 additions & 16 deletions demo/D7/TestEET_D7.dpr
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
// JCL_DEBUG_EXPERT_GENERATEJDBG OFF
// JCL_DEBUG_EXPERT_INSERTJDBG OFF
// JCL_DEBUG_EXPERT_DELETEMAPFILE OFF
program TestEET_DX7;
program TestEET_D7;

{$APPTYPE CONSOLE} // for debuging libxml

{*
Delphi project Options
----------------------
{for using in Windows XP)
Select EETHttpClient for DEMO
Delphi Compiler Options -> Conditional Defines :
USE_INDY - recompile SOAP comunications with Indy
USE_SYNAPSE_CLIENT - use Synapse library for HTTP Post (WinXP and higher)
or USE_RIO_CLIENT - Native SOAP HTTPRio for HTTP Post (default choice) Win Vista and higher
or USE_SBRIDGE_CLIENT - use SecureBridge components from www.devart.com for HTTP Post (WinXP and higher)
or USE_NETHTTP_CLIENT - use Net.HttpClient with Delphi XE8 and higher for HTTP Post (uniplatform)
{for using in Windows XP)
USE_SYNAPSE_CLIENT - use Synapse library for HTTP Post (need openssl libs)
or USE_SBRIDGE_CLIENT - use SecureBridge components from www.devart.com for HTTP Post
(for other OS)
USE_LIBEET - use wrapper libeetsigner.dll - static compiled into one library (libxml2, xmlsec, openssl)
compiled with Visual Studio 2013 U5 Express - VC12 (VS Runtime 2013) needed MSVCR120.dll
USE_VS_LIBS - use libxml2 and xmlsec compiled with Visual Studio
solution for time_t compatibility
VS 2013 and lower using MSVCRxxx.dll
VS 2015 and higher VCRUNTIME140.dll (ucrtbase.dll)
Default c-rutntime msvcrt.dll for MinGW xmlsec1.
For x64 binaries of demo use directive USE_LIBEET
(for other)
Delphi Compiler Options -> Output Directory: ..\bin
Delphi Compiler Options -> Search Path: $(BDS)\source\soap;..\include\databinding;..\include\eet;..\include\synapse;
..\include\szutils;..\include\xmlsec;..\include\vcruntime
Delphi Compiler Options -> Conditional Defines :
Delphi Compiler Options -> Output Directory: ..\..\bin
Delphi Compiler Options -> Search Path: ..\..\source\databinding;..\..\source\eet;
..\..\source\xmlsec;..\..\source\vcruntime;..\..\source\httpclient
Delphi Compiler Options -> Unit Output Directory: .\dcu
*}


uses
System.SimpleShareMem,
Forms,
u_main in '..\u_main.pas' {TestEETForm};

{$R *.res}

begin
ReportMemoryLeaksOnShutdown := true;
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TTestEETForm, TestEETForm);
Application.Run;
end.
Binary file added demo/D7/TestEET_D7.res
Binary file not shown.
Empty file added demo/D7/dcu/.gitkeep
Empty file.
Loading

0 comments on commit e4ea2e2

Please sign in to comment.