Adding library files to a VC++ program

I bought a usb interface board from Devasys and it came with a header file and a library file.  How do I get my visual c program to recognize the library file.
drhodes1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

igor_skCommented:
You should do the following:
1. Open Project->Settings menu item.
2. Go to the Link tab
3. Add the name of your library to 'Object/library modules' field.

Igor.
0
drhodes1Author Commented:
Should I also add the library as a file in the project, or does it just search the entire hard drive at run time?  Should I add the .dll in the project somehow?  
0
igor_skCommented:
You are asking correct question.
You can create directory Libs under your project directory and put your library (.lib file) there.

>> 3. Add the name of your library to 'Object/library modules' field
Then you will specify the library as Libs\your_lib_name.lib

You don't need to add .dll file to the project. You should put it some directory in your path. You can put it to the same directory where your .exe file is located.

Igor.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

drhodes1Author Commented:
Igor I really appreciate all of your comments.  They have been really benficial to my project.  However I'm still having a problem.  When I try to build my project I get an error that says it cannot open my library file.  Does this mean that either
1.  Something is wrong with the library file
2.  Or that it still can't find it.( I wasn't sure what you meant when you said "Then you will specify the library as Libs\your_lib_name.lib")
0
igor_skCommented:
Let's try something else.
Go to 'Project Settings'. Open Link tab.
Choose 'Input' in Category combo box.

Add the name of your library to 'Object/library modules' field and Libs to 'Additional library path' field.

Make sure that your library file is in Libs directory.

Hope it will help.
Igor.
0
drhodes1Author Commented:
I tried what you said and it still didn't work.  It was able to open the library but I was still getting errors on the functions that I called from the library.  Finally I just rewrote the project linking the .dll explicitly and it is working.  I have no idea what the problem was, but thanks for your help anyways.
0
igor_skCommented:
No problem. Anytime. I glad that your problem is solved.
Igor.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.