HDTenEightyP/NetNews huggingface dataset:
From: dataprod@nic.cerf.net (Chuck Benson)
Newsgroups: comp.os.os2.programmer
Subject: Re: TCP/IP and the Workset/2
Date: 10 Nov 92 21:08:12 GMT
Organization: CERFnet

In article <BxIG62.16L@hpuerca.atl.hp.com> aaa@hpuerca.atl.hp.com (Simon Fowler) writes:
>In article <BxCvLD.8s5@nic.umass.edu>, mcrocker@titan.ucc.umass.edu (MATTHEW S CROCKER) writes:
>> 
>> 
>> Does Zortech offer an upgrade to C++ for OS/2  (I have borland C++ 2.0 &
>> Quick C windows)
>
>Currently Symantec (who acquired Zortech) does offer an upgrade to C++. However
>they only have a 16-bit (OS/2 1.3) version at present. You will need a PM SDK to
>use it for OS/2. From my personal experiences, I would go with C Set/2 so that you
>have all that you need.
>
>simon

Symantec has announced and is taking orders for its 32-bit OS/2 2.0 C++
compiler. It is supposed to connect to WF/2 and my understanding is that
it requires the IBM Toolkit. I have ordered one as an upgrade from the
older DOS-Windows-OS/2 1.3 version. I haven't seen it yet, so can't
recommend it, but I am hopeful. I have the IBM C Set/2, a solid product
with exceptional support (at least so far!). If you want a comparison
before buying, I am afraid you may have to wait a bit.

Information is available by calling Symantec. I don't have the number
handy, but their customer service is at 800-441-7234. There is a limited
time, intro offer that requires a form that they will fax you.

I like C++, also, but the classes to make the user interface easy appear
to be a large job.

I am not connected with Symantec (except as a customer)

-- 
=====================================================================
| Chuck Benson | cbenson@dpc.com | (818)887-8173 | Mgr Engr Computer |
| All opinions are my own unless otherwise stated| Systems           |
================================================== Dataproducts      |
From: serls@dashs.denver.co.us (Dave Serls)
Newsgroups: comp.os.os2.programmer
Subject: Re: ASK: How to send a character to serial port from OS/2 pro
Date: 13 Nov 92 13:17:12 GMT
Article-I.D.: dashs.721660632snx
Distribution: world
Organization: Sorry Software

tranx@wl.aecl.ca writes in article <11NOV92.15133100@wl.aecl.ca>:
>
> A: I tried to write a program to communicate with my instrument through
>    a serial port(eg. COM1). I have C Set/ 2 and Work Frame but I couldn't
>    find a system call that allows me to "open COM1: for example" and return
>    a handle. So that I can use this handle to send a character to this serial
>    port. Would you like to help me out?
>
There is a control program call DosOpen which allows one to open a COM
port. It is opened more or less like a file.  You may also need to call
DosDevIOCtl to condition to port to your requirements.  It may also be
beneficial to put the DosRead/DosWrite code in separate threads to
allow the rest of your program to process while the COM port code
is blocked on a read.

The Ray Duncan book 'Advanced OS/2 Programming' ISBN: 1-55615-045-8,
altough written fro OS/2 1.x, still contains valuable and valid
examples in this area.

--
============================================================================
Dave Serls                                                 303-973-6120
serls@dashs.denver.co.us                                   Sorry Software
============================================================================
From: oliver@coombs.anu.edu.au (Oliver White)
Newsgroups: comp.os.os2.programmer
Subject: Classic OS/2 error message
Date: 8 Nov 92 02:00:48 GMT
Organization: Australian National University
NNTP-Posting-Host: 150.203.76.2

This is a real error message I got in its own beautiful little pop-up from the
most advanced operating system ever to run on the PC, when I was running
selective install with the new SVGA display option after installing the CSD:

   Display Driver Install is not
   configured to install %s.

I thought it was funny...

 - Oliver.
From: murrayk@prism.CS.ORST.EDU (the Dodger)
Newsgroups: comp.os.os2.programmer
Subject: No assembler with CSet/2?
Date: 7 Nov 92 19:19:54 GMT
Organization: Oregon State University, Computer Science Dept.
NNTP-Posting-Host: prism.cs.orst.edu

I just installed CSet/2 and the Toolkit and Workframe from the DAP CD and
I noticed that it does not come with an assembler. What is the reasone for
this? I need to write a lot of routines in assembler, because CSet/2 provides
no access to hardware ports. This can easily be accomplished via assembly
language, but now I will have to write all the .asm stuff for TASM and assemble
it all under dos.

I would like to tell the Workframe to use TASM to assemble files, but I can
find no way to do this. All it will let me change is the definition for the
C compiler.

Other than the lack of an assembler, I really like this setup.

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: os2man@panix.com (Larry Salomon Jr.)
Newsgroups: comp.os.os2.programmer
Subject: Libraries for C-Set/2
Date: 6 Nov 92 22:13:30 GMT
Organization: PANIX Public Access Unix, NYC

I have an application that I would like to port to IBM C-Set/2.  Due to the
current set-up of my makefile, I compile each of the individual modules
separately and then link them together in a separate step.

I got my copy of IBM C-Set/2 from the CD-ROM passed out when I attended the
Developer's Conference (in NY) and for the life of me, I can't find the 
default libraries in the on-line info to save my life.

Granted, I probably could let the compiler generate the default libraries
to be linked in the object files, but right now I would not like to do this,
so that I know *exactly* what is being linked with what (for debugging
purposes).

Can anyone tell me what the various libraries in \IBMC\LIB are for (Dave
Mooney?)?

Mini-tanks,
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: tonyk@ccs.northeastern.edu (Antoun Kanawati)
Newsgroups: comp.os.os2.programmer
Subject: Question: Get process size under OS/2 2.0?
Date: 8 Nov 92 15:33:03 GMT
Reply-To: tonyk@ontos.com
Organization: College of CS, Northeastern U

While testing a large number of interacting programs (a daemon, clients and
servers), I am persistenly faced with unbounded swap file growth, even when
all other known resource utilizations are known to be constant.

Futhermore, the conditions inducing the growth require the interaction of
several programs, thus leaving me in the dark about which process is growing
the swap file.

Knowing that swap file size is related to process size(s), I wanted to
instrument the programs to measure their process sizes at chosen points to
narrow my search for the monumental memory leak.

Note that swap file size differentials around calls are not accurate, since
the swap file is affected globally, and a growth during a call to foo() could
be easily caused by another process (e.g.: let foo() be a remote procedure
stub).

Finally, I have stumbled across DosQueryMem(), but was not lucky enough to
figure out how it works if I wanted to measure heap space.  Some results
appear related to static space size, and to code size; however, experiments
with the heap were not very useful.

Please copy your reply to tonyk@ontos.com;

-- 
Antoun (Tony) Kanawati	| Ontos, Inc.		 | +----------------------+
tonyk@ontos.com		| Three Burlington Woods | |    SPACE FOR RENT    |
uunet!uupsi!ontos!tonyk	| Burlington, MA 01803	 | |                      |
tonyk@{corwin|flora}.ccs.northeastern.edu	 | +----------------------+
Newsgroups: comp.os.os2.programmer
From: luca@dedalo.unipg.it (Luca Priorelli)
Subject: Re: RPC client/server application in a mixed environment ?
Organization: Universita' di Perugia
Date: Thu, 12 Nov 1992 09:39:36 GMT

ernst@opal.cs.tu-berlin.de (Ernst Kloecker) writes:

>Hi,

>we are in the process of implementing a client-server application using
>OS/2 1.3 at the moment, but we will move to OS/2 2.x soon. The server
>is supposed to be running on a OS/2 machine with several OS/2, DOS/Windows
>and Unix clients accessing the server functions via RPC.

>Has anybody done something like that before and can recommend books/articles
>on RPC programming in a mixed environment ? Is the mixed environment
>idea feasible in the first place ?

Sure, it is feasible. I don't know any book. There are some RFC (1057 and
1014) on the RPC protocol as implemeted by Sun. Your mixed environment
does not constitute a problem (you can find Sun RPC in any
of the platforms you indicated).

>What kind of RPC libraries are available for OS/2 1.3 and OS/2 2.0 ? On
>which communication protocols is the RPC mechanism based ? TCP/IP ?

I have IBM TCP/IP for OS/2 Toolkit. It contains the Sun RPC programming
tools and libraries and also Apollo's NCS (Network Computing System).
There are also RPC implementations not based on TPC/IP: for instance
Netwise RPC which can also run over SNA and connect IBM mainframes.

>If it is TCP/IP, would it still be possible to connect the OS/2 server to
>a Netware network which uses IPX/SPX as the underlying protocol ?

No problem. Clients can run both protocols at the same time. If you 
want to implement RPC on the Netware server there is a Novell product
called Netware RPC (but I think it is not compatible with others RPC
implementations).


>Thanks for any info, Ernst.
>--

Bye.

Luca Priorelli
Newsgroups: comp.os.os2.programmer
From: sip1@ellis.uchicago.edu (Timothy F. Sipples)
Subject: Re: Third try: timing the run time of algorithms PLEASE HELP!!!!
Reply-To: sip1@midway.uchicago.edu
Organization: Dept. of Econ., Univ. of Chicago
Date: Sat, 14 Nov 1992 01:49:10 GMT

In article <4364@copper.Denver.Colorado.EDU> rvaniwaa@copper.denver.colorado.edu (Ronald J. Vaniwaarden) writes:
>Well, this will be my third try for help on this topic.  What I need
>to do is get the actual CPU time for an algorithm.  The clock() call
>that is in gcc gives the real time between calls and I need the actual
>cpu time.  From a few sources, I have determined that OS/2 does keep
>track of the processor time on a thread by thread basis (see The
>Design of OS/2 for reference).  Since it is kept track of, I think
>there must be a way of accessing it.  Are there any IBMers out there
>who can help with some system call that will give this to me???  If
>I cannot find this, I will have to switch over to DOS to compile, run,
>and time my programs.  PLEASE SAVE ME FROM THIS FATE!!!!!!!!!!!!!!!

Funny you should ask...

IBM's SPM/2 2.0 (System Performance Monitor) was just released, and it
may be what you are looking for.  Ask about it.

-- 
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.]
Newsgroups: comp.os.os2.programmer,comp.os.os2.apps
From: kumarad@ecf.toronto.edu (KUMARADAS JOSEPH CARL)
Subject: OS/2 CD and ATI Utlra ?'s
Organization: University of Toronto, Engineering Computing Facility
Date: Tue, 10 Nov 1992 06:15:02 GMT

Is the OS/2 CD package still available in Canada.  If so how do 
I go about getting it?  Does the Sony CD ROM drive talked about
here work with OS/2?

Does the new ATI Ultra+ driver support palette management?  I don't
care about seamless windows, but I need 32 bit graphics and 
palette management.

Thank you in advance for your help.

Carl.
Newsgroups: comp.os.os2.programmer
From: maynard@jetsun.weitek.COM (Michael P. Maynard)
Subject: Problems in DOS boxes with link.exe from Microswift (sic)
Followup-To: maynard@weitek.com
Summary: link.exe causes gpfaults
Keywords: misbehaved, erratic, problematic
Organization: WEITEK Corporation, Sunnyvale CA
Distribution: na
Date: Thu, 12 Nov 92 10:38:55 GMT

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

-- 

Michael Maynard                         maynard@weitek.com (work)
WEITEK CORPORATION			maynard@ease.weitek.com (home)
Advanced Development Group		(408) 522-7547 (voice)
From: d9mikael@dtek.chalmers.se (Mikael Wahlgren)
Newsgroups: comp.os.os2.programmer
Subject: Compression routines
Date: 8 Nov 92 14:55:22 GMT
Organization: Chalmers University of Technology, Gothenburg Sweden

I am looking for good copression/decompression routines.  What I want is
two functions like:

Compress(address, resultbufaddr, len) : resultlen
DeComprss(adress, resultbufaddr, len) : resultlen

Source code would be nice, but not necessary (but it must be possible to
use the routines either free or licensing them).  Anyone know where
to look for this?

Mikael Wahlgren
From: marten@feki.toppoint.de (Marten Feldtmann)
Newsgroups: comp.os.os2.programmer
Subject: Re: OS/2 memory management (ARGH!)
Date: Thu, 12 Nov 92 09:12:18 GMT
Organization: Private OS/2 System

In article <1b68f11e@p11.f9.n242.z2.fidonet.org> Roman_Grzondziel@freax.fido.de (Roman Grzondziel) writes:

>Now watch what is happening with your memory! After few clicks the
>system has only 512 kb free store left and begins to expand the swap file.
>It seems like you can fill up any partition (no matter how large) this
>way :) The memory is being freed but not before I quit the application.

 I found this too! On my computer I found another strange thing with the
memory of OS/2. My computer has 16MB, starting Beta-OS/2 (clock.exe,
alarm.exe and bitfax.exe as background programs) just leaves 4MB
(printed by memsiz) to my applications -- well, where is the memory?

 Playing the game with e.exe, you mentioned above and leaving e.exe
results in "Available memory: 8 MB".

 A question:  why are there always 512 KB available ?

 MF

--
Marten Feldtmann,     Kieler Str. 29,       2300 Kiel 14,    Germany
E-Mail: marten@tpki.toppoint.de, FAX possible
Newsgroups: comp.os.os2.programmer
From: ihz@cmutual.com.au (Ian Holsman)
Subject: Re: CD Dev. Tools installed, now what?
Organization: Colonial Mutual Group 
Date: Thu, 5 Nov 1992 07:27:09 GMT

From article <1d69gsINNctb@uwm.edu>, by tanith@csd4.csd.uwm.edu (Michael D Kretzer):
> From article <joiner.720806683@myria>, by joiner@myria.cs.umn.edu (Jay K. Joiner):
>> In <1992Nov2.225319.1@ulkyvx.louisville.edu> wlrobe01@ulkyvx.louisville.edu writes:
>> 
>>> 1.  What do I do to get started?  I mean, for never having programmed 
>>>     for OS/2 before (just DOS), should I print out all the .INF files
>>>     and read them, or do I go out and find a OS/2 programming book, both,
>>>     neither, etc..?
>> 
There is a book called 'Client/Server Programming for OS/2 2.0' which goes
assumes no knowledge of OS2 and goes through and explains system specific
things like Pipes, semaphores, threads vs Processes.  
It is mainly with a 'client/server' theme ( obviously ) but it is teaching
me the basics of OS/2. It goes into PM as well, but seems to like the VIO
calls from OS/2 1.x

Ian
-- 
Ian Holsman                                  email: IHolsman@cmutual.com.au
Application Programmer.                      phone: +61-3-6076369
Colonial Mutual Life Aust. (ACN 004021809)   fax  : +61-3-6076545
Organization: Ryerson Polytechnical Institute
Distribution: na
Date: Thursday, 5 Nov 1992 14:37:45 EST
From: <EENG6826@RyeVm.Ryerson.Ca>
Newsgroups: comp.os.os2.programmer
Subject: .INF file format ?

Whats the file format for .INF files ? I know it puts all the words at
the top of the file and then it keeps pointers to them but I don't
know anything else :-{

Also where is the .INF creator that its suppose to be on the PDK CD-ROM ?
Which directory is it on ?

Carlos Varela
Newsgroups: comp.os.os2.programmer
From: giguere@csg.uwaterloo.ca (Eric Giguere)
Subject: Re: Static variables in DLL's == shared memory ???
Organization: Computer Systems Group, University of Waterloo
Date: Thu, 12 Nov 1992 02:50:34 GMT

In article <1992Nov11.192049.14742@ans.net> db3l@ans.net (David Bolen) writes:
>It depends on how you define your DATA segments in your linker
>definition file.  If you defined them as shared, then yes, all
>processes using the DLL will see the same static storage.  If you
>define it as nonshared (more typical) than each process will get it's
>own copy.
>
>Having them all share static data space can prove very convenient in
>some cases, but you do have to be careful.

And as a further note:  a DLL with shared dataspace can be an easy
way to store data that is to be shared among two or more processes
without going through the trouble of using shared memory.  Just don't
forget to use semaphores to control access to the data....

-- 
 Eric Giguere                                    giguere@csg.UWaterloo.CA
          So is Windows NT short for "Windows, NOT?"  
Newsgroups: comp.os.os2.programmer
From: 890560p@dragon.acadiau.ca (Trevor Porter)
Subject: Re: C/Set 2 problems ... cannot find OS2386.LIB ...
Organization: Acadia University
Date: Mon, 9 Nov 1992 14:18:56 GMT

skagos@hercules.cs.uregina.ca (P. Takis Skagos) writes:

>I've been working with the IBM C-Set/2 compiler for the past couple of
>days and I think that it is just great.  Unfortunately I am having a bit
>of a problem when I try to link a file statically.  The linker requires
>the library "OS2386.LIB", which doesn't exist.  Where is this file and
>why wasn't it installed?  The sample programs included with C-Set/2
>hae .CMD that link both statically and dynamically.  All the dynamic
>linking works (it also requires OS2386.LIB) but the static linking
>doesn't.  Any help or information would be greatly appreciated.  Thanks!

>  P. Takis Skagos
>  (skagos@cs.uregina.ca)

OS2386.LIB is included in the IBM Toolkit.  I don't know why it wasn't included
with C Set/2.

-- 
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_                               Trevor Porter    	890560p@dragon.acadiau.ca                               Acadia University                                                               Wolfville, NS, Canada                                                           -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
From: ksanthan@garnet.berkeley.edu (Kumaran Santhanam)
Newsgroups: comp.os.os2.programmer
Subject: WIN-OS/2 3.1 CSD?
Date: 10 Nov 1992 17:36:59 GMT
Organization: University of California, Berkeley
NNTP-Posting-Host: garnet.berkeley.edu

Can somebody point me towards the WIN-OS/2 3.1 Service Pack?  I have a few bugs
in my WIN-OS/2 3.1 beta and I'd like to patch them w/ the CSD.

Thanks

Kumaran
ksanthan@garnet.berkeley.edu
Newsgroups: comp.os.os2.programmer
From: hank@ducvax.auburn.edu
Subject: Re: let FORTRAN program run under DOS to run under OS2
Organization: Auburn University, AL
Date: Fri, 13 Nov 1992 23:17:01 GMT

In article <1992Nov13.212747.24403@cs.cornell.edu>, liang@cs.cornell.edu (Yu-Min Liang) writes:
> modify a FORTRAN program originally run under DOS and make it 
> to be run in OS/2 environment?

f2c (fortran-to-c) converter, followed by gcc? I've used p2c (pascal-to-c)
in this fashion. Note that this is not for the extremely timid, but if I
can do it...

I have not used f2c. p2c is on ftp-os2.nmsu.edu, and is designed for EMX/gcc
(also on ftp-os2 in pub/os2/2.0/programming/emx-0.8e/). 

One final comment: Perhaps MS Fortran produces OS/2 executables (the MSC 5.1
thru 6.0 could, but not 7.0).

-- 
--Darrel Hankerson hank@ducvax.auburn.edu
Newsgroups: comp.os.os2.programmer
From: ghenniga@NMSU.Edu
Subject: C Set/2 2.00 Bug? (was Re: Loading Bitmaps using GpiLoadBitMap?)
Reply-To: ghenniga@NMSU.Edu
Organization: New Mexico State University - Electromagnetics Group
Date: Fri, 6 Nov 1992 19:43:59 GMT


In an artical harris@catt.ncsu.edu (Michael Harris) writes:
>Try putting the actual width and height into the last two parameters.  You
>shouldn't have to do that but maybe there is a bug.  Also, be absolutely
>sure that you are loading the proper resource number.

	Either I don't understand what's happening (quite possible)
or I've found a bug in the C Set/2 compiler that came on the DAP CD
(version 2.0?). It seems that the problem with GpiLoadBitMap I was having
only occurs when using the "optlink linkage". If you invoke the compiler
with the /Ms flag (which disables optlink) GpiLoadBitMap works fine
otherwise it always returns 0. Maybe someone can verify this and if it is
a bug then I'll see about reporting it to IBM.

Gary Hennigan
---------
PhD Student, Computational Electromagnetics
New Mexico State University
email: ghenniga@NMSU.Edu
Newsgroups: comp.os.os2.programmer
From: auhl@fzi.DE (Axel Uhl)
Subject: Re: emx curses...
Reply-To: fzi.de
Organization: Forschungszentrum Informatik (FZI), Karlsruhe, Germany
Date: Thu, 12 Nov 1992 18:50:59 GMT

In article <74335@hydra.gatech.EDU>, gt4719b@prism.gatech.EDU (Dave Frascone) writes:
|> 
|> 
|> I just got emx with curses, but whenever I try a curses call,
|> I get a core dump.
|> 
|> I compile it like:
|> 
|> 	gcc -o curstest.exe curstest.txt -lcurse -ltermc
|> 
|> Also, I have noticed that malloc runs MUCH slower with emx than with
|> the other version of gcc (2.2.2) with link386.  Why?
|> 
|> 
|> Dave
|> 
|> 
|> -- 
|> gt4719b@prism.gatech.edu
|> 

I've got exactly the same problem. Each compiled curses program yields a
core dump at execution time. I already posted a mail concerning this problem
to Kai-Uwe Rommel, who did the port of the curses library. Probably he knows
a solution to this problem...

Axel (auhl@fzi.de)
From: gb8@prism.gatech.EDU (BEEBE,GARY E)
Newsgroups: comp.os.os2.programmer
Subject: WinFileDlg Operation
Date: 13 Nov 92 19:11:12 GMT
Organization: Georgia Institute of Technology



Hello All,

I've run into a bit of a snafu on the proper utilization of the WinFileDlg
API function. The documentation in the RED BOOK's appears to be hopelessly
incorrect. I used the code they suggested to initialize the FILEDLG struc-
ture and ended up with about 10 "identifier must be a member of the structure
or union class" errors and one "severe error: general compiler fault" or 
some such thing. I've check the online help and fixed most of the declaritory
errors but the "severe error" persists. The FILEDLG member assignment that 
causes the error is

         Dlgdat.pfnDlgProc=NULL;

where FILEDLG Dlgdat; was previously declared. This assignemnt was recommended
in the RED BOOK's (although I have my reservations as to its neccesity). The
general idea is to use a default "OPEN FILE" dialog box to return a HFILE   
pointer. The question is: If you declare the pointer to the dialog procedure
to be NULL, how does the WinFileDlg call know where to process the default
dialog controls? Can someone recommend a validated source of accurate information describing the use of the WinFileDlg function?

Thank in Advance,
Gary

  


-- 
BEEBE,GARY E
Georgia Institute of Technology, Atlanta Georgia, 30332
uucp:	  ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gb8
Internet: gb8@prism.gatech.edu
Newsgroups: comp.os.os2.programmer