From df7b09361669c364aa2d098f175e7262e7ef216a Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Thu, 7 Sep 2017 09:23:19 +0000 Subject: [PATCH] EgtInterface 1.8i1 : - aggiunte funzioni EgtSetTempDir e EgtGetTempDir. --- API_General.cpp | 18 ++++++++++++++++++ EgtInterface.rc | Bin 11718 -> 11718 bytes 2 files changed, 18 insertions(+) diff --git a/API_General.cpp b/API_General.cpp index 9bcd94e..9d8e139 100644 --- a/API_General.cpp +++ b/API_General.cpp @@ -251,6 +251,24 @@ __stdcall EgtSetOutText( pfOutTextW pFun) return ( ExeSetOutText( (( pFun != nullptr) ? MyOutText : nullptr)) ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtSetTempDir( const wchar_t* wsTempDir) +{ + return ( ExeSetTempDir( wstrztoA( wsTempDir)) ? TRUE : FALSE) ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetTempDir( wchar_t*& wsTempDir) +{ + string sTempDir ; + if ( ! ExeGetTempDir( sTempDir)) + return FALSE ; + wsTempDir = _wcsdup( stringtoW( sTempDir)) ; + return (( wsTempDir == nullptr) ? FALSE : TRUE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtSetMainWindowHandle( HWND hMainWnd) diff --git a/EgtInterface.rc b/EgtInterface.rc index a5a3c9e100c6a70ec6ed9b0a31139a14d6307ed7..8b5c03e49e1e8202e5041ed274ba34f6f155faad 100644 GIT binary patch delta 135 zcmX>WeJpyzH#SyF1|0^&%^&$rGEF|hS;L&kU^w}qpzh`Zt{N7&oFg+#d~yMo#bg5> joym8&o@`zvtiudf1Ju7n5}`jp3aG3Px delta 135 zcmX>WeJpyzH#Sxa1|0^I%^&$rGEF|hS;L&cU^4lkpzh`Zt{N7&oFg+#d~yMo#bg5> joym8&o@`zvtiudf1Ju7n5}`jp3a