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. can anybody help me out

can anybody help me out

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
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.
  • S Offline
    S Offline
    SnaKeBeD
    wrote on last edited by
    #1

    i created an application in vc++ using ado.but when i created the exe the ado is not working. can anybody tell me the dll related to ado connection that i require to include in the application. thanks in advance

    ||SnAkeBed||

    B 1 Reply Last reply
    0
    • S SnaKeBeD

      i created an application in vc++ using ado.but when i created the exe the ado is not working. can anybody tell me the dll related to ado connection that i require to include in the application. thanks in advance

      ||SnAkeBed||

      B Offline
      B Offline
      BadKarma
      wrote on last edited by
      #2

      Hi, there are a few things you need to do to enable ado. First you need to import the msado15 library I have put this in stdafx.h

      #import "../Libraries/msado15.dll" no_namespace rename ("EOF", "adoEOF")
      

      Then you need to enable/initialize the ole objects

      int main() // or any other function that is called in the beginning
      {
        //
        //  Initialize the ole/com objects 
        //
        if(OleInitialize(NULL) != S_OK)
        {
          // Error
          return -1;
        }
      
        ...
        ...
      }
      

      codito ergo sum

      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