app.config

  • Thread starter Thread starter Rainer Weinhold
  • Start date Start date
R

Rainer Weinhold

Hi, I added an app.config via add/new Item to my C++ project. Now when I run
the Project I cant acces the content via :
String ^str=ConfigurationSettings::AppSettings->Get("connStr");

coz the compiler or who ever should it do does not create the
MyApp.exe.config file. When I create this file manully in the debug folder
beside the compiled .exe file it works. So what do I need to do that this
file is automatically created ? In the C# version it worked without this.

regards Rainer
 
Add a post compile step to move the config into the proper folder. If you
have an issue doing this, check the help file under postcompilation and you
should find a doc to help you. I have the string somewhere and will post if
I find it.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
 
found it, thanks Beamer

Cowboy (Gregory A. Beamer) said:
Add a post compile step to move the config into the proper folder. If you
have an issue doing this, check the help file under postcompilation and
you should find a doc to help you. I have the string somewhere and will
post if I find it.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
 
Back
Top