Dictionary Cannot be Opened for Reading

rahulr <[email protected]>
Newsgroups gmane.comp.gnu.aspell.user
Message-ID <[email protected]>
Hi,

I am using aspell for the first time. I created the dll for the aspell. In a
project I am using aspell -

AspellConfig * spell_config = new_aspell_config();
aspell_config_replace(spell_config, "lang", "en_US");

aspell_config_replace(spell_config, "dict-dir", "Dictionaries\\English");

AspellCanHaveError * possible_err = new_aspell_speller(spell_config);

AspellSpeller * spell_checker = 0;
if (aspell_error_number(possible_err) != 0)
    puts(aspell_error_message(possible_err));
else
   spell_checker = to_aspell_speller(possible_err);

On running this code I get the following error message -
The file
"Dictionaries\English/Dictionaries\English/Dictionaries\English/en_US.multi"
can not be opened for reading.

It is able to find the dictionary because If I set dictionary path to a
wrong path -
aspell_config_replace(spell_config, "dict-dir", "Dictionaries\\WrongPath");

then I get different error message -
No Word List can be found for Language "en_US".

I am unable to resolve this problem.

I would really appreciate if anybody can help me on this.

I am runnnig this project on VC++.

Regards,
Rahul Rastogi
-- 
View this message in context: http://www.nabble.com/Dictionary-Cannot-be-Opened-for-Reading-tp14310350p14310350.html
Sent from the Gnu - Aspell - User mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.