Skip to content

Commit

Permalink
Renamed C++ bindings to ctgputtylib.cpp/h
Browse files Browse the repository at this point in the history
Renamed C++ bindings to ctgputtylib.cpp/h
  • Loading branch information
superflexible committed Dec 1, 2019
1 parent c8293f4 commit c9c033d
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 33 deletions.
18 changes: 3 additions & 15 deletions CPPDemos/CPPBuilderClassDemo/CPPBuilderClassDemo.cbproj
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@
<Cfg_2>true</Cfg_2>
<Base>true</Base>
</PropertyGroup>
<PropertyGroup Condition="('$(Platform)'=='Win64' and '$(Cfg_2)'=='true') or '$(Cfg_2_Win64)'!=''">
<Cfg_2_Win64>true</Cfg_2_Win64>
<CfgParent>Cfg_2</CfgParent>
<Cfg_2>true</Cfg_2>
<Base>true</Base>
</PropertyGroup>
<PropertyGroup Condition="'$(Base)'!=''">
<DCC_CBuilderOutput>JPHNE</DCC_CBuilderOutput>
<IntermediateOutputDir>.\$(Platform)\$(Config)</IntermediateOutputDir>
Expand Down Expand Up @@ -105,13 +99,11 @@
<VerInfo_Locale>1033</VerInfo_Locale>
<UWP_CppLogo44>$(BDS)\bin\Artwork\Windows\UWP\cppreg_UwpDefault_44.png</UWP_CppLogo44>
<UWP_CppLogo150>$(BDS)\bin\Artwork\Windows\UWP\cppreg_UwpDefault_150.png</UWP_CppLogo150>
<BCC_PCHName_Clang>ClassDemoPCH1.h</BCC_PCHName_Clang>
</PropertyGroup>
<PropertyGroup Condition="'$(Base_Win64)'!=''">
<PackageImports>adortl;appanalytics;bcbie;bcbsmp;bindcomp;bindcompdbx;bindcompfmx;bindcompvcl;bindengine;clinetsuite_103;CloudService;CustomIPTransport;dbexpress;dbrtl;dbxcds;DbxClientDriver;DbxCommonDriver;DBXInterBaseDriver;DBXMySQLDriver;DBXSqliteDriver;dsnap;dsnapcon;dsnapxml;FireDAC;FireDACADSDriver;FireDACCommon;FireDACCommonDriver;FireDACCommonODBC;FireDACIBDriver;FireDACMSAccDriver;FireDACMySQLDriver;FireDACPgDriver;FireDACSqliteDriver;fmx;fmxase;fmxdae;fmxFireDAC;fmxobj;FMXTee;FmxTeeUI;IndyCore;IndyIPClient;IndyIPCommon;IndyIPServer;IndyProtocols;IndySystem;inet;inetdb;inetdbxpress;lmdrtbar;lmdrtchart;lmdrtchartdb;lmdrtcore;lmdrtdesign;lmdrtdialog;lmdrtdocking;lmdrtelcore;lmdrteldb;lmdrtelpro;lmdrtfx;lmdrtgrid;lmdrtide;lmdrtinspector;lmdrtl;lmdrtplugin;lmdrtprint;lmdrtrtf;lmdrtrtfdb;lmdrtrtlx;lmdrtscript;lmdrtscriptimp;lmdrtsearch;lmdrtsearchdb;lmdrtshell;lmdrtstorage;lmdrtsyntax;lmdrtsys;lmdrtthemes;lmdrttools;lmdrttoolsdb;lmdrttxt;lmdrttxtdb;lmdrtweb;RESTBackendComponents;RESTComponents;rtl;soapmidas;soaprtl;soapserver;Tee;TeeDB;TeeUI;tethering;vcl;vclactnband;vcldb;vcldsnap;vclFireDAC;vclie;vclimg;VCLRESTComponents;VclSmp;vcltouch;vclwinx;vclx;xmlrtl;$(PackageImports)</PackageImports>
<UWP_CppLogo44>$(BDS)\bin\Artwork\Windows\UWP\cppreg_UwpDefault_44.png</UWP_CppLogo44>
<UWP_CppLogo150>$(BDS)\bin\Artwork\Windows\UWP\cppreg_UwpDefault_150.png</UWP_CppLogo150>
<BCC_PCHName_Clang>ClassDemoPCH1.h</BCC_PCHName_Clang>
<DCC_Namespace>Winapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;$(DCC_Namespace)</DCC_Namespace>
<BT_BuildType>Debug</BT_BuildType>
<VerInfo_Keys>CompanyName=;FileDescription=$(MSBuildProjectName);FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProgramID=com.embarcadero.$(MSBuildProjectName);ProductName=$(MSBuildProjectName);ProductVersion=1.0.0.0;Comments=</VerInfo_Keys>
Expand Down Expand Up @@ -156,10 +148,6 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Cfg_2_Win32)'!=''">
<BCC_UseClassicCompiler>false</BCC_UseClassicCompiler>
<BCC_PCHName_Clang>ClassDemoPCH1.h</BCC_PCHName_Clang>
</PropertyGroup>
<PropertyGroup Condition="'$(Cfg_2_Win64)'!=''">
<BCC_PCHName_Clang>ClassDemoPCH1.h</BCC_PCHName_Clang>
</PropertyGroup>
<ItemGroup>
<CppCompile Include="ClassDemo.cpp">
Expand All @@ -169,7 +157,7 @@
<BuildOrder>0</BuildOrder>
<PCH>true</PCH>
</PCHCompile>
<CppCompile Include="..\..\tgputtylib.cpp">
<CppCompile Include="..\..\ctgputtylib.cpp">
<BuildOrder>3</BuildOrder>
</CppCompile>
<CppCompile Include="..\..\tgputtylibcbclass.cpp">
Expand Down Expand Up @@ -214,7 +202,7 @@
<Overwrite>true</Overwrite>
</Platform>
</DeployFile>
<DeployFile LocalName=".\Win32\Debug\CPPBuilderClassDemo.tds" Configuration="Debug" Class="DebugSymbols">
<DeployFile LocalName="..\..\Win32\Debug\CPPBuilderClassDemo.tds" Configuration="Debug" Class="DebugSymbols">
<Platform Name="Win32">
<RemoteName>CPPBuilderClassDemo.tds</RemoteName>
<Overwrite>true</Overwrite>
Expand Down Expand Up @@ -280,7 +268,7 @@
<Overwrite>true</Overwrite>
</Platform>
</DeployFile>
<DeployFile LocalName=".\Win32\Debug\CPPBuilderClassDemo.exe" Configuration="Debug" Class="ProjectOutput">
<DeployFile LocalName="..\..\Win32\Debug\CPPBuilderClassDemo.exe" Configuration="Debug" Class="ProjectOutput">
<Platform Name="Win32">
<RemoteName>CPPBuilderClassDemo.exe</RemoteName>
<Overwrite>true</Overwrite>
Expand Down
6 changes: 3 additions & 3 deletions CPPDemos/Simple/simpledemo.cbproj
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
<BuildOrder>0</BuildOrder>
<PCH>true</PCH>
</PCHCompile>
<CppCompile Include="..\..\tgputtylib.cpp">
<CppCompile Include="..\..\ctgputtylib.cpp">
<BuildOrder>2</BuildOrder>
</CppCompile>
<BuildConfiguration Include="Release">
Expand Down Expand Up @@ -249,13 +249,13 @@
<Overwrite>true</Overwrite>
</Platform>
</DeployFile>
<DeployFile LocalName=".\Win32\Debug\simpledemo.exe" Configuration="Debug" Class="ProjectOutput">
<DeployFile LocalName="..\..\Win32\Debug\simpledemo.exe" Configuration="Debug" Class="ProjectOutput">
<Platform Name="Win32">
<RemoteName>simpledemo.exe</RemoteName>
<Overwrite>true</Overwrite>
</Platform>
</DeployFile>
<DeployFile LocalName=".\Win32\Debug\simpledemo.tds" Configuration="Debug" Class="DebugSymbols">
<DeployFile LocalName="..\..\Win32\Debug\simpledemo.tds" Configuration="Debug" Class="DebugSymbols">
<Platform Name="Win32">
<RemoteName>simpledemo.tds</RemoteName>
<Overwrite>true</Overwrite>
Expand Down
2 changes: 1 addition & 1 deletion CPPDemos/Simple/simpledemo.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma hdrstop
#pragma argsused

#include "tgputtylib.hpp"
#include "ctgputtylib.h"

#ifdef _WIN32
#include <tchar.h>
Expand Down
2 changes: 1 addition & 1 deletion CPPDemos/VCSFTPClassTest/VCSFTPClassTest.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\tgputtylib.cpp" />
<ClCompile Include="..\..\ctgputtylib.cpp" />
<ClCompile Include="..\..\tgputtylibvcclass.cpp" />
<ClCompile Include="VCSFTPClassTest.cpp" />
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions CPPDemos/VCSFTPClassTest/VCSFTPClassTest.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<ClCompile Include="VCSFTPClassTest.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\tgputtylib.cpp">
<ClCompile Include="..\..\tgputtylibvcclass.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\tgputtylibvcclass.cpp">
<ClCompile Include="..\..\ctgputtylib.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion CPPDemos/VCSimpleDemo/VCSimpleDemo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//

#include <iostream>
#include "../../tgputtylib.hpp"
#include "../../ctgputtylib.h"

int main()
{
Expand Down
2 changes: 1 addition & 1 deletion CPPDemos/VCSimpleDemo/VCSimpleDemo.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\tgputtylib.cpp" />
<ClCompile Include="..\..\ctgputtylib.cpp" />
<ClCompile Include="VCSimpleDemo.cpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Expand Down
2 changes: 1 addition & 1 deletion CPPDemos/VCSimpleDemo/VCSimpleDemo.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<ClCompile Include="VCSimpleDemo.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\tgputtylib.cpp">
<ClCompile Include="..\..\ctgputtylib.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ tgputtysftp.pas - Delphi SFTP Client Class (using 8-bit strings)

tgputtysftpclient.pas - Delphi SFTP Client Component (using UnicodeStrings)

tgputtylib.cpp,hpp - C++ DLL bindings
ctgputtylib.cpp,h - C++ DLL bindings

tgputtylibcbclass.cpp,hpp - C++ Builder SFTP Client Class

Expand Down
Binary file modified Win32/Debug/CPPBuilderClassDemo.exe
Binary file not shown.
Binary file modified Win32/Debug/VCSFTPClassTest.exe
Binary file not shown.
Binary file modified Win32/Debug/simpledemo.exe
Binary file not shown.
Binary file modified Win64/Debug/VCSimpleDemo.exe
Binary file not shown.
6 changes: 1 addition & 5 deletions tgputtylib.cpp → ctgputtylib.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#pragma hdrstop

#include <stdio.h>
#include <windows.h>
#include "tgputtylib.hpp"

#pragma package(smart_init)
#include "ctgputtylib.h"

HINSTANCE hPuttyLib = NULL;

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tgputtylibcbclass.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define tgputtylibcbclassH

#include <string>
#include "tgputtylib.hpp"
#include "ctgputtylib.h"


typedef void (__closure *TOnMessage)(const char *Msg, const bool isstderr);
Expand Down
2 changes: 1 addition & 1 deletion tgputtylibvcclass.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <string>
#include <stdexcept>
#include <functional>
#include "tgputtylib.hpp"
#include "ctgputtylib.h"


typedef std::function<void(const char* Msg, const bool isstderr)> TOnMessage;
Expand Down

0 comments on commit c9c033d

Please sign in to comment.