User forums > Help

Why won't this DLL work? :(

(1/1)

chrishowarth:
Hi ~

I downloaded a DLL recently for use in my project.  I know it works, because I've used it before (but not in C++).  It was written in C++.  I've added the .lib to my project (I went to Project -> Build Options -> Linker -> Add?), and I was told that I didn't have to do any more.  Well, I tried to use a function (i.e. without declaring because the DLL declares it) and I got the error "'hobbel_com_open' undeclared (first use this function)".   Why is this?  What am I doing wrong?

k2dave:
You must include the header file declaring the function.
The .lib file isn't seen by the compiler - so your function isn't declared when you compile - just as it reported.

chrishowarth:
Oh I must have been mis-informed.  I do not have a header file... does this mean that I must load dynamically?

raph:
If you know how the function is declared, you may also declare it yourself.

Navigation

[0] Message Index

Go to full version