HDTenEightyP/NetNews huggingface dataset:
From: murrayk@prism.CS.ORST.EDU (the Dodger)
Newsgroups: comp.os.os2.programmer
Subject: VioSetState parameter question
Date: 6 Nov 92 08:10:33 GMT
Article-I.D.: flop.1dd99pINNjml
Distribution: world
Organization: Oregon State University, Computer Science Dept.
NNTP-Posting-Host: prism.cs.orst.edu

I'm trying to modify the values of the VGA's DAC registers but I'm having
no luck. I first tried directly manipulating them via _outp's and that
worked a little. But it didn't affect all of the DACs for some reason. And
I'm sure I was writing to all 768 of them. So I decided to try to do it the
nice way. Of course, I have no documentation except for the header files and
I discovered a real problem. The VioSetState call can take 6 different
structures in it's first parameter, 4 of which are the same size? There is
an element of the structure labeled Type. I suppose that this element tells
OS/2 which structure it is getting, but I have no idea what to set this to
for OS/2 to realize that I am sending it a VIOCOLORREG structure. 

HOW DO I DO THIS?

Sorry about the yelling, but I really would like to be able to find some
docs on this stuff. The book supply in my are totally SUCKS.

Thanks for the help

Keith

-- 
                              ____          _____  ____
Keith Murray                 /     /___/ /\ \    \ \____    P.O. Box 1889
murrayk@prism.cs.orst.edu   /___  /   / /__\ \____\ ____\   Corvallis OR 97339
   the Dodger                  s  o  f  t  w\ a  r  e
From: bab@se39.wg2.waii.com (Brian Button)
Newsgroups: comp.os.os2.programmer
Subject: Comparison of Petzold book w/ Knight??
Date: 5 Nov 92 17:43:53 GMT
Organization: Western Geophysical Exploration Products

I just got the "Learning to Program OS/2 2.0 PM by Example" book by
Knight, and I'm questioning its worth. It seems to be pretty thin, and
merely to touch on a bunch of PM topics.

Would the Petzold book be a better place to start learning PM
programming? This book is much larger, and seems to cover stuff in
much more detail. Its only drawback is that it is written for V1.1.

Since it is written for the old 16-bit API, is it still applicable to
the current OS incarnation? And is Petzold comptemplating writing a
new version of this book?

Thanks in advance,

bab
--
|-----------------------|----------------------------------------------------|
| Brian Button          | email : button@wg2.waii.com                        |
| Design Engineer       |         71023.276@compuserve.com                   |
| Western Geophysical   | voice : (713)964-6221                              |
| 3600 Briarpark        |----------------------------------------------------|
| Houston, Texas  77042 |                  Opinions Be Mine!!                |
|-----------------------|----------------------------------------------------|
From: rkobenter@galaxy.gov.bc.ca
Newsgroups: comp.os.os2.programmer
Subject: y
Date: 9 Nov 92 16:19:54 -0800
Organization: BC Systems Corporation

Hi! I have a question for EVRYONE who is using the JPI/clarion C/C++
compiler for OS/2 v. 3.0x.. 

can you please take a minute and eMAIL me direct at :

RWKOBENT@BCSC02.gov.bc.ca

I'd like to get in (eMAIL) contact with you...

my particular interest is in a problem I am having in the BSEDOS
functions library.

Thank you in advance ....

robert kobenter
Victoria BC Canada

rwkobent@bcsc02.gov.bc.ca
-or-
robert@softwords.bc.ca
----------------------------------------------------------------------------

Newsgroups: comp.os.os2.programmer
From: sip1@ellis.uchicago.edu (Timothy F. Sipples)
Subject: Re: Writing trivial device drivers - documentation? help?????
Reply-To: sip1@midway.uchicago.edu
Organization: Dept. of Econ., Univ. of Chicago
Date: Sat, 14 Nov 1992 01:48:37 GMT

In article <1992Nov13.134948.17625@panix.com> os2man@panix.com (Larry Salomon Jr.) writes:
>I highly recommend Steve Mastrianni's book on device driver programming and
>the accompanying DevHlp library (which you - unfortunately - have to purchase
>separately).  Steve can be contacted via mcimail at 5099225@mcimail.com .

Maybe not.  Apparently the disk is now available from the OS/2
Shareware BBS and soon (if not already) ftp-os2.nmsu.edu.  I hope the
distribution is legal.

-- 
Timothy F. Sipples      | Read the OS/2 FAQ List 2.0g, available from
sip1@ellis.uchicago.edu | 128.123.35.151, anonymous ftp, in /pub/os2/all/info
Dept. of Econ., Univ.   | /faq, or from LISTSERV@BLEKUL11.BITNET (send "HELP")
of Chicago, 60637       | [Read the List, THEN post to ONE OS/2 newsgroup.]
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: gcc/2 (not emx)
Date: 5 Nov 92 21:58:21 GMT
Distribution: comp.os.os2.programmer
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <RUGGIERO.92Nov4125638@antwrp.antwrp.gsfc.nasa.gov> ruggiero@antwrp.antwrp.gsfc.nasa.gov (Knic) writes:
>
>	I am having problems getting gcc 2.2.2 to work.  whenever i link
>the samples (hello world) i get a myriad of unreolved externals.  I am a novice
>at OS2 programming and maybe the installation was done wrong, but it seemed 
>that the instructions were simple and direct i was sure to keep the /'s and 
>\'s correct.  I also installed GNUMAKE to use for compiling i think it works.
>I wouldn't be asking but the documentation was in Tex(?) format and
>not very easy to browse.  Any help would be much appreciated. 

Be sure to link with gcc.lib and os2.lib.  I don't know if gcc
generates object code that automatically references them.


-- 
David Charlap         |"there aren't 50,000 things for which it's worth writing
dic5340@hertz.njit.edu| software; and the computer industry doesn't have enough
----------------------+ programmers to create that much good software.
Therefore, most of it must be worthless" -- Boris Beizer "The Frozen Keyboard"
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: screen blanker?
Date: 5 Nov 92 21:55:28 GMT
Distribution: comp
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <1992Nov4.4882.6564@dosgate> "gord armstrong" <gord.armstrong@canrem.com> writes:
>
>- what's the best method to blank the screen? VioPopUp is only
>  good for text modes...I also seem to have problems when using
>  the DosMonRead/DosMonWrite functions?

Well, you could make it a text app, and have it force its session to
the foreground.  But that may suspend some apps, especially DOS ones.

I think there is a video IOCTL you can send which will just turn off
the screen.  Perhaps by setting all the palette registers to zero.
This might work.

>- I can't seem to pass arguments when using 'detach'.
>  ie. detach blanker 3 - (for 3 minutes) returns to the prompt,
>                         no action is ever taken?

Use start, not detach.  Your screen blanker generaes output, and I
don't think detach will work with such a program.  If you app is a
text-mode app, it will get a window, which can be hidden.  If it's a
PM app, it will not show any output until you create windows, so it
can run hidden if you want.



-- 
David Charlap         |"there aren't 50,000 things for which it's worth writing
dic5340@hertz.njit.edu| software; and the computer industry doesn't have enough
----------------------+ programmers to create that much good software.
Therefore, most of it must be worthless" -- Boris Beizer "The Frozen Keyboard"
Newsgroups: comp.os.os2.programmer
From: PNIELSEN@finabo.abo.fi (Peter Nielsen)
Subject: Overriding system colors (Using 256 distinct colors)
Organization: Abo Akademi University, Finland
Date: Sun, 8 Nov 1992 19:52:36 GMT
X-News-Reader: VMS NEWS 1.23

Subject: Using all colors in a 256-color palette (Overriding system colors)

In OS/2 v1.3 I have used this code, which works well:

	GpiCreateLogColorTable (hpsMemory, LCOL_REALIZABLE, LCOLF_CONSECRGB, 
	                        0L, 256L, (PULONG)&pal[0]);
	GpiRealizeColorTable (hpsMemory);

Since OS/2 v2.0 does not provide the GpiRealizeColorTable function I have tried 
to use the GpiCreatePalette function with the LCOL_OVERRIDE_DEFAULT_COLORS 
option. This option causes GpiCreatePalette to return the error message 
PMERR_INV_COLOR_OPTIONS. This is the v2.0 code:

	hpal = GpiCreatePalette (hab, LCOL_OVERRIDE_DEFAULT_COLORS, 
	                         LCOLF_CONSECRGB, 256L, (PULONG)ppal);
	GpiSelectPalette (hpsMemory, hpal);
	WinRealizePalette (hwnd, hpsMemory, &numcol);

What am I doing wrong ? I am grateful if someone could provide a solution to
this problem. I use an XGA display adapter.

Peter Nielsen

EMAIL: pnielsen@ra.abo.fi
Newsgroups: comp.os.os2.programmer
From: tommy@msc.cornell.edu (Mike Thompson)
Subject: How to access physical memory addresses
Organization: Cornell-Materials-Science-Center
Date: Mon, 9 Nov 1992 16:50:15 GMT

I unfortunately bought a digitial I/O board which memory maps the chips rather
than mapping them to I/O ports.  Consequently, I need to create a pointer to
a specific physical memory address.

Need:     Create a pointer to physical memory location 0x0CD400.
Compiler: MSC 6.1 (also curious how to do with IBM CSET/2)

Does anyone know how to create a pointer to a physical address in MSC 6.1.
There is the MAKEP(seg,adr) function, but do I suspect the seg is a logical
segment rather than a physical segment.  Also, how do I tell the operating
system to let me bash away at low memory from my protected mode program.  Is
there an equivalent of config.sys command and .def specification for port
access?

Thanks.  e-mail replies to tommy@msc.cornell.edu or post to this group.
Newsgroups: comp.os.os2.programmer
From: harris@garfield.catt.ncsu.edu (Michael Harris)
Subject: Re: What calls are 32-bits in OS/2 2.0?
Organization: North Carolina State University
Date: Fri, 13 Nov 1992 02:03:23 GMT

bbm@po.CWRU.Edu (Brian B. Mathewson) writes:

>Are the Kbd and Mou functions have 32-bit counterparts?
>(e.g. can you call them from 32-bit segments, and pass 32-bit
>pointers instead of segment then offset...)

The Kbd and Mou functions (like the Vio functions) are also 16 bit.
Keep in mind that if you are using C-Set/2 you don't need to worry about this.
Just use the Kbd16, Mou16, etc function calls and C-Set/2 will perform the 32
bit to 16 bit conversions for you.

>Are the Gpi and Win functions 32-bits?
>Is the SOM 32-bit?

Yes.
______________________________________________________________________________
     Michael Harris - harris@catt.ncsu.edu or harris@carvm3.vnet.ibm.com
 System Administrator, Computer & Technologies Theme Program, NC State Univ.
(My opinions are my own and do not represent those of NCSU or IBM Corporation)
Newsgroups: comp.os.os2.programmer
From: jedwards@ms.uky.edu (Jonathan Edwards)
Subject: Re: IBM Developer's Workset/2 - who knows what's in it?
Keywords: info wanted - detailed if possible!
Organization: University Of Kentucky, Dept. of Math Sciences
Date: Fri, 13 Nov 1992 22:33:49 GMT

cheetham@bcarh774.bnr.ca (Rob Cheetham) writes:

>  Has anyone here got the IBM Developer's Workset/2 package
>(#10G2995), the one that's on special until April something-
>or-other? The price differene here in Canada is pretty steep, 
>so if this is a good package I'd like to get it while
>the deal's on (reg. $1095, now $445 - to my best remembrance,
>so put the flamethrowers down...).

>  Obviously it must contain the C Set/2 compiler, but exactly what 
>else is in it? Does it have the online API documentation and all that? 
>Has anyone used it, and what were their impressions?

Workset = Toolkit (doc, .h files, etc.) + WorkFrame (integrating window
for tools, I think) + (I assume) C Set/2...
From: I18BC@CUNYVM.BITNET (CUNY/Spartacus)
Newsgroups: comp.os.os2.programmer
Subject: Q about New CSD & CD Dev Software.
Date: 31 Oct 92 02:59:20 GMT
Organization: City University of New York/ University Computer Center

Folks,

    I finally finished ftping the new CSDs.  Before I go ahead and
reinstall GA (had the floppy beta version running, still didn't
install the pdk cd yet) then the CSDs.  Should I expect problems with
the new CSD level and the beta development software on the pdk-cd?

I've noticed the new CSDs only contain the 32bit GRE and not the Win3.1.
I suppose another CSD will be out later with the Win3.1, should I stick
with the beta 2.00.01?

BTW - Win3.1 isn't a problem for me now so I can live without it until
Win3.1 CSDs come out.
-------
------------------------------+      All The Best,
Reply To:                     |
     I18BC@CunyVM.Cuny.Edu    |      Edward Galarza,
     I18BC@CunyVM.BitNet      |      Brooklyn College Of The
     IRC: Spartacus           |      City University Of New York
------------------------------+      "Que viva el OS/2!"
Organization: Sophomore, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA
Newsgroups: comp.os.os2.programmer,comp.os.os2.misc
Date: Thu,  5 Nov 1992 21:08:51 -0500 
From: Carl B Jabido <cj00+@andrew.cmu.edu>
Subject: Kill by name?

Hi, I'm looking for a program which would let you kill a process by
name, and not by PID.  I think I remember something like this.  Example:
if a program test.exe was running, then typing "kill test" would kill
it.  I know of programs which do it by PID, but I need something that
does it by name, because I want to use it in a REXX script which would
not have input.  I want it to kill the same program every time, and
because the PID changes, I can't do it with the kill PID procedures.
If anyone knows anything about this, please email info to me!  Thanks!

Better yet, if anyone knows how to do this in REXX, ie, a builtin REXX
procedure or function, that would be even better!

Thanks again for any pointers, tips, info, etc.

Carl Jabido
cj00@andrew.cmu.edu
Newsgroups: comp.os.os2.programmer
From: linstee@dutecaj.et.tudelft.nl (Erik van Linstee)
Subject: Re: problem with gcc -Zomf
Organization: Delft University of Technology, Dept. of Electrical Engineering
Date: Fri, 06 Nov 1992 21:21:57 GMT

linstee@dutecaj.et.tudelft.nl (Erik van Linstee) writes:

>Today I tried to recompile several apps, using -Zomf and -Zmt
>to reduce executable size. However, I  got errors that are
>not there when compiling without those options.

[stuff deleted]

>zip (from info-zip) gives:

>        gcc -O2 -m486 -s -o zip.exe zip.def zip.o zipfile.o zipup.o fileio.o uti
>l.o  globals.o deflate.o trees.o bits.o   os2zip.o   -los2 -Zmt
>fileio.o: Undefined symbol _errno referenced from text segment

Forget about the info-zip bit, it is solved. Turns out fileio.c is
compiled twice with different defines, and it declares errno
twice. ld seems to have no problem with that, while link386
does.

Erik



-- 
Erik van Linstee   |   Delft University of Technology   |   I'll be back ... 
----
   We are god, 'cause only we can create the idea of his existence
   in our holy brains...  (Yello)
From: penning@sumax.seattleu.edu (Mat Penning)
Newsgroups: comp.os.os2.programmer
Subject: OO Database for OS/2?
Date: 6 Nov 92 06:49:45 GMT
Article-I.D.: sumax.5657
Organization: Seattle University, Seattle WA

Does anybody out there know of an object-oriented database package for
OS/2 (version 2.0) that includes a good programming interface?
From: lion@dat1hb.north.de (Daniel Tietze)
Newsgroups: comp.os.os2.programmer
Subject: Creating a DLL with GCC 2.2.2
Date: Thu, 05 Nov 92 17:15:38 EST
Organization: DATELINE Communications, Bremen

Hi!
We are currently trying to persuade GCC 2.2.2 (and LINK386, of course) to
produce a DLL (for experimentation reasons with just one function:
DebugMsg() ).
We set up a DEF-File asking LINK386 to EXPORT the function, but this does
not happen. GCC compiles the stuff OK, but LINK386 says:
     function DebugMsg (alias DebugMSG) : undefined export
(or something to that effect).
Now, my question is:
Given a source module OURDLL.CC and a definition file OURDLL.DEF,
with a routine "void DebugMsg()" in OURDLL.CC, how do we combine this stuff
into a DLL with the tools already mentioned?
AND: How do we import it into, say DLLTEST.CC?
What additional information does the definition file need to include, or
rather, is there a switch for GCC like the /Ge- for C SET/2 (to indicate
creation of a DLL)?
Sorry if this seems basic and unknowledgable, after all, we're just starting,
aren't we?

Any information and hints would be greatly appreciated.
                        Daniel Tietze

+------------------------------------------------------------------+
| Daniel Tietze, 2800 Bremen 1,  Tel.(voice) : 0421/448806         |
|-=============- DATELINE Communications, Bremen.  The home of DMS |
| Mail: (private) lion@dat1hb.north.de (univ) E07J@DHBRRZ41.BITNET |
|-====- DMS-Support: dateline@dat1hb.north.de                      |
+------------------------------------------------------------------+
Newsgroups: comp.os.os2.programmer
From: jennings@dlj.enet.dec.com (Dave Jennings -- Digital Equipment Corp.)
Subject: Re: Problems in DOS boxes with link.exe from Microswift (sic)
Organization: Digital Equipment Corporation
Distribution: na
Date: Thu, 12 Nov 1992 15:42:47 GMT


In article <1992Nov12.103855.1752@jetsun.weitek.COM>, maynard@jetsun.weitek.COM (Michael P. Maynard) writes...
>I have recently adopted OS/2 2.x as my development platform.
>I need to use Microsoft's Version 7.0 C/C++ compiler. The 
>compiler compiles, but the linker will not link.  If I simply
>execute the linker from the DOS command line, to wit:
> 
>    c> link
> 
>OS/2 reports that an access violation occurred at 00010224.
>I have applied all known patches (thru version 5.31.009) from
>the Microsoft Developer's CD.  At this point I don't know
>whether link does this under native DOS 5.0 and because of 
>the lack of protection it is overlooked, or whether it is
>just another buggy software release.  
> 
>This seems like I may have overlooked something, perhaps.
>It just doesn't seem like invoking link without command
>line parameters should do this.
> 
>So, I put to you, anyone ... any ideas ?
> 
>puzzled,
> 
>Michael

You need to have the DPMI_? DOS setting in the ENABLED state and not the
default AUTO state.

Works for me.

---
Dave Jennings	-- jennings@dlj.enet.dec.com
---
Newsgroups: comp.os.os2.programmer
From: bhenning@wimsey.bc.ca (Bill Henning)
Subject: CDROM
Organization: BC News and Mail
Date: Tue, 10 Nov 1992 07:37:22 GMT

Hello. Could people who are using CDROM drives with OS/2 2.0 please
e-mail me their drive type & type of SCSI controller? I will summarize
to the net.

(I particularly wish to know about Ultrastor 14F + NEC CDR25 combinations)

bhenning@wimsey.bc.ca
Newsgroups: comp.os.os2.programmer
From: tdukes@eng.auburn.edu (Todd J Dukes)
Subject: How Do You Calculate Menu Height?
Organization: Auburn University Engineering
Date: Wed, 11 Nov 1992 06:07:34 GMT

I am trying to calculate the size of the drawing area in a window. I 
can get the total size, but this seems to include the menu area. I 
thought about subtracting a constant size for the menu but when the user
makes the window narrower the menu may become two or more lines. Is there 
any way to find the current size (verticle height) of a window's menu? 
The only references I saw in the on-line documentation that comes with the 
beta OS/2 developer's toolkit is about returning the menu height in responce 
to a particular message.

Thanks
Todd
tdukes@eng.auburn.edu
Newsgroups: comp.os.os2.programmer
From: os2man@panix.com (Larry Salomon Jr.)
Subject: GNUBISON.ZIP on Hobbes
Date: Thu, 5 Nov 1992 17:46:15 GMT
Organization: PANIX Public Access Unix, NYC

What version of PKZIP was used to compress this file?  I'm using the PKUNZIP2
that comes with OS/2.  It lists the compression method for the component
files as "Unknown".  Any idea what's up?  Do I have an old version of
PKUNZIP2?

Cheers,
Q
-- 
"If you choose not to decide, you  | "A fool and his money are fun to go
 still have made a choice" - Rush  |  out with" - seen on a T-shirt
------------------------------------------------------------------------
From: weberj@dia.informatik.uni-stuttgart.de (Weber)
Newsgroups: comp.os.os2.programmer
Subject: wishes for next release of os/2
Date: 13 Nov 92 13:22:37 GMT
Organization: Informatik, Uni Stuttgart, W.Germany
Originator: weberj@dia

I would like to have in the next release of os/2: 

- ps, kill, jobcontrol as in *IX, especially CTRL-Z
  If a job is finished I'd like something like 'done compress.. '

- within command not only history but also filename completion
  as in tcsh
  There is a utility called dosed for dos that does it. So I often
  use the dos box only for its sake.

- I like the textmode of a vga card better than the 60Hz flicker of the
  graphic modes.
  So I'd like to have the tools that work only within WPS also in textmodes,
  at least tasklist, help, shutdown,...
  Also I fear that the monitor doesn't like the continual mode switching?
 
-- 

Juergen G. Weber
Student am Institut fuer Informatik
Universitaet Stuttgart - Germany
From: car@public.BTR.COM (Carlos Rimola-Sarti  car@btr.com)
Newsgroups: comp.os.os2.programmer
Subject: New Kernel Debugger
Date: 11 Nov 92 19:26:50 GMT
Organization: Connective Strategies, Inc. (CSI).  Mountain View, California


I am sending for the updated Kernel Debugger that will work with systems
that have the service pack installed.  I would like to get it sooner if
possible.  Is it available anywhere?  I looked in software.watson but
no luck.

+---------------------------------------+-----------------------------------+
| Carlos Rimola-Sarti                   |         email: rimola@csisdn.com  |
| Connective Strategies, Inc.           |                      car@btr.com  |
| Mgr. ISDN PRI Connectivity            |         phone:      415-903-2585  |
+---------------------------------------+-----------------------------------+
From: feustel@netcom.com (David Feustel)
Newsgroups: comp.os.os2.programmer
Subject: Re: CSet/2 and port access.
Date: 10 Nov 92 00:29:13 GMT
Organization: DAFCO: OS/2 Software Support & Consulting

francis@vnet.ibm.com (Tim Francis) writes:

>The next beta of C Set/2 includes many new functions, including inp() and
>outp().  It should be available by the "middle of November" (know any
>big computer shows coming up? ;-)     -tim

How do current owners of C Set/2 get the official upgrade (as opposed
to the beta)? Thanks.
-- 
Dave Feustel N9MYI <feustel@netcom.com>
 
Security Classification: *** TOP SECRET ***
Newsgroups: comp.os.os2.programmer,comp.os2.apps
From: Mark Kovarski <kovarski@zooid.guild.org>
Subject: DAP in Canada
Organization: ZOOiD BBS
Date: Fri, 6 Nov 1992 04:57:40 GMT

This is to all Canadian users that are interested to join the IBM OS/2
Developer Assistance Program (DAP). Once joined, you will receive the CD which
will contain the beta OS/2, development tools, and much more. The package is
available free of charge in Canada. No $15 or anything like that. Call
946-3786 and ask for Ken Fadelle. He will send you the CD along with
everything else.

Mark K.

PS: OS/2 has been nominated for the "Product of the Year" award in
    the November issue of Datamation Magazine. You can send your vote
    by mailing a card or send them a message to 3880537@mcimail.com