Outlook 2003 Add-In Settings

R

Ramon Espuga

Hello,

I'm developing an Outlook 2003 Add-In in Visual Studio 2003 and there
are some properties that I want to save into a configuration file. I know
that I can use OUTLOOK.EXE.config but I think is not a good solution.

Wich is the better way to do this?

Lot of thanks,

Ramon
 
K

Ken Slovak - [MVP - Outlook]

You can create a file with any name you want, but if you intend to write to
it make sure it's in a place that can be written to on Vista and other
restricted systems. That means not anywhere in \Program Files or other
restricted locations. Usually the best way to go about things is to:

A. Write an INI file to <LocalAppData>, which you can find using the API
function ShGetFolderPath.

B. Use the application user settings provided by VS.

C. Write your settings to the registry in the HKCU hive.
 
R

Ramon Espuga

Lots of thanks Ken for your rapid response. Looking to the three options I
prefer writing a file to disk, I have been looking for some examples into the
web but I haven't found any useful for me, can you give me some link or
example in how to do this?

In the other hand, you are talking about application user settings provided
by VS, are there application user settings in Visual Studio 2003? I haven't
found it

Ramon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top