HDTenEightyP/NetNews huggingface dataset:
From: kvien@Elkraft.Unit.NO (Oddgeir Kvien)
Subject: Re: compiling macros for EPM ?
Reply-To: kvien@Elkraft.Unit.NO (Oddgeir Kvien)
Organization: University of Trondheim
Date: Tue, 26 Jan 93 07:51:44 GMT

In article <1993Jan25.164543.4845@gandalf.UMCS.Maine.EDU>, jurlwin@gandalf.UMCS.Maine.EDU (Jeff Urlwin) writes:
|> In article <1993Jan25.004628.22259@watson.ibm.com> margoli@watson.IBM.com writes:
|> >In <1993Jan24.181508.24311@ugle.unit.no> kvien@Elkraft.Unit.NO (Oddgeir Kvien) writes:
|> >>How do you compile macros for EPM?
|> >>
|> >>I can not find it in anny documentation.
|> >
|> >Compiling macros refers to using ETPM to compile .e macros into .ex files.
|> >ETPM was not shipped with OS/2, but is available in the EPMBBS package on
|> >the IBM OS/2 BBS's, Compuserv, and via anonymous FTP (from
|> >software.watson.IBM.com and other sites).  This has nothing to do with Rexx
|> >macros.
|> >
|> >The above package includes an online user's guide and tech. ref.  For more
|> >information on ETPM, get EPMDOC.ZIP, unpack it, then enter the command:
|> >   view epmusers etpm
|> 
|> It's also on the 11/92 PDK CDROM...
|> 
|> Jeff
|> 
Thnx I found it on watson. But there is some problem. When I try to 
recompile EPM (ETPM EPM)  an errormessage comes upp:

EX code size too large
   buffer_handle=SORT_find_buffer(DLLSORT0)

filename=sortDLL.e
line= 29
col= 34

I don`t know anything about the epm macro language so.........

What I want is just to change the behaviour of epm while I am editing a
*.c file. I don`t like the plasement of the { and }. I want them to be plased
on the next (or previous) line and not on the same line as if and else an so on.
So I have just done some minor changes in the ckeys file (I think that was the
name of the file).


Regards 

Oddgeir 

-- 

+-----------------------------------------------------------------------+
| Oddgeir Kvien, Norwegian Institute of Technology                      |
|                Faculty of Electrical Engineering and Computer Science |
|                                                                       |
| email: kvien@elkraft.unit.no                                          |
| phone: +47-7-594269                                                   |
+-----------------------------------------------------------------------+
Newsgroups: comp.os.os2.programmer
From: os2man@panix.com (Larry Salomon Jr.)
Newsgroups: comp.os.os2.programmer
Subject: Re: OS/2 Developer's Electronic Magazine
Keywords: OS/2, developers, programmers, magazine, source
Date: 21 Jan 93 15:35:52 GMT
Organization: PANIX Public Access Unix, NYC

In <sal8.295.727599590@po.cwru.edu> sal8@po.cwru.edu (Steve Luzynski) writes:

>So, what I need is this: articles. I will be privately contacting people via 
>e-mail who have already responded either on the group or by mail to myself, 
>but anyone else is more than welcome to volunteer. :)

I'm up for the "Programmer's Help Desk" idea (see below), if you like the
idea.  Send me email (ASAP if you have a problem with this.  Otherwise,
I'll start accepting questions now).

>I'm also taking suggestions for: a) a cool title, since the subject of this 
>message would be way too unwieldly; and b) votes for either .txt or .inf 
>format (or both for that matter.)

I say .INF, since they're compressed and since we'll be able to include 
figures, diagrams, etc.  You'll also be able to write a hypertext linked
table-of-contents.  :)

>The best title idea I've come up with so far is "OS/2 Programmer's Monthly" 
>since the initials make for an interesting play on words (OS/2 PM). My only 
>real problem with it is that it will be silly if I don't get one out every 
>month. :)

I like the title.  If you need a logo, and have a copy of PmDraw from the 
CD-ROM (is it at software.watson.ibm.com?), then I'll draw you one.

---------------------------------------

Assuming that Steve accepts my offer of the "Programmer's Help Desk" 
column, I will start accepting questions for the first issue.  Send them
to this address - os2man@panix.com - and include in the body of the note
something to the effect of "this is for the magazine"; otherwise, I will
probably answer you directly and no one else will benefit.  Also, this is
so I don't have to send you email requesting permission to print the
question and the answer I find.

Cheers,
Q
-- 
"If you choose not to decide, you  | "My other body is in the shop" - seen
 still have made a choice" - Rush  |  on a T-shirt
------------------------------------------------------------------------
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: How do you use Non-PM graphics (VGA)?
Date: 22 Jan 93 17:25:51 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <5#k30!p@rpi.edu> myersr@aix.rpi.edu (Robert Parish Myers) writes:
>How do you use VGA graphics (both 320x200x256 and 640x480x16) in a
>full screen OS/2 Session
>
>a) In General?

I believe there are Dos and/or Vio calls to set the screen mode, and
request a memory buffer that will map to the display.  You can then
read/write the display as if it were any other memory page.  At least
I think this is how it works.

I know that there are system calls for enabling full-screen graphics
without violating memory protection, but I've never used any of them.
And they are very non-portable, so you may need to locate
documentation for the 16-bit calls to figure out what to do with them.

And (of course) these calls will fail in a windowed or PM session.

>b) In emx 0.8e (which I'm using now) and emx0.8f(which I plan to be
>   using soon)?

I'm pretty sure that you use the general method with EMX compilers.
-- 
  |)  David Charlap          | .signature confiscated by FBI due to
 /|_  dic5340@hertz.njit.edu | an ongoing investigation into the
((|,)                        | source of these .signature virusses
 ~|~
Newsgroups: comp.os.os2.programmer
From: modester@iastate.edu (Matthew Hodges)
Subject: ObjectVision, OS/2 and DBM  ???
Organization: Iowa State University, Ames, IA
Date: Fri, 22 Jan 1993 20:45:29 GMT

I am wanting to talk with people who have successfully created OV applications
using DBM.  I am having troubles grasping the OV selection list and combo 
boxes concepts utilizing the Automatic data feature.  Can anyone offer some
assistance?

thanks

matt
 
==========================================================================
Matt Hodges               : DDD   M   M : "It all seems so stupid it makes
Iowa State University     : D  D  MM MM :  me want to give up,
Ames, Iowa                : D   D M M M :  But why should I give up when
                          : D  D  M   M :  it all seems so stupid"
modester@iastate.edu      : DDD   M   M :      M.L. Gore
==========================================================================
Newsgroups: comp.os.os2.programmer
From: cnadler@vnet.ibm.com (Cliff Nadler)
Subject: Re: compiling macros for EPM ?
Date: Tue, 26 Jan 93 18:08:59 GMT
News-Software: IBM OS/2 PM RN (NR/2) v0.16 by O. Vishnepolsky and R. Rogers
Reply-To: cnadler@vnet.ibm.com (Cliff Nadler)
Organization: IBM T. J. Watson Research

In <1993Jan26.131859.24062@netnews.whoi.edu> jwidman@whsun1.whoi.edu (James Widman) writes:
>>Thnx I found it on watson. But there is some problem. When I try to 
>>recompile EPM (ETPM EPM)  an errormessage comes upp:
>>
>>EX code size too large
>>   buffer_handle=SORT_find_buffer(4DLLSORT04)
>>
>>filename=sortDLL.e
>>line= 29
>>col= 34
>>

Try setting EXTRA_EX =1 in your MYCNF.E file.

Cliff Nadler
IBM Federal Systems Company

Note: This post represents the views of the poster, not those of IBM or the
      IBM Federal Systems Company
From: esmith@vax.clarku.edu
Newsgroups: comp.os.os2.programmer
Subject: RE: Good Book for OS/2 Programming
Date: 27 Jan 93 01:53:20 GMT
Organization: Clark University

Some books I have used:

Client-Server Programming with OS/2 EE by Orfali & Harkey, Van Nostrand ReinholdI understand there is a new version of this that uses 32 bit calls for examples
This book deals with real client-server and multitasking issues.

Software Tools for OS/2 by young, Addison Wesley
This book deals with DLL's, their use, advantages, and propper technique.
Newsgroups: comp.os.os2.programmer
From: assela@marcus.its.rpi.edu (A. Andre Asselin)
Subject: Re: Developers - Read this!
Date: Sat, 23 Jan 1993 23:42:33 GMT

paulg@a1.resmel.bhp.com.au (Paul Gallagher) writes:
>In article <31h3spb@rpi.edu> assela@rs6108.ecs.rpi.edu (A. Andre Asselin) writes:
>>sal8@po.cwru.edu (Steve Luzynski) writes:
>>By any chance, would you be interested in a series on writing Installable
>>File Systems?  Although its rather obscure and specialized, I've done some
>>work in that area and am willing to share what I've learned....
>>       - Andre Asselin   (assela@rpi.edu)

>YES YES YES YES (what more can I say?)

Well, I've gotten several people who said they want to know about IFS's.
Hopefully, if I don't get bumped for space ;-), you should see the first
article in the premier issue of OS/2 Programmer's Magazine...

      - Andre
Newsgroups: comp.os.os2.programmer
From: regebro@stacken.kth.se (Lennart Regebro)
Subject: Compiling Ghostscript.
Organization: Stacken Computer Club, Stockholm, Sweden
Date: Thu, 21 Jan 1993 09:23:26 GMT

I need to compile Ghostscript for OS/2. 1.3 or 2.0 doesn't matter.

Any help from anybody who has done this is apprieciated.
I need to know what tools you used, and get a glance or your script files.


Thanks.


-- 
Lennart Regebro             regebro@stacken.kth.se
Stacken Computer Club       +46-8 649 18 51
Don`t call before calculating my local time, please. This is GMT +1.
Newsgroups: comp.os.os2.programmer
From: smithgr@rintintin.Colorado.EDU (Gregory P. Smith)
Subject: diff between emx/gcc and plain gcc
Organization: University of Colorado, Boulder
Date: Wed, 27 Jan 1993 01:02:03 GMT

The subject says it all.  What are the differenced between gcc and emx/gcc
ports for OS/2.  What do each of them have that the other doesn't etc..  Which
produces better code?

Greg
Newsgroups: comp.os.os2.programmer
From: slumos@unlv.edu (Steve Lumos)
Subject: Re: BORLAND C++: WHAT A D
Organization: UNLV Computer Science
Date: Sun, 24 Jan 93 02:35:43 GMT

In article <4058.18.uupcb@uttsbbs.uucp> john.navas@uttsbbs.uucp (John Navas)  writes:
>Frankly, I can't imagine that BRIEF needs more than 2 programmers, as
>long as they are talented.

Then it sure seems strange that they had 6, doesn't it? I have to
admit, I really don't enjoy hearing about programmers being laid off
by anyone...

And anyway, that was just one example what I heard was that they laid
off several thousand. Doesn't sound right when "understaffed is an
understatement", don't you think?

TTYL - Steve
-- 
Steve Lumos - slumos@cs.unlv.edu  | Call the Las Vegas PC Users Group
<hillarious quote of your choice> | OS/2 SIG BBS: 702/434-5535
From: francis@vnet.ibm.com (Tim Francis)
Date: Fri, 22 Jan 93 19:35:50 EST
Subject: Getting Source Code View in PM debugger
Newsgroups: comp.os.os2.programmer
Reply-To: francis@vnet.ibm.com
Organization: IBM Canada Lab, WorkFrame/2 development
Disclaimer: This posting represents the poster's views, not those of IBM

In article <1993Jan22.010500.15975@samba.oit.unc.edu>,
Norman.Yee@launchpad.unc.edu (Norman Yee) writes:
>
>I'm having a problem getting the PM debugger to show me the source
>code view of a program; all that shows up is the disassembly code view.
>This is the debugger from the November PDK.
>
>I have turned on debugging info in the linker generation options and
>compiler debug options of Workframe/2.  I have turned optimization
>off in the compiler object code options.
>
>Anyone have any hints?
>
>  Norm

Are you using MSGBIND at all?  There's a bug in that that strips out
debug info.  -tim
Newsgroups: comp.os.os2.programmer
From: giguere@csg.uwaterloo.ca (Eric Giguere)
Subject: Did anyone see the Visual Programming with REXX demo?
Organization: University of Waterloo
Date: Wed, 27 Jan 1993 18:50:42 GMT

On page 86 of the January 25 InfoWorld, Cringely talks about Ucando Software's
"Visual Programming with REXX" demo at the Colorado conference recently.  Did
anyone here see this demo?  Can you give us a summary?

Interested REXX users should also take a look at the program for the
upcoming OS/2 Technical Conference in Phoenix, where a second REXX product
will be demonstrated.

-- 
 Eric Giguere                                    giguere@csg.UWaterloo.CA
          So is Windows NT short for "Windows, NOT?"
From: matt@physics2.berkeley.edu (Matt Austern)
Newsgroups: comp.os.os2.programmer
Subject: Re: GNU Make 3.6.2 - Why must I press two keys for each target?
Date: 27 Jan 93 10:17:52
Organization: Lawrence Berkeley Laboratory (Theoretical Physics Group)
Reply-To: matt@physics.berkeley.edu
NNTP-Posting-Host: physics2.berkeley.edu
In-reply-to: gtd543a@sol.crt.columbia.edu's message of Wed, 27 Jan 1993 10:16:46 GMT

In article <1993Jan27.101646.24443@sol.ctr.columbia.edu> gtd543a@sol.crt.columbia.edu (death) writes:

> Oliver White (oliver@coombs.anu.edu.au) wrote:
> : I am using GNU Make from gnumk362.zip, and when I do a make, it pauses
> : after making each target, and doesn't continue until I give it two keypresses!
> : Why is it so?
> 
> I had the same problem.  I downloaded NMAKE2.ZIP from hobbes (ftp-os2)
> and it worked just fine...

Yet another "me too": same problem, same solution.  I'm using the OS/2
2.1 beta, in case that has something to do with what's going on.
--
Matthew Austern                   Just keep yelling until you attract a
(510) 644-2618                    crowd, then a constituency, a movement, a
austern@lbl.bitnet                faction, an army!  If you don't have any
matt@physics.berkeley.edu         solutions, become a part of the problem!
Newsgroups: comp.os.os2.programmer
From: tommy@lynx.msc.cornell.edu.UUCP (Mike Thompson,332,54714,2734927)
Subject: Re: Memory access
Originator: tommy@snoopy.msc.cornell.edu
Organization: Cornell-Materials-Science-Center
Date: Thu, 28 Jan 1993 22:20:22 GMT

From article <13903@icarus>, by rickr@Semi.Mitel.COM (Rick Reitmaier):
> In article <C0z6r0.KGK@bunyip.cc.uq.oz.au> walker@s1.elec.uq.oz.au (Steven Walker) writes:
>>I have to write code that accesses memory mapped dual port RAM 
>>on a board connected to an AT bus. Any suggestions on how to do 
>>this in OS/2?
>>Do I need a device driver to allocate and lock the physical memory?
>>Or can I use IOPL levels to access it directly?
>>Thanks for any tips,

Well, this is your lucky day.  A month ago, I asked a similar question and
received enough information to write a generic device driver that I call
labhelp.sys.  You add it to your config.sys, and it implements a device
that lets any Ring 3 program access any physical block of memory, 
unprotected.  

This is clearly a form of unsafe sex.  It bypasses all OS/2 memory
protection and grants ANY protected mode application access to ANY 
physical block of memory.  I am using it currently for accessing memory
mapped A/D converters, and a memory mapped frame buffer.

The driver has been used under both CSET/2 programming and MSC 6.0.

I will make it available for anonymous FTP from 128.84.249.11
(lore.msc.cornell.edu).  Feel free to modify or use as you desire.
(I will make a LABHELP.ZIP file and hang it there tonight.)

> I don't know if or how it will work, but I would caution against building
> a device driver, as it's a grueling example of how evil an operating system
> can be to a programer.

But elegant once it is done!  In the end, it was quite simple.  Most of the
intelligence was put in the user shell running protected.
-- 
Michael O. Thompson            tommy@msc.cornell.edu
Cornell University             (607) 255-4714

OS/2:  For the few, the proud, the devoted!
Newsgroups: comp.os.os2.programmer
From: apoulsen@athena.mit.edu (Andy Poulsen)
Subject: how to make "autoswitch" print driver for NEC model 95 ?
Organization: Massachusetts Institute of Technology
Date: Sat, 23 Jan 1993 03:50:15 GMT

hi,

i've got an NEC silentwriter model 95, which does both postscript 
level 2 and pcl 5 (laserjet 3).  it comes with an autoswitching driver
for dos/windows, but nothing for os2.  i called NEC and got the codes
that are required for mode switching, and have been playing around with
writing an "lpr" program that will autoswitch, but that only works for
files that i've already got on disk.

so my question is:  is it possible to write a program that could be
attached say, to the laserjet 3 driver, which would intercept any job
sent to the laserjet 3, then send the codes to switch to laserjet 3
mode, wait about 15 seconds (for the printer to complete the mode
switch), then print the file(s), and finally switch back to postscript
mode?  this would be very convenient, and i would imagine there are
others who could benefit from such a program....

thanks for any help!

andy

--
andy poulsen                *  apoulsen@athena.mit.edu, andy@huey.jpl.nasa.gov 
MIT mechanical engineering  *  ***********************************************
jpl technical staff         *           "we engineers have a saying:    
(617) 227-7655              *        we may be dumb, but we're slow..."
Newsgroups: comp.os.os2.programmer
From: wcn@cs.brown.edu (Wen-Chun Ni)
Subject: Re: Does OS/2 support Memory Mapped Files ?
Organization: Brown University Department of Computer Science
Date: Tue, 26 Jan 1993 07:15:21 GMT

In article <1993Jan26.055912.20063@netcom.com> ljensen@netcom.com (Colin Jensen) writes:
>In article <727805912rommel.root@jonas.gold.sub.org> rommel@jonas.gold.sub.org (Kai Uwe Rommel) writes:
>>In article <1jo2g2INNs9e@neuro.usc.edu> merlin@neuro.usc.edu (merlin) writes:
>>>Does OS/2 2.1 beta support memory mapped files for user processes?
>>
>>Not as far as I know.
>
>I thought that the PAG_GUARD allocation flag of the DosAllocMem
>function in conjunction with XCPT_GUARD_PAGE_VIOLATION exception is
>sufficient support to write a user-mode memory mapped file.
>
>Am I wrong?

I think the original question points to the so-called Berkeley mmap().
OS/2 itself might be supporting the SYSV version of shared memory,
but I am not so sure. As for mmap, a general call would be

     mmap(address, lengnth, protection, flags, fd, offset)

You can map the file fd into physical memory address in this way.

Since every physical device in Unix is in /dev and is described
as a file, the method becomes very general and powerful. I believe
that the memory management mechanism in OS/2 does not support such
a call, currently.


Wen-Chun Ni, wcn@cs.brown.edu
-------------------------------------------------------------------
  "Great spirits have always encountered violent opposition 
	from mediocre minds..."    -- Albert Einstein
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: Shareware 32-bit OS/2 compilers?
Date: 21 Jan 93 15:44:21 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <1993Jan20.014721.5089@wkuvx1.bitnet> haydedr@wkuvx1.bitnet (Ross Hayden) writes:
>Where can I locate a shareware compiler for 32-bit OS/2?  It's not
>necessary that it use the workplace shell, but I would like it to run
>in an OS/2 window.

Download either the EMX/GCC or GCC/2 compilers from ftp-os2.nmsu.edu.
Note that these are big!  EMX/GCC seems to be the more powerful (and
popular) of the two these days.  Note also that to write PM code,
IBM's devloper's Toolkit/2 will be very useful, if not necessary.

The compilers include the headers and libraries you need for PM code,
and OS/2 comes with RC.EXE, LINK386.EXE, and the icon editor, but the
toolkit also gives you the font editor, dialog box editor, IPFC (help
file compiler), a few other useful utilities, lots of on-line
documentation, and lots of examples. 

>I've heard about DJGPP.  Is this what I need?  And if it is, then is
>this _all_ I need (no add-in libs, etc).

DJGPP is an extended DOS port of GCC.  The two packages I quoted are
native 32-bit ports of it.  Note that none of these can produce 16-bit
code, so 16-bit executables (OS/2 1.x and bound-for-DOS code) will not
be produceable with either of these.
-- 
  |)  David Charlap          | .signature confiscated by FBI due to
 /|_  dic5340@hertz.njit.edu | an ongoing investigation into the
((|,)                        | source of these .signature virusses
 ~|~
From: rvaniwaa@copper.denver.colorado.edu (Ronald J. Vaniwaarden)
Newsgroups: comp.os.os2.programmer
Subject: EPM macros for EMX
Date: 23 Jan 93 23:25:21 GMT
Organization: University of Colorado at Denver

Has anyone written some macros to interact between EPM and EMX.  I have 
been using EMACS as my "ide" for EMX but was interested in trying the EPM if
it has a similar package for C/C++ and going from error to error.

--Ronald Van Iwaarden
From: ochealth@unixg.ubc.ca (ochealth)
Newsgroups: comp.os.os2.programmer
Subject: Re: Problem with GCC 0.8f
Date: 25 Jan 1993 04:53:31 GMT
Organization: University of British Columbia, Vancouver, B.C., Canada
NNTP-Posting-Host: unixg.ubc.ca
Keywords: GCC

In article <1jv5rlINNbg8@access.usask.ca> lowey@jester.usask.ca (CrazyMan) writes:
:Hi,
:
:I'm using the EMX 0.8f gcc compiler.  I'm currently porting a program
:that converts ZyXEL modem voice file formats to and from Soundblaster
:VOC formats. The program is converted, but I want to distribute it as
:a stand alone program, not requiring the EMX*.DLL files.  (When it is
:done, I'll put it on the FTP site listed below with the MS-DOS versin
:that is already there)

please don't. OS/2 uses DLLs for a reason. Static linking just creates a
lot of redundant, disk hogging code, that can never have bugs in the 
library fixed without distributing the whole program again.

Anybody using free software should have the EMX DLLs anyway.
:
:When I say:
:
:gcc -o vcnvt.exe vcnvt.c
:
:everything works fine.  However, when I add the -Zomf -Zsys options, I 
:get the following:
:
:======================================================================
:[C:\kevin\src\zyxel]gcc -o vcnvt.exe vcnvt.c  -Zomf -Zsys
:
:c:\emx\lib\crt0.obj(crt0.obj) : error L2029: '_entry2' : unresolved external
:
:LINK386 : warning L4071: application type not specified; assuming WINDOWCOMPAT
:
:There was 1 error detected
:======================================================================
:
:I tried using "emxomf" to convert the crt0.o file to a new crt0.obj, but I
:don't think I was using it correctly.  I tried:
:
:emxomf -o crt0.obj crt0.o
:
:I read something in the docs about the "crt0" requires the -m option.
:Unfortunately, the -m option requires a symbol.  I tried using
:_entry2, but that didn't solve the problem.
:
:Does anyone have any suggestions?

RTFM!!!!


run omf??.cmd in the lib directory to create the .lib files. EMX f doesn't
ship with .lib files, because they are just converted from the .a libraries.
:
:Thanks
:- Kevin Lowey (Lowey@Sask.USask.CA)
:>>>>> Anonymous FTP to FTP.USASK.CA for DOS, OS/2, and Windows programs <<<<<


-- 
______________________________________________________________________________
ochealth@unixg.ubc.ca
From: bfoley@garnet.berkeley.edu (brian foley)
Newsgroups: comp.os.os2.programmer
Subject: Re: Good Book for OS/2 Programming
Date: 28 Jan 1993 05:20:05 GMT
Organization: University of California, Berkeley
Distribution: na
NNTP-Posting-Host: garnet.berkeley.edu
Summary: New book out on OS/2 2.0 programming

In article <C1HJL7.9IB@ecf.toronto.edu> weisber@ecf.toronto.edu (WEISBERG ELLIOT) writes:
>What is a good book for programming OS/2??  I saw the Microsoft
>book titled Notebook or something, but it looked like it did not 
>have much substance.  Thanks.
>
There is a new book by Herb Schildt just hitting bookstores now.
It's called "OS/2 2.0 Programming," and it's probably worth a look.

Also, "Programming the OS/2 Presentation Manager" by C. Petzold, and
"Advanced OS/2 Programming" by Ray Duncan are both extremely useful,
despite being slightly dated.

Luck-
W. Brimley 					"It's the right thing to do."


Newsgroups: comp.os.os2.programmer