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
What is the problem with .net generics?
Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form.
Explain COM with example?
Explain the five stages in a dlx pipeline? : Dot net architecture
Explain the types of memory management? : Dot net architecture
What is the use of web.config?
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
Explain how does .net mobile work? : Microsoft dot net mobile
Explain How to improve the cache performance? : Dot net architecture
How cache coherency is eliminated? : Dot net architecture
Explain pipelining? : Dot net architecture
What is textview control of .net mobile? : Microsoft dot net mobile
What's the difference between an application and a program?
Explain the purpose of cache? How is it used? : .NET Architecture
Explain Intermediate Language?