Logo Search packages:      
Sourcecode: xchm version File versions

bool CHMFile::LoadCHM ( const wxString &  archiveName  ) 

Attempts to load a .chm file from disk.

Parameters:
archiveName The .chm filename on disk.
Returns:
true on success, false on failure.

Definition at line 106 of file chmfile.cpp.

References CloseCHM(), GetArchiveInfo(), and LoadContextIDs().

Referenced by CHMFile().

{
      if(_chmFile)
            CloseCHM();

      assert(_chmFile == NULL);

      _chmFile = chm_open(static_cast<const char *>(archiveName.mb_str()));
      
      if(_chmFile == NULL)
            return false;

      _filename = archiveName;      
      GetArchiveInfo();
      LoadContextIDs();

      return true;
}


Generated by  Doxygen 1.6.0   Back to index