943,935 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 3230
  • C++ RSS
Feb 13th, 2007
0

adding library

Expand Post »
if i have dll library and header files how can i used it in borland c++>
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
amirwan is offline Offline
9 posts
since Jan 2007
Feb 13th, 2007
0

Re: adding library

Usually, you need a static library (.lib) for any DLLs you use in your program. Anyways, I don't know Borland, but here are the general steps for setting up a compiler to use an external library:
  1. Get a hold of the necessary files to use the library.
  2. Configure the compiler's library and header search paths to the location where you put the librariy's files.
  3. In the project you want to use the library in, look for "Libraries to link with" or something similar. Add the libraries here.
  4. In each source file that you need to use the library, include the necessary header files with
    C++ Syntax (Toggle Plain Text)
    1. #include <headerfile.h>
    Replacing headerfile.h of course, with the name of your header file. Also note that you should use quotes if you have the header file in the same directory as the project.
If you're having problems with these instructions, I probably won't be of much help, because as I already mentioned, I have never used Borland C++.
Team Colleague
Reputation Points: 2240
Solved Threads: 338
Vampirical Lurker
John A is offline Offline
5,055 posts
since Apr 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: ctor/dtor problem
Next Thread in C++ Forum Timeline: problem comparing input values





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC