Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to connect toan ORACLE DB Using VC++6?

How to connect toan ORACLE DB Using VC++6?

Scheduled Pinned Locked Moved C / C++ / MFC
c++databaseoracletoolstutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Patriot81
    wrote on last edited by
    #1

    Hello, I have Oracle 9i and Oracle Developer6i.I want to build an Oracle DB base using Oracle tools how to do it?. Then I want to developt a db application using VC++6 to access oracle db . Thank u

    L 1 Reply Last reply
    0
    • P Patriot81

      Hello, I have Oracle 9i and Oracle Developer6i.I want to build an Oracle DB base using Oracle tools how to do it?. Then I want to developt a db application using VC++6 to access oracle db . Thank u

      L Offline
      L Offline
      liur17
      wrote on last edited by
      #2

      to access oracle db using vc++, you can use ADO: #define INITGUID #import "c:\program files\common files\system\ado\msado15.dll" rename_namespace("ADO_RWXLS") rename("EOF","EndOfFile") using namespace ADO_RWXLS; #include "icrsint.h" _ConnectionPtr pConn; ::CoInitialize(NULL); pConn.CreateInstance(__uuidof(Connection)); CString strConn; strConn.Format(_T("Provider=MSDAORA.1;Data Source=%s;Database=%s;User ID=yourname;Password=yourpasswd"),strServerName,strServerName); pConn->Open(str_Connection, "", "", adOpenUnspecified); liur -- modified at 2:22 Sunday 14th January, 2007

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups