Creating .dll from existing code

This is a request for beginners. I am looking for materials to create a .dll. In particular, I want to create a .dll from a simple 3D engine that I made to learn about the process. I need information on dynamic link libraries that go deeper than the wikipedia page, how they are created, what is needed, how to create different DLL files for debugging and release, how to create a PDB file for it and how to create a header file that will make it easy to use the library from a, fe, C ++. It would be great to have material with a strong theoretical side (not so much "how to create a dynamic link library in a visual studio").

Please share some good material on the topic, all I can find is some information here and there, and it does not paint a picture for me.

+5
source share
2 answers

Reading between the lines, I think you really want to learn about libraries in general, and not about DLLs. a library is just a convenient package of object (compiled) code, as well as some information on how to call it. In C ++, this usually takes the form of a .h file.

(.lib) , , , . (MyClass.obj), , . .lib. , , .

(.dll) , () , , - dll. exe, , , . Windows DLL , DLL- , , , .

, dll , Windows , DLL, , dll /. DllMain().

, .lib, DLL. . lib, , dll.

, , - , API (Application Programming Interface). /, , . , , . C, ? . API , ( !) .

pdb, / .h. exe.

+5

1) DLL, VS.

2) .

3) *.def ( ) , DLL, .

, . , , -, : " " → " " → "" → " ".

+1

All Articles