extern functions

J

Jigar Mehta

I am a vc++ prog. and having very basic knowledge.. I want to know is
there any diff. between extern "C" ... and __declspec (dllexport) ...
If yes, please explain whats the difference between them ??
 
V

Victor Bazarov

Jigar said:
I am a vc++ prog. and having very basic knowledge.. I want to know is
there any diff. between extern "C" ... and __declspec (dllexport) ...
If yes, please explain whats the difference between them ??

The difference is simple: the former is a valid C++ construct, the latter
is a compiler extension, off-topic in this newsgroup. Now, that's the
difference relevant in comp.lang.c++. If you want to know the *real*
meaning of __declspec(dllexport), you need to ask in a newsgroup for your
compiler,
V
 

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
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top