468,512 Members | 1,535 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

import vs include

So the difference between import and include is that:

import = used for binary library like DLL or .Lib files. it's very
similar to include that it load all the header (function definition)
from the DLL file so that we can use the header file just like include

include = just include header (source file)

==========================

#import "c:\Program Files\Common Files\System\ADO\msado15.dll" \
rename("EOF", "EndOfFile")
Mar 27 '08 #1
2 5451
wo********@yahoo.com wrote:
So the difference between import and include is that:
There is no "import" in Standard C++ (since you have posted this in
'comp.lang.c++', I feel obligated to let you know).
[..]
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Mar 27 '08 #2
On Mar 28, 5:17 am, worlman...@yahoo.com wrote:
So the difference between import and include is that:

import = used for binary library like DLL or .Lib files. it's very
similar to include that it load all the header (function definition)
from the DLL file so that we can use the header file just like include

include = just include header (source file)

==========================

#import "c:\Program Files\Common Files\System\ADO\msado15.dll" \
rename("EOF", "EndOfFile")
#import is used for .NET Framework.

Look up the MSDN or goodle. Don't ask to these C++ maniacs they are
gonna get pissed off =P

Cheers,
Alexander D. B. Kim
Mar 28 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Stephen Edgecombe | last post: by
1 post views Thread by WStoreyII | last post: by
2 posts views Thread by s.hong | last post: by
4 posts views Thread by Bruce W. Roeser | last post: by
3 posts views Thread by Neter Smith | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.