EgtInterface 2.1c2 :
- aggiunte interfacce per funzioni EgtGetStringUtf8FromIni e EgtWriteStringUtf8ToIni.
This commit is contained in:
@@ -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) ;
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user