From 375c65b9a2a81d01000f048b2f6aa21575b1e119 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Sat, 23 Jun 2018 11:20:13 +0000 Subject: [PATCH] EgtInterface 1.9f4 : - aggiunta interfaccia per EgtGetIniFile. --- API_General.cpp | 13 +++++++++++++ EgtInterface.rc | Bin 11718 -> 11718 bytes 2 files changed, 13 insertions(+) diff --git a/API_General.cpp b/API_General.cpp index 9d8e139..3471bf1 100644 --- a/API_General.cpp +++ b/API_General.cpp @@ -93,6 +93,19 @@ __stdcall EgtSetIniFile( const wchar_t* wsIniFile) return ( ExeSetIniFile( wstrztoA( wsIniFile)) ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetIniFile( wchar_t*& wsIniFile) +{ + if ( &wsIniFile == nullptr) + return FALSE ; + // recupero il nome del file ini + string sIniFile ; + ExeGetIniFile( sIniFile) ; + wsIniFile = _wcsdup( stringtoW( sIniFile)) ; + return (( wsIniFile == nullptr) ? FALSE : TRUE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtSetCommandLogger( const wchar_t* wsLogFile) diff --git a/EgtInterface.rc b/EgtInterface.rc index cfe4f39510e965b330889f72f1a887428b9ed40b..37a8ac3f39d9ffade9a4fbf15401361663aa6e4a 100644 GIT binary patch delta 111 zcmX>WeJpyzFE&P#%^&$rGEF|hS;uHH`Jtfh<^rw;7OzIAO+TQQ4Xt~E@c}o07@$;z5oCK delta 111 zcmX>WeJpyzFE&P_%^&$rGEF|hS;uHJ`Jtfh<^rw;7OzIAO+TQQ4Xt~E@c}o07g?Nt^fc4