Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

DOS DLL's?

Posted on 1998-03-30
3
Medium Priority
?
224 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
[X]
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
  • 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
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…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

670 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