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 page_directive

1 Answers   BoA, ICT, PCS,


Explain the race around condition? : .NET Architecture How can it be overcome? : .NET Architecture

0 Answers  


How to improve the cache performance? : .NET Architecture

0 Answers  


what are the lifetime events of a from?

1 Answers   Six Sigma,


IS IT Possible to inherit the AJAX page from child class which(child) is inherit from page class.Because i should apply some security in child class

0 Answers   IBM,






What is the difference between abstract class and Interface? Give an example how will u write an abstract class using .NET Framework

4 Answers   T3 Softwares,


how to add list of items in a web application and win application?

0 Answers   Six Sigma,


How to call .NET Web service from Java Appl. & Why ?

1 Answers  


What should one do to make class serializable?

1 Answers  


which would be the best to use inproc,outproc or sql server

2 Answers   Ness Technologies,


What is a sealed Class? What is the differnce between sealed class and private class?

2 Answers   iGate,


How does .net remoting work?

0 Answers  


Categories