Solved

run time libraries

Posted on 1998-10-27
3
179 Views
Last Modified: 2010-04-02
I am a beginner in Visual C++.

I am trying to execute a MS DOS program, because I need to generate a fast signal (80 microseg.) through LPT.
I think I need to use runtime libraries.
Anyway, I am not able to link my program with any options.

I hope one of you could help me.

Resumming,
I need to do "inp", disabling windows.

Thanks in advance.
0
Comment
Question by:mcpm
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 50 total points
ID: 1176275
visual C++ does not generate DOS programs.  It can generate win32 console programs that look like DOS programs (to the user, and somewhat to the programmer)  however, they are very different in nature.

You can use the _inp() and _outp() procedures from a VC console application.  You need to include the <conio.h> file.  these procedures are very slow and extremely inefficient however.  If you need fast access they are not going to work for you.

The run-time library will be linked in automatically.
0
 

Author Comment

by:mcpm
ID: 1176276
Thanks for your help.
Do you know if I can "stop" windows and execute my DOS program, inside
my visual c++ rutine?
0
 
LVL 22

Expert Comment

by:nietod
ID: 1176277
What do you mean by "stop"?

In windows 95, you can shut down windows and restart in MS-DOS mode.  This option appears when you try to shut down windows.  You cannot do that from NT however.  However, the program you are creating won't run in DOS mode.  It is not a DOS program, it is a windows program.  VC cannot create DOS programs, only windows programs.  
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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 use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

808 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