Click here to Skip to main content
15,894,646 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: In Win32 OS, is single-precsion float faster than double? Pin
Albert Holguin15-Apr-12 16:05
professionalAlbert Holguin15-Apr-12 16:05 
AnswerRe: In Win32 OS, is single-precsion float faster than double? Pin
Sean old school game guy7-May-12 10:55
Sean old school game guy7-May-12 10:55 
QuestionFmod include errors Pin
Member 79972644-Apr-12 13:55
Member 79972644-Apr-12 13:55 
AnswerRe: Fmod include errors Pin
Richard Andrew x644-Apr-12 17:40
professionalRichard Andrew x644-Apr-12 17:40 
QuestionVC++: cant manipulate forms Pin
Member 875813424-Mar-12 22:05
Member 875813424-Mar-12 22:05 
AnswerRe: VC++: cant manipulate forms Pin
f907334125-Mar-12 7:17
f907334125-Mar-12 7:17 
AnswerRe: VC++: cant manipulate forms Pin
Albert Holguin25-Mar-12 15:12
professionalAlbert Holguin25-Mar-12 15:12 
QuestionReading connection string from App.config using LINQ Pin
Wheels01219-Mar-12 4:37
Wheels01219-Mar-12 4:37 
Good morning. I am having a challenge deriving a connection string from my App.config. It is laid out for a special way of connection to SQL Server and Teradata, and using AppSettings is not possible. I would like to query for the value using LINQ or Lamda, but I don't have a great deal of experience in either.

<?xml version="1.0"?>
<configuration>
  <configSections>
    <sectionGroup name="UPCAppSettings">      
      <section name="DEVELOPMENT" type="MyCompanyProvident.iServices.Common.ConfigurationHandler.UPCAppSettingsHandler, MyCompanyProvident.iServices.Common.ConfigurationHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" allowLocation="true" allowDefinition="Everywhere"/>      
      <section name="PRODUCTION" type="MyCompanyProvident.iServices.Common.ConfigurationHandler.UPCAppSettingsHandler, MyCompanyProvident.iServices.Common.ConfigurationHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" allowLocation="true" allowDefinition="Everywhere"/>     
    </sectionGroup>
    <sectionGroup name="MyCompany.Enterprise.Configuration">      
      <sectionGroup name="DEVELOPMENT">
        <section name="MyCompany.appSettings" type="System.Configuration.NameValueSectionHandler" />
        <section name="MyCompany.Enterprise.Data.Sources" type="MyCompany.Enterprise.Data.Sources, MyCompany.Enterprise, version=3.5.0.0, culture=neutral, publicKeyToken=01021d914afa5758" />
        <section name="MyCompany.Enterprise.Security.ServiceAuthorization" type="MyCompany.Enterprise.Security.Authorization.ServiceAuthorizationConfigurationSection, MyCompany.Enterprise, version=3.5.0.0, culture=neutral, publicKeyToken=01021d914afa5758" />
        <!-- Insert your custom sections here -->
      </sectionGroup>      
      <sectionGroup name="PRODUCTION">
        <section name="MyCompany.appSettings" type="System.Configuration.NameValueSectionHandler" />
        <section name="MyCompany.Enterprise.Data.Sources" type="MyCompany.Enterprise.Data.Sources, MyCompany.Enterprise, version=3.5.0.0, culture=neutral, publicKeyToken=01021d914afa5758" />
        <section name="MyCompany.Enterprise.Security.ServiceAuthorization" type="MyCompany.Enterprise.Security.Authorization.ServiceAuthorizationConfigurationSection, MyCompany.Enterprise, version=3.5.0.0, culture=neutral, publicKeyToken=01021d914afa5758" />
        <!-- Insert your custom sections here -->
      </sectionGroup>      
    </sectionGroup>
  </configSections>  
  <MyCompany.Enterprise.Configuration>
    <LOCALDEVELOPMENT>    
    <DEVELOPMENT>
      <MyCompany.Enterprise.Data.Sources> 
        <DataSource key="TDConnKey" provider="Teradata" connection="Data Source=TDDEV;Database=MyProject_ddbo;Integrated Security=False;">
          <CredentialStore appName="MyCompany.MyProject.DataAccess" credentialName="MyProject" />
        </DataSource>       
        <DataSource key="SQLConnKey" provider="SqlServer" connection="Data Source=iServDev;Initial Catalog=FrameworkDB;Integrated Security=True" />
      </MyCompany.Enterprise.Data.Sources>
    </DEVELOPMENT>    
    <PRODUCTION>
      <MyCompany.Enterprise.Data.Sources> 
        <DataSource key="TDConnKey" provider="Teradata" connection="Data Source=TDDEV;Database=MyProject_ddbo;Integrated Security=False;">
          <CredentialStore appName="MyCompany.MyProject.DataAccess" credentialName="MyProject" />
        </DataSource>              
        <DataSource key="SQLConnKey" provider="SqlServer" connection="Data Source=iServProd;Initial Catalog=FrameworkDB;Integrated Security=True" />
      </MyCompany.Enterprise.Data.Sources>
    </PRODUCTION>    
  </MyCompany.Enterprise.Configuration>
  <appSettings>    
  </appSettings>  
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="amqmdnet" publicKeyToken="DD3CB1C9AAE9EC97" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-1.0.0.3" newVersion="1.0.0.3" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
  <system.web>
    <membership defaultProvider="ClientAuthenticationMembershipProvider">
      <providers>
        <add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" />
      </providers>
    </membership>
    <roleManager defaultProvider="ClientRoleProvider" enabled="true">
      <providers>
        <add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
      </providers>
    </roleManager>
  </system.web>
</configuration>


Thank you, WHEELS
AnswerRe: Reading connection string from App.config using LINQ Pin
Eddy Vluggen5-Apr-12 1:31
professionalEddy Vluggen5-Apr-12 1:31 
GeneralRe: Reading connection string from App.config using LINQ Pin
Wheels0125-Apr-12 2:08
Wheels0125-Apr-12 2:08 
Suggestionhelp a beginner please Pin
invincible bar17-Mar-12 23:47
invincible bar17-Mar-12 23:47 
GeneralRe: help a beginner please Pin
Richard MacCutchan18-Mar-12 2:20
mveRichard MacCutchan18-Mar-12 2:20 
GeneralRe: help a beginner please Pin
Albert Holguin21-Mar-12 7:50
professionalAlbert Holguin21-Mar-12 7:50 
QuestionPlease explain below code.... Pin
Member 154408715-Mar-12 5:44
Member 154408715-Mar-12 5:44 
AnswerRe: Please explain below code.... Pin
Richard MacCutchan15-Mar-12 6:03
mveRichard MacCutchan15-Mar-12 6:03 
GeneralRe: Please explain below code.... Pin
Member 154408715-Mar-12 6:22
Member 154408715-Mar-12 6:22 
GeneralRe: Please explain below code.... Pin
Richard MacCutchan15-Mar-12 6:54
mveRichard MacCutchan15-Mar-12 6:54 
Questionwhy construction called when i overload the operator new in c++ by calling malloc Pin
AARON_ZXF2-Mar-12 23:05
AARON_ZXF2-Mar-12 23:05 
AnswerRe: why construction called when i overload the operator new in c++ by calling malloc Pin
Richard MacCutchan2-Mar-12 23:16
mveRichard MacCutchan2-Mar-12 23:16 
GeneralRe: why construction called when i overload the operator new in c++ by calling malloc Pin
Albert Holguin21-Mar-12 8:50
professionalAlbert Holguin21-Mar-12 8:50 
GeneralRe: why construction called when i overload the operator new in c++ by calling malloc Pin
Richard MacCutchan27-Mar-12 22:03
mveRichard MacCutchan27-Mar-12 22:03 
AnswerRe: why construction called when i overload the operator new in c++ by calling malloc Pin
Philippe Mori3-Mar-12 5:09
Philippe Mori3-Mar-12 5:09 
AnswerRe: why construction called when i overload the operator new in c++ by calling malloc Pin
Albert Holguin21-Mar-12 8:45
professionalAlbert Holguin21-Mar-12 8:45 
AnswerRe: why construction called when i overload the operator new in c++ by calling malloc Pin
Philippe Mori6-Apr-12 14:43
Philippe Mori6-Apr-12 14:43 
QuestionIs it safe to pass CComVariant declared locally ot other function Pin
ptr_Electron21-Feb-12 1:57
ptr_Electron21-Feb-12 1:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.