librarie using, who?

Hi all,
im new here and my english isn't the best, but for posting a Problem, i hope it last out.

I have a big C++ librarie wich i want to use. I linked it in the settings and imported it to my project like this
#pragma comment(lib, "classes.lib")

Now the Problem: How can i use Function of this library? An Example:

In this librari should be a sourceFile CNTV2BoardScan and now i tried to make this: CNTV2BoardScan _ntv2BoardScan; but the compiler hadn't so much fun on that.

Please show me why i cant use this librari.
And thank to you that you didn't run over on trying to deciphering my writings.

Daniel
Your library should have also come with one or more #include files that prototype everything for you.

That way you can say:
1
2
3
4
5
6
7
8
9
10
#pragma comment(lib, "classes.lib")

#include <classes.hpp>  // or classes.h or whatever it is called

...

int main()
  {
  CNTV2BoardScan _ntv2BoardScan;
  ...

Hope this helps.
It would help, if I have these headerfiles from the Library, but all I have is the Library and many .obj files but no headers.

But if i understood you correctly, i must have these headerfiles to realize it?

Anyway, thanks for helping
Daniel
Last edited on
Topic archived. No new replies allowed.