Addict Discuss
Loacation of Dictionary Files
Thread Starter: Jack Wilson Started: 6/15/2008 11:54 PM UTC
Replies: 1
Loacation of Dictionary Files
Since there is not a lot of documentation on actual setup, I throw this up for discussion. At present, during our development phase, we have been allowing the application's .exe. file to reside in the root of the application folder. The folder, Dict, resides there to, contains the correct dictionary files and it works fine.

Now are in preparation to begin delivery of our application's upgrade. We decided for the purpose of making a clean folder, to create a "bin" folder where the .exe and all localized .dlls will reside. (So far? So good!) We wish to keep the dictionary files in a folder called Dict off the root of the applications folder. The file strucuture will look something like this:

Banners
Bin
Dict
Help
Logos
Pics

Here is what happens. When the program file is ran from within the Bin folder, and you attempt to spell check? All of the words show as being misspelled. A new Dict folder has been created in the Bin folder and as would be expected, does not have any dictionary files.

My question is, what is the best method within the code to have the application locate the dictionary files in the Dict folder sitting directly off root of the application folder?

Any assistance would be greatly appreciated.

Jack Wilson
Northwest Software...
RE: Loacation of Dictionary Files
> Here is what happens. When the program file is ran from within the Bin folder, and you attempt to spell check? All of the words show as being misspelled. A new Dict folder has been created in the Bin folder and as would be expected, does not have any dictionary files.

My question is, what is the best method within the code to have the application locate the dictionary files in the Dict folder sitting directly off root of the application folder?  <<

There is of course nothing wrong with your proposed situation :)

The most likely problem is that you are using the Registry for storage, and when you run an existing application with the changed settings, it loads the previous settings from the registry.

When doing structural changes like this, you should either:

a) Change the Registry Key being used through the Addict Properties, if you wish to use the registry.

b) Use the File storage (csFile) setting and either delete the spell.cfg (or whatever you call it) file or rename the file.

In the majority of cases where we receive reports similar to what you describe then the above solves it...


Glenn Crouch, Addict Support
mailto:support@addictivesoftware.com
Addictive Software http://www.addictivesoftware.com    





--
Glenn Crouch mailto:support@addictivesoftware.com
Addictive Software Support
http://www.addictivesoftware.com