Solved

DOS DLL's?

Posted on 1998-03-30
3
178 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
Comment Utility
Sorry no.
0
 
LVL 22

Expert Comment

by:nietod
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now