TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Edward McCain
from: Rob Landley
date: 1995-04-29 16:50:16
subject: Curious

> My question pertains to OS/2 and programming for it.
> I use DOS at present, but will be "upgrading" to Windows and learning
> Visual Basic. Is there a language/environment/instruction set for
> programming OS/2?

"Upgrading" to windows?  Visual Basic?

Windows is a dos program.  Some programs are run by other programs, the way
edit.exe in dos 6.0 is run by qbasic.exe.  Windows is one such program that
runs under dos, and runs other programs under it.  Windows has a lot of
speed and stability problems because it runs under dos.  These problems are
fundamental to dos, and are not solved by Windows 95, which still runs
under dos (and if you don't believe me, make a win.bat file in your root
directory and reboot.  It'll be executed instead of win.exe, and you'll
wind up at the dos 7 command line.)  Windows will never be able to use
multiple CPU's at once the way OS/2 SMP already can, and will have a
limited life span as PC's become more like mainframes due to advances in
hardware.

OS/2 programming is mostly done in C and C++.  I believe IBM has a version
of visual basic for OS/2, but I've never even looked at it.  (It may not
have been released yet.  I have no idea.)

There is a free C/C++ compiler for OS/2, called the EMX development
package.  This is available from any "hobbes" ftp site
(ftp.cdrom.com, hobbes.nmsu.edu, etc...) in the directory unix/emx9a.  The
file containing the compiler itself is emxdev.zip.  Additional files
contain the docs, sample programs, utilities, the source code to the
compiler, additional libraries (graphics and such), and other stuff I have
yet to look at.

The file libref.doc contains the complete library reference.  (Descriptions
of all functions that come with the compiler's libraries.  Sufficient
information to do multi-threaded programs.)

The programming model for PM applications is similar to windows programming
(you have your .def file, and your resource compiler, and windows send
messages to other windows.)  But you still have to learn some new stuff. 
Text mode apps are (as usual) much easier to learn.  If you're moving from
dos, I'd recommend learning how to make multi-threaded text mode apps
before tackling the PM programming model.

Rob
 
--- Xblat
* Origin: The Conversation Pit, Marlton NJ 609-985-7553 OS/2 V34 (1:266/30)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 266/30 40 100 505 3615/50 396/1 270/101 105/103 42 712/515 711/808 809
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.