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

Can I create my own permission set?

0 Answers  


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

0 Answers  


How to improve the cache performance? : .NET Architecture

0 Answers  


4. Wcf- what Asych and Sych call and how that works

0 Answers   PCS,


Hi i need fast track course maximum to complete within a month....courses are Asp.net,c3,vb.net n sql server........at hyderbad location ..best institute n cost

1 Answers   Chevron,






question related to table havi colspan and row span

0 Answers   PCS,


When should you use Abstract Class vs Interface while programming? Give 1 Example

3 Answers   CSS Corp, Hexaware, T3 Softwares,


Explain how cache is used? : Dot net architecture

0 Answers  


Difference between abstract class and interface

100 Answers   Accenture, Altruist, Baba Group, CitiGroup, Fiserv, HCL, IBM, iGate, Infosys, Jean Martin, Karthik Industries, Microsoft, OnDLine, TCS,


Explain about appdomains?

0 Answers  


What is different about namespace declaration when comparing that to package declaration in java?

0 Answers  


Can you explain control extenders?

0 Answers  


Categories