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. Linking to ODBC.dll

Linking to ODBC.dll

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++delphicomalgorithms
6 Posts 3 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
    Programm3r
    wrote on last edited by
    #1

    Hi all, First of all I'm sorry about asking this type of question here but, after searching for 2 hours without no success and asking people on Tek Tips and DevX, I'm frustrated as hell. How do you link to a dll (odbc32.dll) in Borland C++, I know how to do it in VS2005, but borland is another story. Can anyone please help me?? Many Thanks Regards,


    The only programmers that are better than C programmers are those who code in 1's and 0's..... :) :)Programm3r My Blog: ^_^

    O D 2 Replies Last reply
    0
    • P Programm3r

      Hi all, First of all I'm sorry about asking this type of question here but, after searching for 2 hours without no success and asking people on Tek Tips and DevX, I'm frustrated as hell. How do you link to a dll (odbc32.dll) in Borland C++, I know how to do it in VS2005, but borland is another story. Can anyone please help me?? Many Thanks Regards,


      The only programmers that are better than C programmers are those who code in 1's and 0's..... :) :)Programm3r My Blog: ^_^

      O Offline
      O Offline
      Optimus Chaos
      wrote on last edited by
      #2

      I don't know right now if there is any option dialog for this (currently working with VC++ Builder 6.0) but you can also include the #pragma preprocessor directive, assuming you have set the additional library (something like: "\lib\psdk") path in a way, that odbc32.lib can be found: #pragma comment ( lib, "odbc32.lib" )

      P 1 Reply Last reply
      0
      • O Optimus Chaos

        I don't know right now if there is any option dialog for this (currently working with VC++ Builder 6.0) but you can also include the #pragma preprocessor directive, assuming you have set the additional library (something like: "\lib\psdk") path in a way, that odbc32.lib can be found: #pragma comment ( lib, "odbc32.lib" )

        P Offline
        P Offline
        Programm3r
        wrote on last edited by
        #3

        Thank you for the help. Is this the way to do it? #pragma comment ( lib, "odbc32.lib" ) or is there other ways? Thanks again :). Regards,


        The only programmers that are better than C programmers are those who code in 1's and 0's..... :) :)Programm3r My Blog: ^_^

        O 1 Reply Last reply
        0
        • P Programm3r

          Thank you for the help. Is this the way to do it? #pragma comment ( lib, "odbc32.lib" ) or is there other ways? Thanks again :). Regards,


          The only programmers that are better than C programmers are those who code in 1's and 0's..... :) :)Programm3r My Blog: ^_^

          O Offline
          O Offline
          Optimus Chaos
          wrote on last edited by
          #4

          I just tried a project which links with other libs that are shipped with the source code: It seems that you can simply add the *.lib file to your project. However I don't know if this will work with Platform SDK libraries. Yes, this is a way that worked in my project when linking against shell32.lib. I just placed it in the source code where I needed the API call.

          P 1 Reply Last reply
          0
          • O Optimus Chaos

            I just tried a project which links with other libs that are shipped with the source code: It seems that you can simply add the *.lib file to your project. However I don't know if this will work with Platform SDK libraries. Yes, this is a way that worked in my project when linking against shell32.lib. I just placed it in the source code where I needed the API call.

            P Offline
            P Offline
            Programm3r
            wrote on last edited by
            #5

            Thanks you for the help. Regards,


            The only programmers that are better than C programmers are those who code in 1's and 0's..... :) :)Programm3r My Blog: ^_^

            1 Reply Last reply
            0
            • P Programm3r

              Hi all, First of all I'm sorry about asking this type of question here but, after searching for 2 hours without no success and asking people on Tek Tips and DevX, I'm frustrated as hell. How do you link to a dll (odbc32.dll) in Borland C++, I know how to do it in VS2005, but borland is another story. Can anyone please help me?? Many Thanks Regards,


              The only programmers that are better than C programmers are those who code in 1's and 0's..... :) :)Programm3r My Blog: ^_^

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Programm3r wrote:

              How do you link to a dll (odbc32.dll) in Borland C++...

              What version? Are you compiling/linking from within an IDE, or a command prompt?


              "A good athlete is the result of a good and worthy opponent." - David Crow

              "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

              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