delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/17/01:37:52

From: "Maan M. Hamze" <mmhamze AT mail DOT utexas DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: text mode C++ in a win-style windopw through rsxide
Date: 17 Jan 1997 00:44:57 GMT
Organization: University of Texas at Austin
Lines: 28
Message-ID: <01bc040e$e430fc00$2a705380@maan-m.-hamze>
NNTP-Posting-Host: slip-36-10.ots.utexas.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I received 3-4 e-mails on how to run a text mode C++ program using RSXNT
and RSXIDE in a true win-style window (not console)
without using rsxwin.
The RSXNT help file gives an example for doing that for a C program (not
C++).
To make it work for C++ do the following:
1.  As instructed include rsxioapp.h in your C++ program,
2.  now, make sure to include stdio.h, and
3.  also, make sure to include iostream.h
(yes both stdio.h and iostream.h)
if you do not include stdio.h, the compiler will not recognize getchar() in
the linking process.
Now, through RSXIDE link with the following libraries:
stdcpp and rsxioapp.
make sure to include the library stdcpp.
Hope this helps for fellow RSXNTers.

Hope no one minds posting EMX and RSX related issues on the DJGPP group. 
there is no group for EMX and RSX things.
If this is looked down at please let us know.....hopefully in a polite way
:)
Maan

ps:  yes, I do use DJGPP and RHIDE:)
-- 
Maan M. Hamze
mmhamze AT mail DOT utexas DOT edu
http://leb.net/~mmhamze

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019