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 |
what is the difference between value types and reference types?
how to minimize,maximize and restore my form programmatically?
1 Answers Interlac, Six Sigma,
What is a service class?
can u give me real example of how web.config overrides the machine.config file?
When do I need to use gc.keepalive?
what is the need of vss to developer?
what is sessions and cookies take one example simple way to understand
what is polymorphism and advantage ?
Explain the components required to develop mobile applications with .net mobile? : Microsoft dot net mobile
Session State and can i store desirialized object in state server, if yes how and if not why.
Differences between VS 2005, 2008 and 2010 ?
Explain about the base class library provided by microsoft.net?