How are DLLs created out of C++ source, and how are they used in other sources? -


how dlls created out of c++ source code, , how used in other sources?

the dll 'dynamic link library' works lot other libraries not linked executable application. @ run time can call specific functions loading dll , executing exported methods.

you can try creating dll yourself- create project using visual studio , specify dll. create of base constructs project such settings project compile dll , base code exposing methods, objects, or variables.

there many walk through's @ point: check here.

so, summarize:

  • a dll library can loaded @ runtime. flexible 'plug-in' model. example: can programmatically select , load different dll @ runtime. each dll can 'plug-in' provide different functionality.

  • a dll has entry point. main function of command line executable entry point, dll has entry point function called when different events occur on dll such loading, unloading, , more.

  • to use dll must use exported objects or methods of dll.

  • when calling these exported functions application important match compatible types! also, make sure calling conventions compatible


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -