diff --git a/EInAPI.h b/EInAPI.h index 9e34cbb..a09a8dc 100644 --- a/EInAPI.h +++ b/EInAPI.h @@ -522,6 +522,9 @@ EIN_EXPORT int __stdcall EgtVerifyCutAsSplitting( int nMchId) ; // Machining EIN_EXPORT BOOL __stdcall EgtInitMachMgr( const wchar_t* wsMachinesDir) ; +// Errors +EIN_EXPORT int __stdcall EgtGetLastMachMgrErrorId( void) ; +EIN_EXPORT wchar_t* __stdcall EgtGetLastMachMgrErrorString( void) ; // Machines EIN_EXPORT BOOL __stdcall EgtSetCurrMachine( const wchar_t* wsMachineName) ; EIN_EXPORT BOOL __stdcall EgtGetCurrMachineName( wchar_t*& wsMachineName) ; diff --git a/EMkMachMgr.h b/EMkMachMgr.h index b4863b9..9d72d74 100644 --- a/EMkMachMgr.h +++ b/EMkMachMgr.h @@ -34,6 +34,8 @@ class __declspec( novtable) IMachMgr int nContextId, const std::string& sLuaLibsDir, const std::string& sLuaLastRequire) = 0 ; virtual bool Update( void) = 0 ; virtual bool Insert( int nInsGrp) = 0 ; + virtual int GetLastErrorId( void) = 0 ; + virtual std::string GetLastErrorString( void) = 0 ; // Machines virtual bool SetCurrMachine( const std::string& sMachineName) = 0 ; virtual bool GetCurrMachineName( std::string& sMachineName) const = 0 ; diff --git a/EXeExecutor.h b/EXeExecutor.h index 6170b20..ddc1556 100644 --- a/EXeExecutor.h +++ b/EXeExecutor.h @@ -568,6 +568,9 @@ EXE_EXPORT int ExeVerifyCutAsSplitting( int nMchId) ; EXE_EXPORT bool ExeInitMachMgr( const std::string& sMachinesDir) ; EXE_EXPORT bool ExeUpdateMachMgr( void) ; EXE_EXPORT bool ExeInsertMachMgr( int nInsGrp) ; +// Errors +EXE_EXPORT int ExeGetLastMachMgrErrorId( void) ; +EXE_EXPORT std::string ExeGetLastMachMgrErrorString( void) ; // Machines EXE_EXPORT bool ExeSetCurrMachine( const std::string& sMachineName) ; EXE_EXPORT bool ExeGetCurrMachineName( std::string& sMachineName) ;