Solved

run time libraries

Posted on 1998-10-27
3
184 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
[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
  • 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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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 viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

696 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