I build the following code,and generate a library,who can tell me how
to import the function fn() in my applications,thank you very much!
There are several reasons that you will not get a useful answer here.
1. Your code is C++, a different language from C, which is the topic of
< You might ask C++ questions in (surprise!)
< However,
2. Your question is not about C++ either, but about a particular
platform's idiosyncratic dynamic libraries. Since neither C not C++
have any specifications for how that platform should implement libraries
and, indeed, the definition of neither language has even a whisper about
DLLs, you need to take your question to a newsgroup for your particular
platform. No apparently constructive answer given here should be
trusted. You need experts for your platform. I would guess you are
using Microsoft's virus-with-a-mouse and, luckily Microsoft has a number
of active newsgroups with people waiting to answer your question.
3. When you do post a C++ question to <or a Windows
question to one of the MS newsgroups, be sure to follow a week or so
worth of postings to that newsgroup first. This can be done in a short
period by using <
http://groups.google.com> and will save you
misunderstandings later. Also, before posting C++ questions, learn the