Solved

run time libraries

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Fully specialized class template function 21 130
IdTCPClient1->Disconnect(); not working 3 60
max float value 3 25
Installshield for Embarcadero EX 10.1 Berlin 4 18
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…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

910 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

19 Experts available now in Live!

Get 1:1 Help Now