Solved

run time libraries

Posted on 1998-10-27
3
180 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
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 clear a vector as well as how to detect empty vectors in C++.

861 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