what is the difference between Exportdll and Importdll ?



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

Post New Answer

More Dot Net AllOther Interview Questions

what is the difference between value types and reference types?

4 Answers   Six Sigma,


how to minimize,maximize and restore my form programmatically?

1 Answers   Interlac, Six Sigma,


What is a service class?

0 Answers  


can u give me real example of how web.config overrides the machine.config file?

0 Answers  


When do I need to use gc.keepalive?

0 Answers  






what is the need of vss to developer?

1 Answers  


what is sessions and cookies take one example simple way to understand

0 Answers  


what is polymorphism and advantage ?

0 Answers   TCS,


Explain the components required to develop mobile applications with .net mobile? : Microsoft dot net mobile

0 Answers  


Session State and can i store desirialized object in state server, if yes how and if not why.

0 Answers   PCS,


Differences between VS 2005, 2008 and 2010 ?

0 Answers   HCL,


Explain about the base class library provided by microsoft.net?

0 Answers  


Categories