I found my problem. It was related to USE_FILE_INO defined in common/settings.h. With USE_FILE_INO, Aspell compares files inode number to see if a dictionary is already loaded . Under win32 inode numbers mean nothing. For every file I had inode = 0, device = 2 (C: ). So I could only load one dictionary. It was working on command line because I ran aspell.exe through cygwin, which emulate inode numbers I guess. In my VC++ port, outside of cygwin, my API call didn't work.
So for those using Aspell on win32 you might want to remove USE_FILE_INO from settings.h before compiling. Francois Boudreau > -----Original Message----- > From: Francois Boudreau [mailto:[EMAIL PROTECTED]] > Sent: 26 novembre, 2002 13:47 > To: Kevin Atkinson > Cc: [EMAIL PROTECTED] > Subject: RE: [Aspell-user] extra-dicts > > > > > > Try > > > > aspell_config_replace(m_spell_config, "add-extra-dicts", "./mine.rws"); > > ^^ > > > > And make sure you do it before the manager class is created. > > > > Ok, here's the actual chunk of code I use. > > m_spell_config = new_aspell_config(); > aspell_config_replace(m_spell_config, _T("lang"), strLang); > aspell_config_replace(m_spell_config, _T("dict-dir"), strDictDir); > aspell_config_replace(m_spell_config, _T("data-dir"), strDataDir); > aspell_config_replace(m_spell_config, _T("home-dir"), strHomeDir); > aspell_config_replace(m_spell_config, _T("add-extra-dicts"), > strExtraDict); > > // try to create speller > AspellCanHaveError * m_possible_err = new_aspell_speller(m_spell_config); > > > And strExtraDict is in strDictDir. Aspell finds it cause if I use > a dummy filename I get and error message. I also get an error > message if the file format is not good. So path is not the > problem but the extra dict content seems to be ignored. Maybe I'm > doing something wrong... > > > Francois _______________________________________________ Aspell-user mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/aspell-user
