I want to use a DLL provided by a third party vendor. According to the Mingw
documentation (http://www.mingw.org/docs.shtml) a function is added to the
import table of a program by adding __declspec(dllimport) before the
prototype of the called function. I added this in the header file of the
third party vendor, compiled my program with the header file as include and
linked the resulting object file together with the lib file provided by this
vendor. The compile and link step complete without error.
When I invoke the exe I get the message that the entry point "|" in the
dynamic link library CCLAPI32.dll could not be found. In the quickview I can
see that in the import table of my program the name of the called function
in this dll is empty. Nevertheless, an ordinal number is present.
What's wrong? Is __declspec(dllimport) outdated? I am using g++ v2.95.2. Can
I use __declspec(dllimport) only with such dll's what were compiled with
__declspec(dllexport)? What parameter I have to determine in third party
dll's so that I can use them with Mingw?
Thanks to Dimitar Daskalov and Danny Smith for helping me with linking the
lib file. By the way, it is easy to go to the mailing archives but the
search looks everywhere but not in the archive. With "All OSDN sites" I got
no one entry in the mailing archive. Or did Danny mean yesterday that
someone has to step through all the pages of the archive? Excuse me if I ask
a common question but neither in the FAQ nor in the docs I did find an
Thanks for the help,
--- Uwe Galle <galle@...> wrote: > I want to use a DLL provided by
a third party vendor.
By the way, it is easy to go to the mailing archives but the
> search looks everywhere but not in the archive. With "All OSDN sites" I
> no one entry in the mailing archive. Or did Danny mean yesterday that
> someone has to step through all the pages of the archive? Excuse me if I
> a common question but neither in the FAQ nor in the docs I did find an
Your right, the search engine for the mailing list archives is, uh, where
Google is probably faster anyway:
> Thanks for the help,
> MinGW-users mailing list
> You may change your MinGW Account Options at:
> https://lists.sourceforge.net/lists/listinfo/mingw-usershttp://shopping.yahoo.com.au - Yahoo! Shopping
- Get organised for Christmas early this year!