HDTenEightyP/NetNews huggingface dataset:
From: os2man@panix.com (Larry Salomon Jr.)
Subject: Re: DLL question
Date: Fri, 18 Dec 1992 14:01:36 GMT
Organization: PANIX Public Access Unix, NYC
Keywords: DLL library

In <lj1ktuINNftf@exodus.Eng.Sun.COM> deepakd@ural.Eng.Sun.COM (Deepak Dhamdhere) writes:

>I am posting this question for a friend, hope that the DLL experts can
>help him out.

>Deepak Dhamdhere

>************
>I have an application that calls functions from ABC.DLL,
>those functions call routines from XYZ.DLL and those, in turn,
>call routines from the C library. This application starts a child process
>using DosExecPgm, which in turn, does the same thing. I have used 
>llibcdll.lib to link all these programs and libraries. 

>Very frequently, it generates a segementation violation. When I checked
>with Codeview, I found that the malloc() call fails because it tries to
>load a non-existent segment into DS.

>Any clues to why is this happening ? I would like to know the correct
>way of compiling and linking ABC.DLL, XYZ.DLL and the applications.

>Your immediate help will be appreciated very much.
>************

This really belongs in comp.os.os2.programmer, but...

Insure that he is building the DLLs by linking with LLIBCDLL and that the
functions he is calling are defined as EXPENTRY.

Lar
-- 
"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: francis@vnet.ibm.com (Tim Francis)
Date: Thu, 17 Dec 92 16:48:43 EST
Subject: cset/2 message file not found
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 <1gqk8bINNit8@bigboote.WPI.EDU>,
harvie@cs.WPI.EDU (Larry Harvie) writes:
>
>My Cset/2 began doing something weird.  Whenever I try to compile,
>it says
>
>can't find message file
>
>help !!!
>
>Larry

Make sure you have the directory where the dde4*.msg files are located
(\IBMC\HELP by default), in a directory on your HELP path.   -tim
Newsgroups: comp.os.os2.programmer
From: mikel@networx.com (Mike Lempriere)
Subject: Re: How do I flush disk buffer?
Organization: NetWorx
X-Newsreader: TIN [version 1.1 PL6]
Date: Sat, 19 Dec 1992 03:10:15 GMT

David Charlap (dic5340@hertz.njit.edu) wrote:
: In article <92349.025025DLVGC@CUNYVM.BITNET> DLVGC@CUNYVM.BITNET (Dimitri Vulis) writes:
: >I've had a similar problem (keeping the log file in the event the power
: >goes off) and simply calling fflush(fptr) after every fprintf seems to
: >commit the data to disk right away. (Including writing over a LAN Server
: >to a networked disk).  I even wrote a little function wrlog using stdargs
: >that first passes its args to fprintf(logfptr, then fflush(logfpr)'s.
: >
: >Of course, fflush _may_ work differently under gcc (I tried this with
: >both icc and ms c 6.0)
: 
: If you use OS/2 calls (like DosOpen, DosWrite, DosClose) instead of C
: library calls (like fopen, fwrite, fclose), you'll notice an option on
: DosOpen which tells the system not to cache the file handle.  This may
: do what you want it to.
[.sig deleted]
------------------------------------------------------------------------------
You must've missed my original posting.

I originally wrote the program using fopen(), fwrite(), fflush().
This did not work.

I changed it to DosOpen(OPEN_FLAGS_NO_CACHE), DosWrite().  This did not
work either.

I tried DosOpen(OPEN_FLAGS_WRITE_THROUGH).  This worked, but is pretty
harsh, I don't want to pound every write directly out to disk, and I
can't allow my program to pend until the write happens.

I got it doing what I wanted by checking the time since the last write
every time I go t do a write, and doing a
DosSetFHandState(OPEN_FLAGS_WRITE_THROUGH) if it's been longer than 10
minutes, then setting it back with a DosSetFHandState(0).  This is
exactly the effact that I want, It's just a bit of a nuisance.  I'd
rather if NO_CACHE did what it sounds like it's supposed to do.
Newsgroups: comp.os.os2.programmer,comp.windows.x,comp.os.ms-windows.programmer.tools
From: johns@csd.uwo.ca (John Strybosch)
Subject: Interface independent development libraries.
Organization: Department of Computer Science, University of Western Ontario, London
Date: Fri, 18 Dec 1992 20:14:53 GMT

I am looking into developing a large application
with a set of UI independent tools.  The ones I 
am currently considering (They _must_ support
X esp on Sparcs or DecStations, and either PM or 
MS-Windows.) are as follows:

ImageSoft: CommonView
Wndx Corp: Wndx
Visix Corp: Galaxy
Neuron Data: Open Interface
XVT Software: XVT
Liant Software: C++ Views

Corresponding user interface building tools are also 
important.

I'd really appreciate hearing people's feedback
and experiences with these products or others
that I might not have seen yet.

(Note: though Inmark's Zapp is advertised to support
       Motif, they don't. So I can`t consider it)

I'll post a summary of replies.

John Strybosch

Newsgroups: comp.os.os2.programmer
From: kvien@Elkraft.Unit.NO (Oddgeir Kvien)
Subject: REPOST: novice question
Reply-To: kvien@Elkraft.Unit.NO (Oddgeir Kvien)
Organization: University of Trondheim
Date: Thu, 17 Dec 92 13:24:44 GMT

Since there have been some difficulties at the news server thet I am using 
I am posting this again.......


I am trying this again, since my last article was corrupt (thnx to Jochen 
Friedrich, who was the only one who did replie).


I am going to learn OS/2 PM programming and I got some simple questions:

They might be rather stupid, but you dont learn if you dont asks questions.

1. I have seen that a lot of people is recomending Petzold`s book on 
   programming OS/2 (I have ordered it, but I don`t know if my local dealer 
   can get it). What book is recomended if Petzold`s book is imposible to get.
   (What is the 2`nd best book on programming OS/2?)

2. Are there someone who got some simple OS/2 programs which shows the basic 
   of how to program OS/2 (class registering, message que creating and so one).
   A program which shows simple line drawing would alsoe bee nice. If so could
   they email them to me (I got a lot of space where I could save my mail).

3. I am about to finish reading Petzold`s book about Programming Windows 3, 
   and I guess there is similarities between OS/2 and Windows programming.
   There is of course differences in the API call and the fact that OS/2 is
   a much bether multitasking operating system (multi threading). I guess 
   that registering of the classes, windows, dialog boxes and so on are much
   the same. Anny oppinion?

4. Where can I get the programmest faq?


Thanks.


      Merry christmas and a happy new year to you all. 


-- 

+-----------------------------------------------------------------------+
| Oddgeir Kvien, Norwegian Institute of Technology                      |
|                Faculty of Electrical Engineering and Computer Science |
|                                                                       |
| email: kvien@elkraft.unit.no                                          |
| phone: +47-7-594269                                                   |
+-----------------------------------------------------------------------+



-- 

+-----------------------------------------------------------------------+
| Oddgeir Kvien, Norwegian Institute of Technology                      |
|                Faculty of Electrical Engineering and Computer Science |
|                                                                       |
| email: kvien@elkraft.unit.no                                          |
| phone: +47-7-594269                                                   |
+-----------------------------------------------------------------------+
From: kitchin@lf.hp.com (Bruce Kitchin)
Newsgroups: comp.os.os2.programmer
Subject: Re: New programmer requesting assistance
Date: 11 Dec 1992 21:35:42 GMT
Organization: Hewlett Packard Santa Clara Site
NNTP-Posting-Host: eden.avo.hp.com
X-Newsreader: TIN [version 1.1.2 PL7]

Todd Caldwell (toddc@addiction.inslab.uky.edu) wrote:
: I am new to OS/2 programming and not extremely experienced in 'Real' 
: programming at all.  I am trying to write my first useful application.
: I have a couple of questions though.  I am using the emx/gcc package and
: was wondering...if I write an app that opens a window on the desktop.
: Does PM take care of things such as dragging the window and redrawing
: the screen on exit?  I hope its not a terribly stupid question as I'm sure
: I'll have plenty more of them.
: 

As someone else said, it is only stupid to not ask your question.  Basically
unless you do something strange, the standard behavior of windows such as
moving them and sizing them and redrawing them is handled by PM.  You
have options to override them but people usually only do this to support
something rather different.

Your question suggests to me that you are probably not familiar with
how PM programming works.  You probably could use a book on the subject
to learn the basics.  Things like what makes up a minimum PM program?
The best book I've seen on the subject is pretty old, Charles Petzold's
Programmiing the Presentation Manager.  It covers only PM at level 1.1.
However what it covers is still real important and by taking you through
a series of programs to learn how, you build up an understanding of
the approach.  This book does it better, in my opinion, than any other
I've reviewed.  Others will probably disagree.  However, the problem with
Petzold's book is that it is VERY hard to find.  It is published by
Microsoft Press(!!!!).  It appears that they made it 'out-of-print'
even when there was some demand for it.  Occaisionally one sees a copy
especially in a used book store.  One might also be able to borrow a copy.

Good luck.  Don't be afraid to ask questions.  Remember that the question
you ask and get answered may help many other people as well.
Newsgroups: comp.os.os2.programmer
From: sip1@ellis.uchicago.edu (Timothy F. Sipples)
Subject: Re: serial communication question
Reply-To: sip1@midway.uchicago.edu
Organization: Dept. of Econ., Univ. of Chicago
Date: Sun, 13 Dec 1992 00:04:39 GMT

In article <d9mikael.724155527@dtek.chalmers.se> d9mikael@dtek.chalmers.se (Mikael Wahlgren) writes:
>>:      Can anyone tell me if OS/2 uses interrupt-driven serial
>>: port buffering for COM1 & COM2?  I can't find that particular
>>: information anywhere, it seems.
>>I believe it does. (Most any multitasker has to use interrupts or
>>_considerable_ hardware buffering.) I also have a deeply held 
>>belief that it supports the 16550 buffered UARTs.
>Yes, the serial communications device driver in OS/2 certainly uses interrupts
>for its work.  It also supports 16550 buffered UARTs.

...And the DMA serial ports on many PS/2 models.

-- 
Timothy F. Sipples      | Read the OS/2 FAQ List 2.0h, 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
From: sip1@ellis.uchicago.edu (Timothy F. Sipples)
Subject: Re: OS/2 MIDI programming ...
Reply-To: sip1@midway.uchicago.edu
Organization: Dept. of Econ., Univ. of Chicago
Date: Tue, 15 Dec 1992 18:48:33 GMT

In article <BzAJ8s.GG8@DMI.USherb.CA> menaf00@DMI.USherb.CA (FRANCOIS MENARD) writes:
>I am about to start a new project (Ambitious ???) during Christmas holidays.
>It is a General MIDI compatible standard midi file player for OS/2 PM.
>To get this program going, I beleive I need either the following :
>1st configuration :  MPUDD103.ZIP (OS/2 device driver for an mpu401)
>2nd configuration :  MASM 6.0 to write myself a device driver
>3rd configuration :  OS/2 MMPM
>4th configuration :  C SET/2 with inline assembly allowed
>  So far, I do not have the choice to use the MPU401 driver, but the 
>documentation is hard to understand, and I have no source to get me going.
>Of course, I should use OS/2 mmpm, but it is a commercial product $$$ and, if
>I make use of it, I would be shooting myself in the foot, since nobody uses
>the thing (unless IBM give it with a future release of OS/2).
>My *original* C SET/2 will not do inline assembly, so there is no way to
>incorporate direct mpu support into my exe file.
>So what is your suggestion, does somebody would be willing to help me acquire
>a copy of OS/2 mmpm, I know that you can get the developer CDROM, but, 
>unfortunately, I do not have a CD-ROM and IBM wont ship beta to Canada (it 
>sucks badly <g?> )...
>So I either NEED C Set/2 with inline assembly
>                 MASM 6.0b to create my device driver
>                 OS/2 MMPM
>Hope somebody have same interests... <MAJOR GRIN>...

Go the MMPM/2 route.  Every sign seems to point to MMPM/2 going into
the base OS before too long.

IBM Canada should be able to get you a copy of the CD-ROM.  If not,
please mail me and I'll figure something out.

-- 
Timothy F. Sipples      | Read the OS/2 FAQ List 2.0h, 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
From: sandvl@sci.kun.nl (Sander van Leeuwen)
Subject: PDK and other questions.
Organization: University of Nijmegen, The Netherlands
X-Newsreader: NN version 6.4.19
Date: Wed, 16 Dec 1992 15:14:49 GMT

I've read a lot about the PDK CD-ROM and for $15 I would also like to order one.
But I need some information first.
How big are the C/C++ compiler and the programming information ? (I only have
a 125 MB HD) I don't need the network software.
Can everybody who wants to program a little for OS/2 order this CD-ROM or do I
have to be a professional developer?
Does anybody know where I can order it in Holland?

Microsoft's Macro Assembler 6.0 can produce programs for the Flat memory model.
How do I convert these programs to OS/2 2.0 compatible programs?

I've also tried to convert the .h files of GCC to .INC files in order to use thenew API calls, but that didn't work. Has anybody been able to do this?

Because I assume that Microsoft isn't going to support OS/2 in the next version
of MASM, I'm looking at other possibilities. I read IBM sells their Macro Assembler/2. Could anybody give me more information about it? (does it support OS/2 2.0 and can I use the API calls within my assemble programs?)


Thanks in advance,

S. van Leeuwen
email:sandvl@sci.kun.nl
Newsgroups: comp.os.os2.programmer
From: mig@cunixb.cc.columbia.edu (Meir I Green)
Subject: Re: Help with gcc and gmake
Reply-To: mig@cunixb.cc.columbia.edu (Meir I Green)
Organization: Columbia University, New York
Date: Fri, 11 Dec 1992 19:18:54 GMT

The problem has been solved...it was because of OS/2's use of text rather than
binary file modes.

 * * * * *  =================== 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 
Newsgroups: comp.os.os2.programmer
From: sip1@ellis.uchicago.edu (Timothy F. Sipples)
Subject: Re: DOS Box Programming
Reply-To: sip1@midway.uchicago.edu
Organization: Dept. of Econ., Univ. of Chicago
Date: Thu, 17 Dec 1992 23:08:26 GMT

In article <1992Dec14.180704.29564@wicat.com> kevin@wicat.com (Kevin Vigor) writes:
>>Hi, I am wondering about programming a serial communication programme in DOS
>>but would like to make it "OS/2 aware".  Thus I have the following questions.
>>   1.  Is there a way to detect if a programme is operation in OS/2 2.0's
>>       dos box ?
>A question I'd like an answer to myself; however, at the moment, I am just 
>checking the DOS version; if the major version is 20 or higher, I assume
>I'm dealing with OS/2 2.x or better.

How about looking for an OS/2 2.x-specific file that will always be in
the same location?

-- 
Timothy F. Sipples      | Read the OS/2 FAQ List 2.0h, 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
From: hb@vpnet.chi.il.us (hank barta)
Subject: EASEL - Where can I find it?
Organization: Vpnet Public Access
Date: Fri, 11 Dec 1992 04:44:58 GMT



Where can I find this package? The big mail order houses can't help
me. Please E-mail as this is not likely to be something everyone
else is interested in.


thanks in advance,
hank
also barta@pswin.chi.il.us
Newsgroups: comp.os.os2.programmer
From: joshi@cs.uiuc.edu (Anil Joshi)
Subject: AT&T enhancements for the DAP CD-ROM disk for $10. Worth it?
Keywords: OS/2, DAP, AT&T, enhancements, C++
Organization: University of Illinois, Dept. of Comp. Sci., Urbana, IL
Date: Sun, 13 Dec 1992 17:42:31 GMT


I called the 1-800-3-ibm-os2 the other day to order the DAP CD-ROM. The person
at the other end asked whether I would like to order the AT&T enhancements
floppy too for an extra $10. Does somebody know what it contains? Any help
would be greatly appreciated.

Thanks
Anil
-- 
Sathsangatve    nissangatvam   From good company to no company
Nissangatve      nirmohatvam   From no company to lack of desire
Nirmohatve    nischalatatvam   From lack of desire to concentration of mind
Nischalatatve  jeevanmuktihi   From concentration of mind to liberation of life
Newsgroups: comp.os.os2.programmer
From: kumarad@ecf.toronto.edu (KUMARADAS JOSEPH CARL)
Subject: Re: Customizing EPM 5.51
Organization: University of Toronto, Engineering Computing Facility
Date: Thu, 17 Dec 1992 19:11:08 GMT

In article <nicolson.64@odie.ee.wits.ac.za> nicolson@odie.ee.wits.ac.za (James Nicolson) writes:
>Hi,
>
>I am using EPM v5.51 from software.watson.ibm.com. (Its seems like a really 
>good editor)
>
>When it comes to customizing it, I ran into a problem. Even without 
>including my own .e files (mystuff.e etc.), the translator (etpm) complains
>about the .ex file being bigger than the allowed 64k. Ie. all I am doing is:
>  etpm epm
>using the macro files as supplied in epmmac.zip.
>
>Am I missing something?
>
>Thanks,
>
>------------
>James Nicolson, Department of Electrical Engineering
>University of the Witwatersrand, South Africa

You should add the WANT_EXTRA=1 (or something to that effect) to a mycnf.e 
file.  The .ex files are for some reason limited to 64k eac.  The WANT_EXTRA 
will put the rest on a second file which must also be created by compiling the
extra.e macro file.

Carl. 
Newsgroups: comp.os.os2.programmer
From: margoli@watson.ibm.com (Larry Margolis)
Subject: Re: help.ndx not found, epm error
Date: Mon, 14 Dec 1992 05:14:40 GMT
News-Software: IBM OS/2 PM RN (NR/2) v0.16e 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: The Village Waterbed

In <1gfoe3INNgi8@bigboote.WPI.EDU> harvie@bigwpi.WPI.EDU (Lawrence Harvie) writes:
>I had the online help on cset/2 working fine for a long time.
>I concattenated the ndx files, set helpndx=help.ndx,
>now it can't find help.ndx again .  Could someone
>tell me what could be wrong ?

Is the file HELP.NDX in the current directory, along the EPMPATH, DPATH, PATH,
or in the directory from which EPM.EXE was loaded?
--
Larry Margolis, MARGOLI@YKTVMV (Bitnet), margoli@watson.IBM.com (Internet)
Newsgroups: comp.os.os2.programmer,comp.os.os2.misc
From: 5692330@mcimail.com  (Robert Gammon)
Subject: Re: PDK CDROM RAQ (Recently asked Questions)
Nntp-Software: PC/TCP NNTP
Organization: Texas Instruments Materials and Controls Group
Date: Wed, 16 Dec 1992 16:20:17 GMT

In article <1gldu9INNi5d@network.ucsd.edu> eric@sdphu1.ucsd.edu (Bo Yang) writes:

 >> I have a PC without a CD_ROM. I used to use the DOSREAD on our RS/6000 machine
 >> (with a CDROM drive and a 3.5" flopydrive) to dump CD-ROM files to DOS diskets 
 >> and bring them home to use with PC. Does anyone know if this works with the
 >> OS2 PDK CD? 
 >> 
 >> In other words, can you dump the PDK CD to  DOS formatted floppy disks and
 >> install OS/2 with them?
 >> 
 >> Many thanks.
 >> 
 >> --Bo

For many items, this is true.  BUT, OS/2 2.0 and its service packs are stored
as disk images.  These are TOO BIG to fit on a floppy since they also contain
format information, etc.  LOADDSKF.EXE is included on the CD.  It builds
diskettes from the diskette images on the CD.
--
Regards,
Robert Gammon
(713)-274-3299       (voice)
(713)-274-2324       (fax)

Newsgroups: comp.os.os2.programmer
From: hb@vpnet.chi.il.us (hank barta)
Subject: Re: serial communication question
Organization: Vpnet - Free Usenet access
X-Newsreader: TIN [version 1.1 PL8]
Date: Fri, 11 Dec 1992 04:40:42 GMT

Legene (maxc0452@ucselx.sdsu.edu) wrote:
:      Can anyone tell me if OS/2 uses interrupt-driven serial
: port buffering for COM1 & COM2?  I can't find that particular
: information anywhere, it seems.

:      Thanks.

I believe it does. (Most any multitasker has to use interrupts or
_considerable_ hardware buffering.) I also have a deeply held 
belief that it supports the 16550 buffered UARTs.

"ADVANCED PROGRAMMING FOR OS/2" or something like that by Petzold
(published by Microsoft) has some discussions of how 1.1,2 
work that will probably be applicable to 2.0.

hank
From: rommel@jonas.gold.sub.org (Kai Uwe Rommel)
Newsgroups: comp.os.os2.programmer
Subject: Re: How do I give a batch program high execution priority?
Date: 20 Dec 92 20:53:52 GMT
Organization: Private

In article <1gsr80INN7cb@gap.caltech.edu> brooke@cco.caltech.edu (Brooke Paul Anderson) writes:
>I'm running some very time-intensive number-crunching programs,
>and I need to know how to give them high execution priority.  On
>UNIX, you can give background jobs high priority -- at least, when
>the machine is idle (even if the screen saver turns on), the job
>uses most of the processor time.  On OS/2, it seems that is not the
>case (at least as things are set up by default).
>
>Does anyone know how I can make sure my program gets lots of processor
>time even when lockup has turned on (i.e., when I am running the program
>over night)?

The OS/2 version of the GNU shell utilities contains a program called
"nice" which does exactly what it's supposed to do - but has a few
more options to deal with OS/2's different priority classes.

Note, since OS/2 program always run (default) at the lowest priority
in their class (unless they change that themselves), only a command
like "nice -n -10 <job>" makes sense, i.e. increasing the priority as
if you were root on a Unix box.

Kai Uwe Rommel

--
/* Kai Uwe Rommel                                      Muenchen, Germany *
 * rommel@jonas.gold.sub.org                       Phone +49 89 723 4101 *
 * rommel@informatik.tu-muenchen.de                  Fax +49 89 723 7889 */

DOS ... is still a real mode only non-reentrant interrupt
handler, and always will be.                -Russell Williams
Newsgroups: comp.os.os2.programmer,comp.os.os2.apps
From: ant@brolga.cc.uq.oz.au (Anthony Murdoch)
Subject: COBOL for OS/2 2.0
Organization: Prentice Centre, University of Queensland
Date: Wed, 16 Dec 1992 07:08:06 GMT

Hi there,

I was wondering if there is an IBM cobol out there, and how similar it is
to VM cobol.  IE how much work would be required to port a major
application from VM Cobol to OS/2 Cobol.

Thanx in advance
ant
Newsgroups: comp.os.os2.programmer