I have a console program CONSOLE.EXE that calls routines in A.DLL, and A.DLL calls routines in B.DLL. I would like to eliminate the need to distribute B.DLL by embedding into A.DLL. How is that done? And if I want to embed A.DLL into CONSOLE.EXE how is that done?
You don't "embed a DLL". You build a static library instead of a DLL and link the executable to the static library(ies). You can also "embed" B.DLL by building A.DLL so that it links to the B static library.