EgtInterface 1.8i1 :
- aggiunte funzioni EgtSetTempDir e EgtGetTempDir.
This commit is contained in:
@@ -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)
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user