Urgent: Parameters of the Open-method
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Urgent: Parameters of the Open-method

  1. #1
    Join Date
    Mar 2001
    Location
    Germany
    Posts
    16

    Urgent: Parameters of the Open-method

    I work with Visual C++ 6.0 and an Oracle8 database. And want access to this database via ADO.
    Now I have this code in C++:

    _ConnectionPtr pConn;
    pConn.CreateInstance(__uuidof(_Connection));

    pConn->Open( ???)

    But I don't know, how I must write the parameters of the Open-method.

    Please help me.
    Thanks Sascha


  2. #2
    Join Date
    Feb 2001
    Location
    Slovakia
    Posts
    18

    Re: Urgent: Parameters of the Open-method

    We are using something like this:

    CString sCn;
    sCn.Format("Provider=%s;Data Source=%s;User ID=%s;Password=%s",
    "OraOLEDB.Oracle", "Oracle8ServiceName", "username", "password");

    pConnect->Open((LPCTSTR)sCn, "", "", adOpenUnspecified /* -1 */);

    That is.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center