
                  OS/2 Programming                 (Fidonet)

                 Saturday, 30-Oct-1999 to Friday, 05-Nov-1999

+----------------------------------------------------------------------------+

From: James Williams                                    28-Oct-99 10:06:00
  To: All                                               30-Oct-99 05:23:17
Subj: Emx/Gnu

Hello All,

I want to install the EMX/GNU compiler. Would someone please let me
know the various Environment Variables needed in my config.sys. Also,
the pros / cons of using this compiler versus say IBM'S VAC ++.

thx, James

... MultiMail, the new multi-platform, multi-format offline reader!
___ MultiMail/OS/2 v0.31

--- Maximus/2 3.01
 * Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)
292/854

+----------------------------------------------------------------------------+

From: Albert Sodyl                                      21-Oct-99 19:58:00
  To: ALL                                               30-Oct-99 05:23:17
Subj: OS/2 - Proggraming

I have a question, I got this message quite a while ago, and I don't know
how to answer it, maybe anyone want to help?


=============================================================================
* Forwarded by Sir Al (1:254/261.9999)
* Area : PUTER SCHOOL
* From : PHARAOH,  (04-Oct-99  04:27:00)
* Subj : OS/2
=============================================================================
 SA> You can call it old, but many people have computers like mine, it's
 SA> not bad, plus runs everything I want it to run, fast!  I can even
 SA> multitask better with DOS programs than a pentium 266 can! That's
 SA> because I run OS/2. Also I want to get a new computer too, once I get
 SA> my job :]

I've had a question for a while now, and as a self-appointed expert on
OS/2, I think you're just the man to answer it.

Why is Ralf Brown's interrupt list peppered with API calls marked
"this function is incompatible with the OS/2 compatibility box"?


... Old programmers never die.  They branch to a new address.

=============================================================================



 ----<<<< I am Sir Al >>>>----

  TerMail/QWK  BC = British Columbia, not Bonehead Country.        BC

--- EzyQwk V1.48g0 01fd0192
 * Origin: Milky Way, Langley, BC [604] 532-4367 (1:153/307)

+----------------------------------------------------------------------------+

From: Francois Thunus                                   29-Oct-99 08:48:00
  To: Andrew Grillet                                    30-Oct-99 05:23:17
Subj: Fixpaks

Hello Andrew!

22 Oct 99 08:19, Andrew Grillet wrote to All:

 AG> I was running Warp Connect with fixpack 40, on a VESA bus 486
 AG> when my VGA card suffered hardware death.
 AG> I ahve more Vesa VGA cards than is good for a normal
 AG> human, so I simply swapped it out. Unfortunately, it was
 AG> a different brand. This meant attempting a switch back
 AG> to VGA. This failed - the scan rate was bizarre.
 AG> Obviously time for a re-install.
 AG> When I came to reinstall, it was disallowed - "the version
 AG> you are attempting to install is a lower revision than the
 AG> one installed".
 AG> The only solution was a total wipe of the OS partition.
 AG> (There may have been others, but I did not have the time
 AG> to look).

Same story happened here.

 AG> What is the official way to reinstall after applyting a fixpack
 AG> after you have deleted the archive/backup? Personally, I
 AG> would prefer to BUY (Hint, IBM: this means giving you my
 AG> hard earned cash) a manufactur-refreshed version.

One of the reason I'm slowly turning from OS/2 to Linux. Can't install my
current config on today's hardware without chasing bits and pieces all over
the net first. When this machine dies, that'll be the end of OS/2 for me.

But haven't we had this conversation a gazillion time before ? :-)

                             -= Francois =-
                      Francois(at)telematique(dot)org
                       http://www.telematique.org/ft

"The world's about to end."  -- Ford

--- GoldED 3.0.1
 * Origin:  Xara Sto Pragma ! Gasperich - Luxembourg -> (FidoNet 2:270/25.2)
292/854

+----------------------------------------------------------------------------+

From: Darin McBride                                     29-Oct-99 22:14:14
  To: James Williams                                    30-Oct-99 07:34:08
Subj: Emx/Gnu

 JW> Hello All,

 JW> I want to install the EMX/GNU compiler. Would someone please let me
 JW> know the various Environment Variables needed in my config.sys. Also,
 JW> the pros / cons of using this compiler versus say IBM'S VAC ++.

Actually, I use both, switching between them depending on what I'm doing. 
Anyway, EMX.  We'll assume everything is in d:\emx:

LIBPATH: add d:\emx\dll
PATH: add d:\emx\bin
DPATH: add d:\emx\book    [not sure if this is required or not...]
HELP: add d:\emx\help
BOOKSHELF: add d:\emx\book

Add the following "section":

REM ***
REM EMX
REM ***
SET LIBRARY_PATH=d:/emx/lib
set C_INCLUDE_PATH=d:/emx/include
set CPLUS_INCLUDE_PATH=d:/emx/include/cpp;d:/emx/include
set GCCLOAD=30
set GCCOPT=-pipe
set TERM=MONO
set TERMCAP=d:/emx/etc/termcap.dat
set EMXBOOK=emxdev.inf+emxlib.inf+emxgnu.inf+emxbsd.inf

Note that Java may already have a LIBRARY_PATH, and you'll just have to add
d:/emx/lib to it.


---
 * Origin: Tanktalus' Tower BBS (1:250/102)
292/854

+----------------------------------------------------------------------------+

From: Francois Thunus                                   30-Oct-99 09:46:00
  To: Albert Sodyl                                      30-Oct-99 16:14:28
Subj: OS/2 - Proggraming

Hello Albert!

21 Oct 99 19:58, Albert Sodyl wrote to ALL:

 AS> Why is Ralf Brown's interrupt list peppered with API calls marked
 AS> "this function is incompatible with the OS/2 compatibility box"?

because things that make sense under DOS don't necessarily under OS/2. Any
direct hardware call for example, typically has to go thru OS/2' API. Imagine
you write a programme under dos that takes control of the sound blaster
buffer, reads a sound file a shove it down the buffer to be played. This works 
beautifully under dos, and will get you back to the prompt for work while the
music plays. You can do that under DOS because you own the machine. You can't
do that under OS/2 because some other program might already be using the sound 
card.


                             -= Francois =-
                      Francois(at)telematique(dot)org
                       http://www.telematique.org/ft

War is like love, it always finds a way.

--- GoldED 3.0.1
 * Origin:  Xara Sto Pragma ! Gasperich - Luxembourg -> (FidoNet 2:270/25.2)
292/854

+----------------------------------------------------------------------------+

From: James Williams                                    30-Oct-99 11:34:00
  To: Darin McBride                                     30-Oct-99 16:14:28
Subj: Re: Emx/Gnu

-=> Darin McBride wrote to James Williams <=-

 DM> Actually, I use both, switching between them depending on
 DM> what I'm doing.  Anyway, EMX.  We'll assume everything is
 DM> in d:\emx:

Thank you Darin, it is much appreciated.

James

... exec /real/men/don't/need/file/managers/[nvm]c
___ MultiMail/OS/2 v0.32

--- Maximus/2 3.01
 * Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)
292/854

+----------------------------------------------------------------------------+

From: Jonathan de Boyne Pollard                         28-Oct-99 21:24:21
  To: Andrew Grillet                                    30-Oct-99 19:19:18
Subj: Fixpaks

 AG> I ahve more Vesa VGA cards than is good for a normal
 AG> human, so I simply swapped it out. Unfortunately, it was
 AG> a different brand. This meant attempting a switch back
 AG> to VGA. This failed - the scan rate was bizarre.

SETVGA failed ?

  JdeBP 

--- FleetStreet 1.22 NR
 * Origin: JdeBP's point, using Squish <yuk!> (2:257/609.3)
292/854

+----------------------------------------------------------------------------+

From: Herbert Rosenau                                   30-Oct-99 11:28:16
  To: Andrew Grillet                                    30-Oct-99 21:23:26
Subj: Fixpaks

 AG> I was running Warp Connect with fixpack 40, on a VESA bus 486
 AG> when my VGA card suffered hardware death. 

- remove broken card.
- boot with ALT + F1
- selcet F3 to reset the system to VGA
  here the 08/15 VGA driver will be reinstalled
- after bootup use the procedure described in the readme of you new video card 
to install its driver.

a complete reinstall is unneccessary.

 AG> I ahve more Vesa VGA cards than is good for a normal
 AG> human, so I simply swapped it out. Unfortunately, it was
 AG> a different brand. This meant attempting a switch back
 AG> to VGA. This failed - the scan rate was bizarre.

 AG> Obviously time for a re-install.

Never.

 AG> What is the official way to reinstall after applyting a fixpack
 AG> after you have deleted the archive/backup? Personally, I
 AG> would prefer to BUY (Hint, IBM: this means giving you my
 AG> hard earned cash) a manufactur-refreshed version.

- format x: /FS:HPFL /L		make a long format to prevent some
				obscure things in case of chkdsk
- do a normal inmstall
- plug in the actual fixpack
- plug in fixes for mpts, tcp/ip, peer
- install netscape
- install actual feature installer
- install the actual JAVA
- restore the saved objects or reinstall them


but before you have to try to reinstall you should
- if your video hard-/software is broken: reset to standard VGA
  and then replace them with a good one
- if the desktop seems broken: either
  - reset it to a previous saved version (see Alt+F1 at boot time)
    more information in you online help (press F1 on desktop)
  - run a tool such as unimaint or Henk Kelders checkini (found in
wptoolxx.zip)
    until there are no more errors

A true reinstall will be mostly absolutly unneccessary.

--- Sqed/32 1.14/development
 * Origin: Schont die Umwelt: Vermeidet DOSen (2:2476/493)

+----------------------------------------------------------------------------+

From: Mod Rules Poster                                  01-Nov-99 00:00:03
  To: All                                               01-Nov-99 08:17:23
Subj: OS2PROG Echo Rules

Rev: Wed 6 Oct 99 21:34
============================================================================
The Official Rules of The FidoNet OS2PROG Echo

The objectives of the OS2PROG echo are:

1. To provide a forum in which messages pertaining to programming
   for and under OS/2 can be exchanged. It is for the technical
   support of OS/2 programming, not OS/2 programs. Queries about
   applications and utility programs should be placed in the
   general OS2 echo.

2. To provide technical support for newcomers to programming for OS/2.

The rules under which messages are to be exchanged in this echo are:

0. The preferred language is English, but this is not compulsory. Since
   most of the participants will be fluent in English, any problem
   reports will receive the widest scrutiny if they are written in
   English.

1. Real names only. No pseudonyms, "handles", "monickers" or aliases.

2. Relevance to topic. Posts should pertain to programming and
   specifically in the OS/2 environment.

3. Advertising. A maximum of 1 advertisement per month by the
   author/publisher of software relevant to the topic of the echo will
   be permitted. Other products must NOT be advertised.

4. No flaming or abusive language will be tolerated. Also, excessive
   profanity is not permitted. Please remember the sensibilities of
   others before you upload that QWK packet.

5. Let the moderator do the moderating. Do not reply to "test" messages
   from BBSes that have just joined the echo. Do not reply to off-topic
   messages or flames. These will all be dealt with by the moderator.

6. You may post uuencoded, xxencoded or base-64 encoded message only
   with the prior approval of the moderator. When asking for approval
   please state the approximate size of the message, its content and
   usefulness to the other participants of the echo.

7. The OS/2 platform is deemed to be:
       Native OS/2, both text and PM;
       Virtual DOS Machine (VDM & WIN-OS/2) session.

   The only reason to discuss DOS/Windows programs in this echo will
   be if those DOS/Winodws programs use features specific to OS/2's
   VDM or WIN-OS/2 support. General DOS/Windows programming is off-topic.

8. High ASCII is permitted, except 'FF'X, but low ASCII (below '20'X) is
   not permitted beyond the standard CR/LF/etc., characters.

9. Programming languages. All programming languages are considered valid.
   People using REXX might consider using the OS2REXX echo instead, as
   this contains people with a definite REXX focus who don't poll OS2PROG.
   However, all compiler, interpreter and assembler languages that are
   being used to program OS/2 are suitable for the posting of sample code
   in this echo.

These rules will be revised, amended or appended to as needs arise.

Thanks in advance for your compliance.

David Noon
Moderator, FidoNet OS2PROG echo

 * Origin: (1:3634/12)
292/854

+----------------------------------------------------------------------------+

From: Thomas Seeling                                    31-Oct-99 13:18:23
  To: Darin McBride                                     02-Nov-99 07:45:03
Subj: Emx/Gnu

Hallo Darin,

Am 29 Oct 99 um 22:14 schrieb Darin McBride an James Williams:

 DM> set TERM=MONO
 DM> set TERMCAP=d:/emx/etc/termcap.dat

make sure that an entry with this *exact* name is included in termcap.dat,
else programs which rely on it (emacs etc.) won't start. Case matters.

grep "MONO" $TERMCAP


Tschau...Thomas

--- GED2 3.0.1
 * Origin: Die TeX-Box: +49-6036-980114 V.34/X.75 24h (2:2461/332.42)
292/854

+----------------------------------------------------------------------------+

From: Jonathan de Boyne Pollard                         31-Oct-99 14:27:13
  To: James Williams                                    03-Nov-99 00:38:02
Subj: Emx/Gnu

 JW> I want to install the EMX/GNU compiler. Would someone please let me
 JW> know the various Environment Variables needed in my config.sys. 

They are all fully described in the READMEs that are supplied in the archives. 
 Start with emx\doc\readme.doc and then read, as it tells you to,
emx\doc\install.doc .

  JdeBP 

--- FleetStreet 1.22 NR
 * Origin: JdeBP's point, using Squish <yuk!> (2:257/609.3)
292/854

+----------------------------------------------------------------------------+

From: George White                                      31-Oct-99 20:42:10
  To: Albert Sodyl                                      03-Nov-99 00:38:02
Subj: OS/2 - Programming

Hi Albert,

On 21-Oct-99, Albert Sodyl wrote to ALL:


 AS> I have a question, I got this message quite a while ago, and I
 AS> don't know how to answer it, maybe anyone want to help?

<question from Pharaoh>

 AS> I've had a question for a while now, and as a self-appointed
 AS> expert on OS/2, I think you're just the man to answer it.

 AS> Why is Ralf Brown's interrupt list peppered with API calls marked
 AS> "this function is incompatible with the OS/2 compatibility box"?

There are lots of DOS interrupts that do things that any multitasking
OS can't allow. Things like absolute disk writes, direct disk access.

However on the version of the interrupt list I have here (release 57)
the only call I can find with that comment is this one:-

--------B-1587-------------------------------
INT 15 - SYSTEM - COPY EXTENDED MEMORY
 AH = 87h
 CX = number of words to copy (max 8000h)
 ES:SI -> global descriptor table (see #0425)
Return: CF set on error
 CF clear if successful
 AH = status (see #0424)
Notes:        copy is done in protected mode with interrupts disabled by the
default
  BIOS handler; many 386 memory managers perform the copy with
  interrupts enabled
 this function is incompatible with the OS/2 compatibility box
SeeAlso: AH=88h,AH=89h,INT 1F/AH=90h

The only other one which is listed as unavailable is:-

--------D-2138--DXFFFF-----------------------
INT 21 - DOS 3.0+ - SET COUNTRY CODE
 AH = 38h
 DX = FFFFh
 AL = 01h thru FEh for specific country with code <255
 AL = FFh for specific country with code >= 255
   BX = 16-bit country code (see #1088)
Return: CF set on error
     AX = error code (see #1366 at AH=59h/BX=0000h)
 CF clear if successful
Note: not supported by OS/2
SeeAlso: INT 2F/AX=1403h

George

--- Terminate 5.00/Pro
 * Origin: A country point under OS/2 (2:257/609.6)
292/854

+----------------------------------------------------------------------------+

From: Francois Thunus                                   02-Nov-99 12:06:00
  To: Darin Mcbride                                     03-Nov-99 05:14:26
Subj: Emx/Gnu

Hello Darin!

31 Oct 99 13:18, Thomas Seeling wrote to Darin McBride:

 DM>> set TERM=MONO
 DM>> set TERMCAP=d:/emx/etc/termcap.dat

 TS> make sure that an entry with this *exact* name is included in
termcap.dat,
 TS> else programs which rely on it (emacs etc.) won't start. Case matters.
 TS> grep "MONO" $TERMCAP

I don't remember what was the original question, but I found both ansi and
ansi-emx to give satisfactory results as "term" entry. That said, it depends
for what program. I usually modify the term entry on the fly because of that:
elvis doesn't like the ansi "term" at all, whereas gnuinfo has nice colors
with ansi-emx :-)

                             -= Francois =-
                      Francois(at)telematique(dot)org
                       http://www.telematique.org/ft

"We'll take in a quick bite at the Restaurant at the End of the Universe." --
Zaphod

--- GoldED 3.0.1
 * Origin:  Xara Sto Pragma ! Gasperich - Luxembourg -> (FidoNet 2:270/25.2)
292/854

+----------------------------------------------------------------------------+

From: Andrew Grillet                                    02-Nov-99 08:21:01
  To: Roy J. Tellason                                   04-Nov-99 05:31:04
Subj: Re: Fixpaks

Hi Roy,

-=> Roy J. Tellason wrote to Andrew Grillet <=-


 AG> I was running Warp Connect with fixpack 40, on a VESA bus 486
 AG> when my VGA card suffered hardware death.

 AG> I ahve more Vesa VGA cards than is good for a normal human, so
 AG> I simply swapped it out. Unfortunately, it was a different
 AG> brand. This meant attempting a switch back to VGA. This failed
 AG> - the scan rate was bizarre.

 RJT> What about hitting alt-F1 (I think?) when you get the "boot blob" and
 RJT> selecting plain vga as a video mode?

 RJT> It's in there.

That is what I meant by 'switching back to VGA' - it failed - presumably
some piece of software still attempted to write to registers in the old
card which did something different in the new one, despite the Alt-F1 and 
'switch to VGA and continue' option.

Andrew

... Computer Hacker wanted. Must have own axe.
--- Blue Wave/Maximus
 * Origin: Me/2 <Meet-You> (2:254/259)
292/854

+----------------------------------------------------------------------------+

From: Andrew Grillet                                    02-Nov-99 08:21:29
  To: Jonathan de Boyne Pollard                         04-Nov-99 05:31:04
Subj: Re: Fixpaks

Hi Jonathan,

-=> Jonathan de Boyne Pollard wrote to Andrew Grillet <=-

 AG> I ahve more Vesa VGA cards than is good for a normal
 AG> human, so I simply swapped it out. Unfortunately, it was
 AG> a different brand. This meant attempting a switch back
 AG> to VGA. This failed - the scan rate was bizarre.

 JdP> SETVGA failed ?

Yes.

Andrew

... Computer Hacker wanted. Must have own axe.
--- Blue Wave/Maximus
 * Origin: Me/2 <Meet-You> (2:254/259)
292/854

+----------------------------------------------------------------------------+

From: Andrew Grillet                                    02-Nov-99 08:23:02
  To: Herbert Rosenau                                   04-Nov-99 05:31:04
Subj: Re: Fixpaks

Hi Herbert,

-=> Herbert Rosenau wrote to Andrew Grillet <=-

 AG> I was running Warp Connect with fixpack 40, on a VESA bus 486
 AG> when my VGA card suffered hardware death.

 HR> - remove broken card.
 HR> - boot with ALT + F1
 HR> - selcet F3 to reset the system to VGA
 HR>   here the 08/15 VGA driver will be reinstalled
 HR> - after bootup use the procedure described in the readme of you new
 HR> video card to install its driver.

Unfortunately, this failed to work.

 HR> a complete reinstall is unneccessary.

Not in my case.

Andrew

... Computer Hacker wanted. Must have own axe.
--- Blue Wave/Maximus
 * Origin: Me/2 <Meet-You> (2:254/259)
292/854

+----------------------------------------------------------------------------+

+============================================================================+
