TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mike Bilow
from: Jim Fitzsimmons
date: 1996-06-11 13:00:32
subject: OS/2 structures

MB> For FReq (1:323/107) or download (+1 401 944 8498):

 MB> PFAQ34.ZIP    207K  6-11-95  OS/2 Programmers FAQ version 3.4
 MB> OS2BOOKS.TXT   14K  5-01-96  A list of programming-related OS/2 books
 MB> OS2BOOKS.TXT   48K  4-29-96  OS/2 Programming Booklist 

 MB> Actually, "Real World Programming" is a fairly good 
 MB> book.  It is well divided into logical topics and the 
 MB> authors are pretty knownledgeable about the subject.  

Yes it is starting to make more sense as I re-read and re-read chapters 1-3.:)
All those menus or windows are actually hot spots that have their own
window procedures if they are Sub_classed.
 MB> issue. ANSI C is pretty much ANSI C under any operating system.  There 
 MB> are certain vagaries in extreme cases, but a valid ANSI 
 MB> C program under OS/2 will look and behave the same as 
 MB> it would under DOS or Unix.
Well I have a Ansi "C" program I converted from Basic here that I
want to be a PM program. Question is any PM a "Graphics" Window
program? The code I have is in CGA graphics for that is the only res that
supports Dos_Back_Grnd running under OS/2. Is there a way I could compile
this program as it is without it being a PM program?

 MB> looking at C++ instead of C, since it has better 
 MB> facilities to do typesafe I/O, for example.  Whether to 
 MB> learn C++ without learning C first is something of a 
 MB> controversy, although I tend to think that it is a good 
 MB> idea if done correctly.  I usually recommend Steve 
 MB> Oualline's books, "Practical C Programming" and 
 MB> "Practical C++ Programming," published by O'Reilly; the 
 MB> C++ book makes no assumptions that you know anything 
Thanks for the tip, I have recently picked up a C++ programming Book as
well as the OS/2 Book. I have yet to look at the C++ book. I have read some
online tutorials about C++ still have not written anything under it. I will
be after I get more comfortable with it's syntex.

 MB> Once you have the standard language down, you can start 
 MB> learning the specific operating system API.  
 MB> Programmers usually think of OS/2 as having two 
 MB> distinct API sets, one for the base operating system 
 MB> and one for Presentation Manager.  It is reasonable to 
 MB> take them on separately, since the PM API is not much 
 MB> use without the base OS/2 API.

Hmm I would assume that I am learning the PM API then correct from the OS/2
RWP book? Which is the OS/2 API part? 
Well Thanks Mike for your reply to my original message and any further
clarification that you may be able to provide. ttul..
 

--- Maximus/2 3.01
* Origin: Blue_Moon BBS ----> 00:00 to 05:00 Hrs Only! (1:153/9115)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 517 628 713/888 800/1
@PATH: 153/9115 970 752 716 920 270/101 712/515 711/808 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™.