Please see my comments to the question.
Tolleule@web.de wrote:
no no you missunderstood me. I'm interested in programming a lot, but not in f***ing C++, this language is confusing me. I only working with python. Now, i only need a way to read the lib. When i add it to my Win32 Project i get an error "...there is no editor available for dismapi.lib". Can you help me with it?
Edit: Is a lib file a compiled file like a DLL?
I'm sorry to say: hardly, and I, unfortunately, understood you pretty much well.
You still need to know C++ very well. Then, let's say, you can do it in C#. I don't know if we have .NET wrapper for DISM. If not, you have to do it yourself, and for this purpose you have to understand a good deal of C++. If it is available, you still need serious knowledge of .NET and C#. Finally, let's say you want to use Python instead of C#. There is such thing, called Iron Python. It means knowing .NET very well. And so on…
See also:
https://en.wikipedia.org/wiki/IronPython[
^],
http://ironpython.net/[
^].
Let's say, however, that you want to use Python targeting native platform. But DISM API and documentation is written for C++ use, so you need some inter-operation, which will also require good understanding of C++. Please see, for example:
http://www.boost.org/doc/libs/1_42_0/libs/python/doc/tutorial/doc/html/index.html[
^].
Now, you really need some help with lib and DLL. Lib is nothing like DLL. This is a module of object code, pretty much a collection of object files in one file (and this is how it is implemented in *NIX, but not exactly the same way in Windows). And obj files are object files of the native code which is still to be
statically linked using a linker into executable code. Please see:
https://en.wikipedia.org/wiki/Linker_%28computing%29[
^],
https://en.wikipedia.org/wiki/Object_file[
^]
https://en.wikipedia.org/wiki/Static_library[
^].
Lib library is a static library, and DLL is a
dynamic link library. Static libraries go on the input of the linker, to produce executable file. Those executable files are PE files,
Portable Executable. Now, the main point is: EXE, DLL, and some other files are PE files. Actually, difference between EXE and DLL is quite subtle, but DLL is presumable used only as a library. Strictly speaking, this is not always so, and even EXE can be used not as application, and it can be used even as a library. Please see:
https://en.wikipedia.org/wiki/Portable_Executable[
^],
https://en.wikipedia.org/wiki/Dynamic-link_library[
^].
—SA