Re: aspell.conf is not recognized under windows

"Gary Setter" <[email protected]>
Newsgroups gmane.comp.gnu.aspell.user
Message-ID <009a01c6b967$e9a65540$27144a0c@pavilion>
----- Original Message ----- 
From: "Ephraim Talrock" <[email protected]>
To: <[email protected]>
Sent: Sunday, August 06, 2006 4:36 AM
Subject: Re: [Aspell-user] aspell.conf is not recognized under
windows


> > 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?
>
>
Hi  Ephraim,

I think I understand what you are trying to do. I'll experiment a
bit and let you know what I find out. I expect the key will be
calling aspell_config_replace("conf-dir","MyCofigurationDir"); at
exactly the right point.

Regards,
Gary
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.