Use dll file

Hi,

I want to develop an application for send some APDU commands. In this case we are using a smart card reader. So my problem is I want to use a particular dll file. But I don't know how to link or add it into my program. Please help me to do this.

Thank you.
If you have the matching .lib, you can link to it directly.

You can load it and pick out functions and call them at runtime. See: LoadLibrary(), GetProcAddress(), FreeLibrary().
Hi,

The thing is I only have this .dll library. Can I convert it into .lib file?

Thank you.
you need to statically link dll library
No, you can't do that.

Load it dynamically as I described above.
dushantha12 wrote:
Hi,

The thing is I only have this .dll library. Can I convert it into .lib file?

Thank you.



Yes, you can create a import library from an existing .dll file.
http://support.microsoft.com/kb/131313


For other compilers there is specific tools too.
It all depends on what IDE( what compiler you are using for making your programs) such as Visual Studios c++, or dev c++.
Topic archived. No new replies allowed.