Re: aspell.conf is not recognized under windows

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


> I've had problems with changing settings. One problem was
> initializing the speller properly. This is what I'm currently
> doing in my setup code.
>   AspellConfig * Config_;
>   AspellSpeller * Speller_;
>  Config_ = new_aspell_config();
>  AspellCanHaveError * ret
>   = new_aspell_speller(Config_);
>  if (aspell_error(ret)) {
>     const char *err_msg = aspell_error_message(ret);
>     WIDEBUFF(msg, err_msg,strlen(err_msg),CP_ACP);
>   MessageBox(HWnd, WSTR(msg, err_msg), _("Spell Check"),MB_OK);
>   CmCancel(HWnd); //close the dialog
>   return;
>  }
> 
>  Speller_ = to_aspell_speller(ret);
> 

Your code is like that one of the documents using Aspell C-API, so I use
it in the same way.

> You can find the whole source at
> http://sourceforge.net/projects/descdatadiary
> If you have more questions, you might mention which version of
> aspell you are using.
> One of the changes I made to the above changed where aspell.conf
> was found. I made it look to the executable directory and to "My
> Documents" for the user files like en.pws.
> 

I tried to set the conf-dir option to the conf Folder of the app, which
I develop. How did you set the directories? with conf-dir too?


Ephraim
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.