c# - import and export of dll -
can pls. explain mean export or import dll? when should preferred? , if alternative exist? is possible in c#? thanks. i think in context you're asking dll importing means running code of native dlls within managed .net enviroment. native = code executes directly on x86/x64 cpu magnaged = code run under .net clr. dllimport allows wrap unmanaged function declaration in external dll managed equivalent can call managed code. enabling use native code in managed app. you uses dll export in c++ code identify calls can imported ( msdn link ) http://pinvoke.net/ shows how can use many of windows' built in native dlls in managed code. here microsoft article showing how might use dllimport.