question on dev-c++ dllimport

  • Thread starter Surendra Singhi
  • Start date
S

Surendra Singhi

Hello,
When I create a dll project using Dev-C++ it creates a function like the one below:

DLLIMPORT void HelloWorld ()
{
MessageBox (0, "Hello World from DLL!\n", "Hi", MB_ICONINFORMATION);
}

From my understanding off dllimport, it should be used for externally created
functions. Is there any reason why Dev-C++ creates such a function? What is
its purpose, and how does defining a function using dllimport helps?

Thanks.
--
Surendra Singhi
http://www.public.asu.edu/~sksinghi/index.html

"All animals are equal, but some animals are more equal than others."
- Orwell, Animal Farm, 1945
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top