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

Can you explain scriptmanager control?

533


Does application frame need host?

495


Explain the race around condition? How can it be overcome? : Dot net architecture

522


Explain the five stages in a dlx pipeline? : Dot net architecture

488


How does .net mobile work? : Microsoft dot net mobile

509






What is a clickonce application?

511


What are the different pipelining hazards? : Dot net architecture

580


How resource files are used in .net?

551


Explain what does the term "green architecture" mean? : .NET Architecture

520


Explain cache? : Dot net architecture

595


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

514


How cache coherency is eliminated? : Dot net architecture

516


12. Types of polymorphisem[Run and Design Exp.]

1648


Explain domestic architecture artifacts? : Dot net architecture

516


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

534