Home All Groups Group Topic Archive Search About
Author
15 Sep 2006 1:05 PM
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

Author
15 Sep 2006 3:18 PM
Cowboy (Gregory A. Beamer)
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!
*************************************************
Show quote
"Rainer Weinhold" <mom.***@gmx.net> wrote in message
news:OAUhVeM2GHA.4976@TK2MSFTNGP02.phx.gbl...
> 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
>
>
Author
17 Sep 2006 10:55 AM
Rainer Weinhold
found it, thanks Beamer

Show quote
"Cowboy (Gregory A. Beamer)" <NoSpamMgbworld@comcast.netNoSpamM> schrieb im
Newsbeitrag news:eR3LdoN2GHA.1040@TK2MSFTNGP06.phx.gbl...
> 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!
> *************************************************
> "Rainer Weinhold" <mom.***@gmx.net> wrote in message
> news:OAUhVeM2GHA.4976@TK2MSFTNGP02.phx.gbl...
>> 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
>>
>>
>
>

AddThis Social Bookmark Button