473,325 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

App settings magic?

I have an application that consists of two projects, a main program and a
separate DLL assembly. The DLL contains an application-scoped setting,
which I access via something to the effect of My.Settings.SomeSetting.

Now, here is the mystery: I was under the impression that
application-scoped settings are stored in the .config file associated with
the application assembly. But Visual Studio doesn't copy the dll's config
file to the main application directory. The only files I see in the main
application directory are the application's exe, pdb, and config files plus
the dll and it's pdb file. And yet it works. When I call into the dll,
My.Settings.SomeSetting returns the value I've given it in the designer.

Where is this application-scoped setting stored? Is it somehow baked into
the dll? I chose to use the My.Settings magic because I thought I'd end up
with a text file that could be edited in the field if a customer needed to
change that setting. But I can't find the text file...

TIA - Bob
Oct 23 '07 #1
1 1123
"Bob Altman" <rd*@nospam.comwrote in message
news:u$**************@TK2MSFTNGP05.phx.gbl...
>I have an application that consists of two projects, a main program and a
separate DLL assembly. The DLL contains an application-scoped setting,
which I access via something to the effect of My.Settings.SomeSetting.

Now, here is the mystery: I was under the impression that
application-scoped settings are stored in the .config file associated with
the application assembly. But Visual Studio doesn't copy the dll's config
file to the main application directory. The only files I see in the main
application directory are the application's exe, pdb, and config files
plus the dll and it's pdb file. And yet it works. When I call into the
dll, My.Settings.SomeSetting returns the value I've given it in the
designer.

Where is this application-scoped setting stored? Is it somehow baked into
the dll? I chose to use the My.Settings magic because I thought I'd end
up with a text file that could be edited in the field if a customer needed
to change that setting. But I can't find the text file...

TIA - Bob
I was surprised to find that the settings are compiled into the dll. Have a
look at your dll in notepad, and you will find the settings.
Oct 23 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: MrFez | last post by:
Through some investigation it appears that selecting "Every visit to the page" for the IE caching setting "Check for new version of stored pages" causes the window.opener property of child windows...
51
by: Kuku | last post by:
What is the difference between a reference and a pointer?
1
by: Bob Altman | last post by:
How do I bind a value from My.Settings to a property on a control on a Windows form? I've created a setting called My.Settings.Value1 of type String. Now I want to create a "Settings" dialog...
2
by: pax | last post by:
Hello there! Here is my problem, in the simplest scenario: - an Access 2000 format database (created with Access 2003) - a simple table that contains one single field defined as Number, Decimal,...
16
by: per9000 | last post by:
Hi, I recently started working a lot more in python than I have done in the past. And I discovered something that totally removed the pretty pink clouds of beautifulness that had surrounded my...
2
by: jyck91 | last post by:
i have done the magic square: #include <stdio.h> #include <stdlib.h> #include <string.h> #define SIZE 13 main() { FILE *fp; int i, j, n, row, column;
6
by: tinman77 | last post by:
Hello, I'm having a terrible time using the functions finfo_open and finfo_file. I'm using PHP 5 on IIS 5.1 and Windows XP. I have enabled php_mime_magic.dll and php_fileinfo.dll and also added...
9
by: Larry Hale | last post by:
I've heard tell of a Python binding for libmagic (file(1) *nixy command; see http://darwinsys.com/file/). Generally, has anybody built this and worked with it under Windows? The only thing I've...
3
by: Bob Altman | last post by:
Hi all, In my VB 2005 project I create a setting called UpgradeRequired with a default value of True, and I include the following code that runs when the project is launched: If...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.