Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

DOS DLL's?

Posted on 1998-03-30
3
202 Views
Last Modified: 2012-05-04
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
0
Comment
Question by:whluk
  • 3
3 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 0 total points
ID: 1183943
Sorry no.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1183944
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.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1183945
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.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question