944,121 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 2173
  • C++ RSS
Oct 30th, 2006
0

using borland lib classes

Expand Post »
hi Everybody

I want to know how in borland c++ to use the lib file

i have a .lib file present with the source code of that library

i want to use the lib file

I have just added the lib into the project through

Project->AddtoProject i did not get the class present in it

2nd thing i tried is to add all the files of the lib i got the class
but got some 10 errors

Pls give me some solution of some sample code that uses .lib file
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Sarguna is offline Offline
1 posts
since Oct 2006
Oct 30th, 2006
0

Re: using borland lib classes

Hello,

.lib files are dynamically linked, so the code contained inside these files is usually minimal, compared to the DLL files that have to acompany the .lib files.

Usually when you get a .lib file, there's a header file (*.h) to go with it. You then add this to the top of your file:
  1. #include <cool_new_library.h>
Replace < and > with quotes if the header file is in the local directory, of course.

As described in Borland's documentation, you may have to encapsulate the header inclusion with an extern c statement if you get "unresolved external symbol" errors:
  1. extern "C" {
  2. #include "cool_new_library.h"
  3. };

This may also be of use to you:
http://www.geocities.com/foetsch/borlibs/

Hope this helps
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: I need help encrypting!!!
Next Thread in C++ Forum Timeline: FindWindow Problems (on Windows 98/ME)





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


Follow us on Twitter


© 2011 DaniWeb® LLC