Application Configuration File Template for vb 2005 express

B

Barry Erick

I guess the express edition does not have this configuration file. I had
been using a ini file with getPrivateProfileString, but have not found an
example that works in VB 2005 ee , so I looked for the xml way and the
example at microsoft is for the full and not express edition. It says to
right-click on the project and select Add New then select Application
Configuration File Template, but non is there.
What's the work-around in VB2005ex for this? The old Dos way to read a text
file and parse it's contents?
 
M

Mr. Arnold

Barry Erick said:
I guess the express edition does not have this configuration file. I had
been using a ini file with getPrivateProfileString, but have not found an
example that works in VB 2005 ee , so I looked for the xml way and the
example at microsoft is for the full and not express edition. It says to
right-click on the project and select Add New then select Application
Configuration File Template, but non is there.
What's the work-around in VB2005ex for this? The old Dos way to read a
text file and parse it's contents?

What are you talking about? The app.config setup in there on VB 2005 Express
all day long. You go to project Properties when you right-click the project,
and then you select the Settings tab. I am not going to explain how to use
it look it up use Google.

You might also want to try to find examples on how to use
System.Configuration namespace that contains the ConfigurationManager that
allows you to read, update, delete, and write to/from the appname.exe.config
file.

The CM will be working with appname.exe.config and not app.config, because
the app.config for the project is only a template for the project that you
have set initially or you need to add a new element to the existing
app.config, that will be picked up by appname.exe.config.
 
B

Billy

I've right clicked on two mahchines and do not have that template. Other
templates show up. And your answer is very rude, Mr. Arnold.
 
M

Mr. Arnold

Billy said:
I've right clicked on two mahchines and do not have that template. Other
templates show up.
And your answer is very rude, Mr. Arnold.

Really? What do you want me to do cry about it?

And the template is not there in the same place or manner like it is for
..Net 2003 VB or C# 2005, where you add the app.config by adding a New Item
to the project. I am not going to hold your hand, but it's there, use Google
look it up. It doesn't take a rocket scientist to figure it out.
 

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