EgtInterface 2.1c2 :

- aggiunte interfacce per funzioni EgtGetStringUtf8FromIni e EgtWriteStringUtf8ToIni.
This commit is contained in:
Dario Sassi
2019-03-18 06:49:31 +00:00
parent 76439e1fea
commit 4175113883
2 changed files with 19 additions and 0 deletions
+19
View File
@@ -306,3 +306,22 @@ __stdcall EgtSetMainWindowHandle( HWND hMainWnd)
{
return ( ExeSetMainWindowHandle( hMainWnd) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetStringUtf8FromIni( const wchar_t* wsSec, const wchar_t* wsKey, const wchar_t* wsDef,
wchar_t*& wsVal, const wchar_t* wsIniFile)
{
string sVal ;
if ( ! ExeGetStringUtf8FromIni( wstrztoA( wsSec), wstrztoA( wsKey), wstrztoA( wsDef), sVal, wstrztoA( wsIniFile)))
return FALSE ;
wsVal = _wcsdup( stringtoW( sVal)) ;
return (( wsVal == nullptr) ? FALSE : TRUE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtWriteStringUtf8ToIni( const wchar_t* wsSec, const wchar_t* wsKey, const wchar_t* wsVal, const wchar_t* wsIniFile)
{
return ( ExeWriteStringUtf8ToIni( wstrztoA( wsSec), wstrztoA( wsKey), wstrztoA( wsVal), wstrztoA( wsIniFile)) ? TRUE : FALSE) ;
}
BIN
View File
Binary file not shown.