ado connection fail on Vista

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • paolol

    ado connection fail on Vista

    Hi,

    I just finish to install VS2005 on vista and my proget is not working on

    Connessione = new ADODB.Connectio nClass();

    I get an error, so I went to the MS site and downloaded the MDAC_TYP version
    2.8 , that is suppose to solve this error.

    Bu I still get the error and I have no more clues on what to do to fix it,

    Please help.

    Paolol

  • RobinS

    #2
    Re: ado connection fail on Vista

    If you're doing .Net, why are you using ADODB instead of ADO.Net?

    Robin S.
    --------------------------
    "paolol" <paolol@salsan. net.nospamwrote in message
    news:B0C7CA90-5D72-433F-A996-AAE7929EB31A@mi crosoft.com...
    Hi,
    >
    I just finish to install VS2005 on vista and my proget is not working on
    >
    Connessione = new ADODB.Connectio nClass();
    >
    I get an error, so I went to the MS site and downloaded the MDAC_TYP
    version 2.8 , that is suppose to solve this error.
    >
    Bu I still get the error and I have no more clues on what to do to fix
    it,
    >
    Please help.
    >
    Paolol
    >

    Comment

    • =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=

      #3
      RE: ado connection fail on Vista

      If you are using Visual Studio 2005 you really ought to be using ADO.NET, not
      classic ADO. You probably want SqlOleDb or SqlNClI provider.
      Peter

      --
      Site: http://www.eggheadcafe.com
      UnBlog: http://petesbloggerama.blogspot.com
      Short urls & more: http://ittyurl.net




      "paolol" wrote:
      Hi,
      >
      I just finish to install VS2005 on vista and my proget is not working on
      >
      Connessione = new ADODB.Connectio nClass();
      >
      I get an error, so I went to the MS site and downloaded the MDAC_TYP version
      2.8 , that is suppose to solve this error.
      >
      Bu I still get the error and I have no more clues on what to do to fix it,
      >
      Please help.
      >
      Paolol
      >

      Comment

      • paolol

        #4
        Re: ado connection fail on Vista

        Hi,thanks to both of you,
        But this is an old project I try to move on.
        I need to show the connection menu to enable the user to set the connection
        to a MSSQL db and to an Access 2000 db.
        Any suggestion on how to change this code ?
        Thanks ,
        Paolol

        this is the code
        ---------------------
        Connessione = new ADODB.Connectio nClass();
        Connessione.Con nectionString = textBox2.Text.T rim();
        object oConnessione=Co nnessione;
        if ((bool)dataLink .PromptEdit(ref oConnessione))
        { textBox2.Text = Connessione.Con nectionString; };
        ---------------------

        "Peter Bromberg [C# MVP]" <pbromberg@yaho o.yabbadabbadoo .comha scritto nel
        messaggio news:4DA5D358-4CA9-400D-865F-7C30001B10AD@mi crosoft.com...
        If you are using Visual Studio 2005 you really ought to be using ADO.NET,
        not
        classic ADO. You probably want SqlOleDb or SqlNClI provider.
        Peter
        >
        --
        Site: http://www.eggheadcafe.com
        UnBlog: http://petesbloggerama.blogspot.com
        Short urls & more: http://ittyurl.net
        >
        >
        >
        >
        "paolol" wrote:
        >
        >Hi,
        >>
        >I just finish to install VS2005 on vista and my proget is not working on
        >>
        >Connessione = new ADODB.Connectio nClass();
        >>
        >I get an error, so I went to the MS site and downloaded the MDAC_TYP
        >version
        >2.8 , that is suppose to solve this error.
        >>
        >Bu I still get the error and I have no more clues on what to do to fix
        >it,
        >>
        >Please help.
        >>
        >Paolol
        >>

        Comment

        Working...