Solved

run time libraries

Posted on 1998-10-27
3
176 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
Comment Utility
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
Comment Utility
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
Comment Utility
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
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…
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…
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.

743 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

8 Experts available now in Live!

Get 1:1 Help Now