EgtInterface 1.8i1 :

- aggiunte funzioni EgtSetTempDir e EgtGetTempDir.
This commit is contained in:
Dario Sassi
2017-09-07 09:23:19 +00:00
parent af432b6b04
commit df7b093616
2 changed files with 18 additions and 0 deletions
+18
View File
@@ -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)
BIN
View File
Binary file not shown.