//-----------Public functions---------------------------------------------- public CoreLib(string userPath) { try { m_dll = new CoreDll(); } catch { throw new Exception("Can't load core library!"); } if (Version.Compatible(GetVersion(CoreDll.VersionType.AntiDupl))) { m_handle = m_dll.adCreateW(userPath); } else { throw new Exception("Incompatible core library version!"); } }