aspell-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Aspell-user] aspell.conf is not recognized under windows


From: Gary Setter
Subject: Re: [Aspell-user] aspell.conf is not recognized under windows
Date: Sun, 6 Aug 2006 09:51:56 -0500

----- Original Message ----- 
From: "Ephraim Talrock" <address@hidden>
To: <address@hidden>
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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]