Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / October 2007

Tip: Looking for answers? Try searching our database.

Outlook 2003 Add-In Settings

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ramon Espuga - 24 Oct 2007 13:35 GMT
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
Ken Slovak - [MVP - Outlook] - 24 Oct 2007 14:58 GMT
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.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Hello,
>
[quoted text clipped - 7 lines]
>
>    Ramon
Ramon Espuga - 26 Oct 2007 09:11 GMT
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

> 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
[quoted text clipped - 19 lines]
> >
> >    Ramon
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.