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
Explain about cookie less session state? : .NET Architecture
Explain how cache is used? : Dot net architecture
Explain How to improve the cache performance? : Dot net architecture
Whate are resource files? How are they used in .net?
Session State and can i store desirialized object in state server, if yes how and if not why.
What are the types of memory management? : Dot net architecture
Can you explain scriptmanager control?
how to change the title of my window?
how to delete the record using data reader
Why am I getting an invalidoperationexception when I serialize an arraylist?
What is the mesi? : .NET Architecture
How cache is used? : Dot net architecture
Explain the Lapsed Listener problem in .net
Explain difference between machine config vs. Web config? : .NET Architecture
What is .net mobile utility controls. : Microsoft dot net mobile