what is the difference between Exportdll and Importdll ?
Answer / preeti
__declspec( dllexport ) - The class or function so tagged
will be exported from the DLL it is built in. If you're
building a DLL and you want an API, you'll need to use this
or a separate .DEF file that defines the exports (MSDN).
This is handy because it keeps the definition in one place,
but the .DEF file provides more options.
__declspec( dllimport ) - The class or function so tagged
will be imported from a DLL. This is not actually required -
you need an import library anyway to make the linker
happy. But when properly marked with dllimport, the
compiler and linker have enough information to optimize the
call; without it, you get normal static linking to a stub
function in the import library, which adds unnecessary
indirection.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is Opf3
what is just in time compilation?
what is stage management ? (ASP.NET)
Differences between VS 2005, 2008 and 2010 ?
What is the difference between .net mobile pages and ordinary .net web page? : Microsoft dot net mobile
How do we do authentications using atlas?
Write a query Where,Groupby,having clauses?
I can't be bothered with cas. Can I turn it off?
What does the term "green architecture" mean? : .NET Architecture
What's new in the .net 2.0 class library?
How do I write to the application configuration file at runtime?
When do I need to use gc.keepalive?