Link to home
Start Free TrialLog in
Avatar of whluk
whluk

asked on

DOS DLL's?

hi everyone,
      i'm just wondering whether borland c++ (or other compilers) dll's work for dos programs or not?
if it's positive ,can you also show me how to do it?

byte jacky
ASKER CERTIFIED SOLUTION
Avatar of nietod
nietod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nietod
nietod

DOS EXEs and Windows EXEs use a different format.  (they actually are pretty similar.)  But the windows EXE contain information about the DLLs it uses and the functions it imports from the Dlls.  DOS EXEs don't have this information.  That's the main reason it is not possbile.  There are lots of other reasons.  Like the different memory schemes etc.
However, if you want a DOS LIKE program (that is not a GUI or graphical user Interface program) that does use DLLs you can create a windows console program.  Thiis is a 32 bit windows program that has access to all of the windows API and all the goodies that entails, but that handles input and output through a character console (like a DOS program.)  Actually the console program can make use of lots of fancy console features that are not typically available to a DOS program.