HDTenEightyP/NetNews huggingface dataset:
From: rogge@embezzle.Stanford.EDU (Sven Rogge)
Subject:  0S/2 gcc
Keywords:  os2 gcc gnu
Reply-To: rogge@embezzle.Stanford.EDU (Sven Rogge)
Organization: Stanford University
Distribution: su
Date: Fri, 2 Oct 92 18:31:28 GMT

Hello GCC programmer,

        I wanted to see the speed difference between gcc for OS/2 and
the Microsoft C under DOS. To my big surprise the DOS was faster. My
little program just calculated the exp() and sin() ... of some numbers
and I am using the operating system on a computer without a
coprocessor.
        What is the reason for that and is there a way to change it.

Thanks for help and information,

Sven

(rogge@fizzle.stanford.edu)

Newsgroups: comp.os.os2.programmer
From: shabby@Athena.MIT.EDU (Chris Shabsin)
Subject: Re: Is the PM model closer to X or Windows?
Organization: Massachusetts Institute of Technology
Distribution: comp.os.os2.programmer
Date: Tue, 29 Sep 1992 18:20:48 GMT

In article <JOHNB.92Sep28085634@tara.am.dsir.govt.nz> johnb@am.dsir.govt.nz (John Burnell) writes:

   I have a couple programs that I am going to port to a PM interface. I have
   examples of both X and Windows programs that perform similar tasks. Does
   anyone have a feeling as to which would be easier to use as a base for my
   port?

   Thanks in advance for any help
   John Burnell

I would suggest the Windows program, since PM was once really just
Windows for OS/2, anyway...  well, not exactly, but it has its origins
in Windows.  Basically, you just tack on a "Win" to the beginning of
everything (WinGetMessage instead of GetMessage) and voila!  PM
program.  Obviously, it's more complicated than this, like differences
in Window Messages parameters (MPARAM instead of WORD/DWORD) and the
existance of true multitasking.  But X has very little formal
structure, and you won't recognize much in X programs if you have done
PM or Windows... 

--
-Chris Shabsin
-shabby@athena.mit.edu
-member, SIPB, PWLCSBHNM, MITMB, VWA, MITCC, PWN, LSI
-"You got the power, you got the might, get ready for battle, beat
	that Black Knight!"
					-Black Knight pinball game...
Newsgroups: comp.os.os2.programmer
From: jwh@citi.umich.edu (Jim Howe)
Subject: EPM Editor Question
Date: Thu, 01 Oct 92 16:50:11 EDT
Organization: IFS Project, University of Michigan
Reply-To: jwh@citi.umich.edu

I've just started to use the EPM editor and I have a 
question about how it operates when marking text in
standard mode.  If I mark text lines which are in the
middle of the window, when I complete the mark (when
I release the mouse button), the window scrolls one
direction or the other, placing the marked text either
at the bottom of the window, or the top.  What is the
purpose of this 'feature', and more importantly, is 
there some way to disable it?  I don't like it when 
editors dynamically shift my perspective without my
consent.


James W. Howe                  internet: jwh@citi.umich.edu
University of Michigan             uucp: uunet!mailrus!citi.umich.edu!jwh
Ann Arbor, MI   48103-4943         

Newsgroups: comp.os.os2.programmer
From: weinkam@fraser.sfu.ca (James Lawrence Weinkam)
Subject: Window contents
Organization: Simon Fraser University, Burnaby, B.C., Canada
Date: Fri, 2 Oct 1992 21:24:40 GMT

I am writing a graphics program that takes a long time to generate the
image.  I was wondering what the best way of doing redraws is.  The only
way I can think of that would provide good performance is to create a
memory context of the window as well as a screen context and draw to both.
In this way, when I get the WM_PAINT message I just BitBlt from the memory
context to the screen context.

Is there a way of achiving the same without having to open two HPS, and
drawing to both?  (like an option when opening the window to tell the 
OS to maintain both the screen and memory context)  

Thanks for your help

James
From: kendall@sceng.ub.com (Greg Kendall)
Newsgroups: comp.os.os2.programmer
Subject: FILE_INFO_* not found in *.h
Date: 1 Oct 92 00:51:12 GMT
Organization: Ungermann Bass

the OS/2 programmer's reference, vol 4 lists FILE_INFO_1, _2, and _3 as
constants for the InfoLevel parameter of DosQFileInfo and DosSetFileInfo.
None of the *.h files I have contain these constants. Anybody know what the
right values are and what, if any, constants exist?
Newsgroups: comp.os.os2.programmer
From: feustel@netcom.com (David Feustel)
Subject: C[++] to VREXX Interface???
Date: Sun, 27 Sep 92 20:54:18 GMT
Organization: DAFCO: OS/2 Software Support & Consulting

I just downloaded vrexx2 from software.watson.ibm.com and ran the
demo .CMD files. I liked what I saw and would like to use the vrexx
i/o interface as a PM interface for my C[++] programs. Is this
possible? If so, is there a specification of the calling sequence
interface available?
-- 
Dave Feustel N9MYI <feustel@netcom.com>
 
The current epidemic of violent crime in the U.S. arises not from drug
use, but as a consequence of government-sponsored oppression of
producers, distributors and consumers of popular drugs not produced by
(and hence threatening the market share of) the alcohol, tobacco or
pharmacutical industries (which industries, coincidentally, are the
largest contributors to the Bush Reelection Campaign and the biggest
underwriters of antidrug advertisements (which advertisements,
coincidentally, never mention tobacco or alcohol as dangerous drugs)).
From: skelly@coral.bucknell.edu (Kelly Sean David)
Newsgroups: comp.os.os2.programmer
Subject: Link386 problem
Date: 28 Sep 1992 23:59:15 -0400
Organization: Bucknell University, Lewisburg, PA, USA
NNTP-Posting-Host: coral.bucknell.edu

I misposted about my problem before.  I said my problem was compiling to
objects with gcc 2.2.2, I was wrong.  I can compile to .obj files fine, but
when I run link386 I get an "error2029:_cin:Unresolved external" along with
many similar statements for the file that is using/including iostream.h
Any help as to the source of this problem would be appreciated.  You can email
me if you want.
Thanks in advance.

-Sean Kelly

Newsgroups: comp.os.os2.programmer
From: backman@vaxeline.ftp.com  (Larry Backman)
Subject: Example code to insert cmd files in startup folder
Nntp-Software: PC/TCP NNTP
Organization: FTP Software, Inc., Wakefield, MA
Date: Mon, 05 Oct 1992 13:46:38


Subject line says all:

I'm looking for example code in how to have a command file
inserted into the Startup folder.


Larry Backman
FTP Software


Newsgroups: comp.os.os2.programmer
From: rm3@ornl.gov (MCBROOM R C)
Subject: Re: How do you use the common file open dialog?
Organization: Oak Ridge National Laboratory
Date: Tue, 6 Oct 1992 18:42:53 GMT

In article <joiner.717968052@myria> joiner@myria.cs.umn.edu (Jay K. Joiner) writes:
>In <1992Oct1.172605.15912@bnr.ca> stu9r22@bnr.ca (Ian Lowrie) writes:
>
>>As a fledgling OS/2 programmer, I've been trying to use the common file
>>open/close dialog box.  Unfortunately, I can't get it to work. :(
>
>The sample3 application that comes with the GCC distribution uses the
>file open dialog.
>
What is needed to get sample3 to compile with the EMX0.8e version of the
GNU compiler.  It keeps telling me that filedlg is undefined.

Please reply by email as I would probably miss a post.


Robert McBroom internet: rm3@ornl.gov
From: johns@pcad.UUCP (John Storey)
Newsgroups: comp.os.os2.programmer
Subject: comp.os.os2.programmer
Keywords: RCS
Date: 4 Oct 92 21:16:40 GMT
Distribution: usa
Organization: Personal CAD Systems, Westford, MA


	I just attempted to install the RCS package for OS/2 on my
HPFS drive.  When I attempt to ci a file (first time ever) it fails
with the following msg:

	ci error: RCS: Permission denied
	RCS\makefile <- makefile
	ci error: TZ is not set
	ci aborted

	Is this some error with the protection attribute on the file?
(I'm more used to unix here.)  I've set the following enviroment
variables:

			set RCSINIT= -x
			set LOGNAME=john

Any ideas would be appreciated here.

Thanks -

John Storey
uunet!pcad.odin!johns

Newsgroups: comp.os.os2.programmer
From: hank@ducvax.auburn.edu
Subject: Re: Asking for help with GCC2-222
Organization: Auburn University, AL
Date: Mon, 5 Oct 1992 00:36:28 GMT

In article <TZ15RB1w164w@yngbld.tfsquad.mn.org>, zeta@yngbld.tfsquad.mn.org (Gregory Youngblood) writes:
> (1)  I ftp'd the bsddev.zip and other .zip files, but I am unable to unzip 

Get the Info-Zip unzip 5.0 from ftp-os2.nmsu.edu in pub/os2/2.0/archivers.


> (2)  I realize this is more than likely OLD news, but how do I read the 
> documentation?  They are all in .texi format.

Get gnuinfo in pub/os2/2/gnu. Use makeinfo to prepare on-online docs
to be read with info. Use TeX for printed copies.


> (3)  There are several files in the pub/os2/2.0/programming directory, a lot 
> without information as to what they are.  I ftp'd some files that looked 
> like they would be useful, as well as the important files from emx-08e.  I 
> think I ftp'd the entire gcc2-222 directory as well (I think there was only 

There are two different gcc's for OS/2. Start by getting Sipples' FAQ (look
in his signature for the location. 

--darrel hankerson hank@ducvax.auburn.edu
Newsgroups: comp.os.os2.programmer,comp.os.os2.networking,comp.os.os2.misc,comp.os.os2.apps,comp.os.os2.advocacy
From: rommel@Informatik.TU-Muenchen.DE (Kai-Uwe Rommel)
Subject: GTAK201B.ZIP replaced on ftp-os2
Organization: Technische Universitaet Muenchen, Germany
Date: Thu, 1 Oct 1992 20:11:17 GMT

Due to a screwup on my side the buffer.exe in the GTAK 2.01 binaries
archive was corrupted. In fact, it was not even an EXE file.
I have replaced the archive with a new version.

Kai Uwe Rommel

/* Kai Uwe Rommel --- rommel@informatik.tu-muenchen.de */

DOS ... is still a real mode only non-reentrant interrupt
handler, and always will be.                -Russell Williams

Xref: sparky comp.os.os2.programmer:5433 comp.os.os2.networking:1617
From: cj00+@andrew.cmu.edu (Carl B Jabido)
Newsgroups: comp.os.os2.programmer,comp.os.os2.networking
Subject: fingerd and finger
Date: 4 Oct 92 17:44:57 GMT
Organization: Sophomore, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA

Does anyone know if a fingerd and finger program exist for IBM's TCP/IP
for OS/2?  If not, anyone want to port it from unix?

Carl Jabido
cj00@andrew.cmu.edu
Newsgroups: comp.os.os2.programmer
From: jmorriso@ee.ubc.ca (John Paul Morrison)
Subject: Re: f2c and emx-0.8e
Organization: University of BC, Electrical Engineering
Date: Sun, 27 Sep 1992 04:50:34 GMT

In article <fearick.63.717239767@physci.uct.ac.za> fearick@physci.uct.ac.za (Roger Fearick) writes:
>The new version of emx-0.8e won't work with the old 0.8d-compiled libraries,
>but don't despair. I am currently working on the latest version of f2c and 
>hope to upload it soon (with source).
>
>This new version will fix a number of little bugs, especially one that
>results in 'invalid op_code' messages for perfectly acceptable code.
>
>By the way, 0.8e won't work with the present libi77.lib/libf77.lib
>and methods (E2) and (E3) for creating executables, because emxomf
>strips the leading underscores from names. THis means that there is no 
>compatibility between the two ports of gcc that use .obj files......  

maybe the f77 libraries can be turned into a DLL, to save some space 

>
>Roger.
>
>
>Roger Fearick                 *  Internet: fearick@physci.uct.ac.za
>Dept. of Physics              *
>University of Cape Town       *


-- 
__________________________________________________________________________
 John Paul Morrison                     |  Just another "Enemy of Canada"
 University of British Columbia, Canada |  Say NO/NON to Constitutional
 Electrical Engineering                 |  hegemony and fear-mongering
 jmorriso@ee.ubc.ca                     |  by politicians/scum.
________________________________________|_________________________________
Newsgroups: comp.os.os2.programmer
From: margoli@watson.ibm.com (Larry Margolis)
Subject: Re: EPM Editor Question
Date: Fri, 02 Oct 1992 23:15:20 GMT
News-Software: IBM OS/2 PM RN (NR/2) v0.14 by O. Vishnepolsky and R. Rogers
Reply-To: margoli@watson.IBM.com
Disclaimer: This posting represents the poster's views, not necessarily those of IBM
Organization: IBM T.J. Watson Research Center

In  <FA2-pQB@engin.umich.edu>  jwh@citi.umich.edu (Jim Howe) writes:
> ... the window scrolls one
> direction or the other, placing the marked text either
> at the bottom of the window, or the top.

[Only happens if the screen was first scrolled using the scroll bars,
so that the cursor is not in the window.]

> What is the purpose of this 'feature',

It's called a bug.  :-)

> and more importantly, is there some way to disable it?

You betcha.  Assuming you have the macros and macro compiler, edit the
file MOUSE.E, find the routine MH_end_mark, find the line:
   getmark  firstline,lastline,firstcol,lastcol,fileid
Immediately before that, add:
   if .cursorx > 0 & .cursorx <= .windowwidth & .cursory > 0 & .cursory <= .windowheight then
Then find the line:
   'MH_gotoposition'
and immediately before that, add:
   endif

Then recompile by entering the command:
   etpm extra
and you should be all set.  (If you haven't recompiled before, then you'll
need a MYCNF.E.  If you don't really want to change the shipped settings,
the simplest way of doing this is to create one containing the single line:
   include 'epmgcnf.smp'  -- Pick up "Enhanced Editor" configuration file

If you don't *have* the macros, then you can get them via anonymous FTP
from software.watson.IBM.com, from the IBM BBS's, or from Compuserve.
It's the EPMBBS package.)
--
Larry Margolis, MARGOLI@YKTVMV (Bitnet), margoli@watson.IBM.com (Internet)
From: dani@hp-ptp.ptp.hp.com (Danielle Cohen)
Date: Mon, 5 Oct 1992 21:41:01 GMT
Subject: Help wanted for PM Application programming
Organization: HP Pacific Technology Park - Sunnyvale, Ca.
Newsgroups: comp.os.os2.programmer

I have some basic questions for those netters knowledgable in
PM programming.

1.  If I have a Program Object that I create on the desktop,
    and then the user moves it into a folder, is there some
    way I can query its location so I can delete it.  If I
    give its location as the desktop on the delete call,
    the object is not removed.

2.  Is there an API (I program in C) to do a print screen/window.
    I would like to programatically duplicate the functionality
    of the print screen key on the keyboard.

3.  I have a _beginthread call which sometime seg faults (SYS3175).
    The registers say the error occurs in CSET2.DLL probably in
    a ReleaseSemaphore call.  My guess is whatever stuff it needs
    to copy for the new thread is too big, but if someone has
    seen this, and fixed it?!, please let me know.

 Thanks is advance for any help you may be able to give me,

   Danielle (dani@hpams0c.hp.com)
From: colin@novell.com (Colin Goldstein)
Newsgroups: comp.os.os2.programmer
Subject: Re: Allocating a 64k chunk in a device driver...
Date: 2 Oct 92 22:53:59 GMT
Organization: Novell Inc., San Jose, Califonia

In article <1992Sep29.070357.23292@CS.ORST.EDU> @prism.cs.orst.edu writes:
>I need to allocate two 64k buffers in ram from a 16bit device driver. Each of
>the buffers must be completely contained in a segment. They cannot cross a
>segment boundary. Does anyone know of a way to do this?
>
Keith:
How are these buffers to be used. If they are to be used in the
device driver only, then the answer is simple. Here's how:

Allocate a couple of GDT selectors - AllocGDTSelector (CX=1, DL=2DH)
Allocate 64 Kb of memory	   - AllocPhys (DL=18H, DH=1)
Assign the 64 Kb to the selector   - PhysToGDTSelector (CX=65536, DL=2EH)

This can be made smaller/faster by using CX=2 in AllocGDTSelector.
These selectors can be used by the device driver only. If an app
requires access to this memory, then further steps are needed. Also,
the memory will not cross a boundry as the memory will be addressed
as sel:0-65,536.

Hope this helps,
	Colin
--
/-------------------------------------------------------------------\
|  The views expressed here are my own.  | How's life treating you  |
|  They do not necessarily represent     | Norm???                  |
|  the views expressed by my employer.   |                          |
|                         ---------------| Like a dog treats a      |
|  colin@novell.com       | Novell Inc., | fire hydrant.            |
|  uunet!novell!colin     | San Jose, CA |                 - Cheers |
\-------------------------------------------------------------------/
From: ak@ananke.stgt.sub.org (Andreas Kaiser)
Newsgroups: comp.os.os2.programmer
Subject: fork() fails in EMX...
Date: 30 Sep 92 05:03:53 GMT
Organization: ananke


In article <1992Sep26.071206.3535@unixg.ubc.ca> ochealth@unixg.ubc.ca writes:

  > can someone give me a sample of fork() in EMX?

/emx/test/fork.c
  
  >    if( pid = fork() ) {
  >        if( pid == -1 )
  >            puts("fork failed");
  >        else
  >            puts("parent");
  >    }

Add a dummy malloc() before fork() and it runs. A bug in the library.
EM's demo has a printf before fork and the very first stdio access
usually allocates some buffer memory.

		Gruss, Andreas

:::::::::::::::::::: subnet:  ak@ananke.stgt.sub.org
:: Andreas Kaiser :: fidonet: 2:241/7220.9
::::::::::::::::::::
From: mig@cunixb.cc.columbia.edu (Meir I Green)
Newsgroups: comp.os.os2.programmer
Subject: Please Help me recreate my Minimized Windows Viewer Object!
Date: 4 Oct 92 04:36:56 GMT
Reply-To: mig@cunixb.cc.columbia.edu (Meir I Green)
Organization: Columbia University, New York

I accidentally deleted my Minimized Window Viewer object.
I was able to recreate it using wpstools.zip, but it doesn't function!
Is there some way to reestablish the link, so that minimized windows will
appear in it, again?

Please email replies.
Thank you very much!

Meir

 * * * * *  =================== Internet   mig@cunixb.cc.columbia.edu
* * * * * * == Meir I. Green == AmateurPkt N2JPG@W2XO.PA.USA.NOAM
 * * * * *  = mig@columbia.edu= Amateur IP N2JPG@uhm.ampr.org
* * * * * * =================== BC-Goliath green@smtplink.barnard.columbia.edu
From: hamish@waikato.ac.nz
Newsgroups: comp.os.os2.programmer
Subject: Re: How do you use the common file open dialog?
Date: 2 Oct 92 11:20:13 +1200
Organization: University of Waikato, Hamilton, New Zealand

In article <1992Oct1.172605.15912@bnr.ca>, stu9r22@bnr.ca (Ian Lowrie) writes:
> As a fledgling OS/2 programmer, I've been trying to use the common file
> open/close dialog box.  Unfortunately, I can't get it to work. :(
> 
> I use Watcom C/386 v9, with the OS/2 headers from GCC suitably modified.

Watcom now distribute the headers for OS/2 2.0 with the patches available from
their bulletin board. (3 disks 1.44M each, just over 2M compressed together).

> The problem is, the box terminates the program in three cases:
>    1) Double clicking a file name
>    2) opening one, then the other of the type/drive comboboxes
>    3) hitting OK doesn't return a proper filename
> 
> I'm basing my code on the example in the Application Development RedBook.
> 
> If someone could post an example of how to use this, I would really 
> appreciate it (or at least point me to an example that works).
> 
> Please post, since the email address above is probably wrong...
> Stephen Drye
> 
> PS: Does Watcom's _beginthread automatically allocate the stack for the 
> thread like C/Set 2, or do I have to allocate the stack myself (different
> problem).  Heeeelp!   

It uses DosCreateThread, so will probably let that allocate the stack if you
just specify a size for it.

-- 
==============================================================================
|  Hamish Marson   <h.marson@waikato.ac.nz>                             OS/2 |
|  Programmer (n/5), School of Computing and Mathematical Sciences           | 
|  University of Waikato,                                                    |
|  Hamilton, New Zealand.                                                    |
|Disclaimer:  Anything said in this message is the personal opinion of the   |
|             finger hitting the keyboard & doesn't represent my employers   |
|             opinion in any way. (ie we probably don't agree)               |
==============================================================================
  Q. If Nuclear Tests are so safe, why don't the French do them under Paris?
Newsgroups: comp.os.os2.programmer
From: 4389750@mcimail.com  (Robert Gammon)
Subject: Networks included in OS/2
Nntp-Software: PC/TCP NNTP
Organization: Texas Instruments Materials and Controls Group
Date: Mon, 5 Oct 1992 14:16:51 GMT

To all those who argue for putting TCP/IP inside the OS/2 box, Surprise,
TCP/IP networks are not the only networks.  Using your arguments, TCP/IP,
Netware, Lan Server, Lan Manager, Banyan Vines, Lantastic, etc. should ALL 
be included in the box.  Hmm, how big is this box??  How much does it
cost??  Who will buy it if it is this big and this expensive??  I can't
possibly imagine getting all this extra for free, each of these other 
companies wants/needs a cut.  Seems to me that the more reasonable
approach is to buy the network connectivity that you need as a separate
package.  Our needs are too diverse to be satified in a single product.

--
Regards,
Robert Gammon
(713)-274-3299       (voice)
(713)-274-2324       (fax)

Newsgroups: comp.os.os2.programmer
From: joiner@myria.cs.umn.edu (Jay K. Joiner)
Subject: Re: How do you use the common file open dialog?
Organization: University of Minnesota
Date: Thu, 1 Oct 1992 19:34:12 GMT

In <1992Oct1.172605.15912@bnr.ca> stu9r22@bnr.ca (Ian Lowrie) writes:

>As a fledgling OS/2 programmer, I've been trying to use the common file
>open/close dialog box.  Unfortunately, I can't get it to work. :(

>If someone could post an example of how to use this, I would really 
>appreciate it (or at least point me to an example that works).

The sample3 application that comes with the GCC distribution uses the
file open dialog.

Newsgroups: comp.os.os2.programmer
From: kaz@iastate.edu (Jimmy Buffet)
Subject: Executing a program from within a program
Summary: Executing a proram within a program
Keywords: Program Execute
Organization: Iowa State University, Ames IA
Date: Tue, 6 Oct 1992 18:35:49 GMT

Is there an OS/2 function I can call to execute a program within a program
(for example, call dir within a program).  Also, is there a list
of standard OS/2 file and dir functions I can get anywhere?  Thanks!

-- 
Newsgroups: comp.os.os2.programmer
From: feustel@netcom.com (David Feustel)
Subject: Re: Price to join DAP?
Organization: DAFCO: OS/2 Software Support & Consulting
Distribution: usa
Date: Sun, 4 Oct 1992 00:09:24 GMT

sip1@ellis.uchicago.edu (Timothy F. Sipples) writes:

>In article <1992Oct3.160944.1813@muddcs.claremont.edu> jokim@jarthur.claremont.edu (John H. Kim) writes:
>>>>How much does DAP membership cost?  Or is this a free service?
>>>No charge (except for the CD-ROM, which costs less than most computer
>>>books).
>>What requirements do they have?  Last time I called, the person
>>on the other end talked to me about contracting with IBM to develop
>>32-bit OS/2 software.  Is that correct, or did I just get a flake?
>>I just want to develop shareware apps.

>As far as I know, the policy changed.  Anyone (including
>shareware/freeware authors) can now join.

I enrolled in the DAP over the phone when I ordered the cdrom ($14).
-- 
Dave Feustel N9MYI <feustel@netcom.com>
 
[.sig on vacation]