what is the difference between Exportdll and Importdll ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

define cache memory? : Dot net architecture

626


Explain element .net mobile with example? : Microsoft dot net mobile

608


What is cache coherency? : Dot net architecture

564


What is .net mobile forms? : Microsoft dot net mobile

607


Explain .net mobile automatic paging? : Microsoft dot net mobile

573






Explain the five stages in a dlx pipeline? : .NET Architecture

599


Explain cache? : Dot net architecture

677


i wish to write mcts(microsoft certified technology specialist) exam. can anyone give the model question or format and preparation method?

2398


What is difference between Desktop, Client Server & Web based applications?

626


Explain cache memory? : Dot net architecture

629


What is Video Streaming in .net??

644


How to develop mobile applications using microsoft mobile internet toolkit (mmit) or .net mobile? : Microsoft dot net mobile

602


What does the term "green architecture" mean? : Dot net architecture

553


What are bindings?

639


What are the new features of .net 2.0?

614