Jump to content

Open Class Library (OCL) FAQ: Difference between revisions

From EDM2
Created page with "By Stéphane Charette =General Information= ==History of the Open Class Library FAQ== The revision history is as follows: Version Comment Author Date 0.1 initial write-..."
 
No edit summary
Line 5: Line 5:
The revision history is as follows:
The revision history is as follows:


Version Comment Author Date
{| border="1" cellpadding="5"
0.1 initial write-up in OS/2's IPF (.INF) format SC 1997June20-21
| align="center" | Version
0.1a added table of files at Hobbes SC 1997June24
| align="center" | Comment
0.1b converted the FAQ to HTML format SC 1997June28
| align="center" | Author
0.1d Added animation sample
| align="center" | Date
Added LNK2029 information
|-
Updated fixpak information
| 0.1
Created "Errors in IBM's include files" SC 1997Sept05
| initial write-up in OS/2's IPF (.INF) format
0.1e Changed e-mail address
| SC
Added POV_Launch to the Hobbes index
| 1997June20-21
Added custom-draw container information SC 1997Nov02
|-
| 0.1a
| added table of files at Hobbes
| SC
| 1997June24
|-
| 0.1b
| converted the FAQ to HTML format
| SC
| 1997June28
|-
| 0.1d
| Added animation sample<br /> Added LNK2029 information<br /> Updated fixpak information<br /> Created "Errors in IBM's include files"
| SC
| 1997Sept05
|-
| 0.1e
| Changed e-mail address<br /> Added POV_Launch to the Hobbes index<br /> Added custom-draw container information
| SC
| 1997Nov02
|}


==How to obtain a copy of the FAQ==
To obtain a HTML copy of the FAQ for local installation, download the file ftp://hobbes.nmsu.edu/pub/os2/dev/cplusplus/ocl_faq.zip.
Unzip this file in it's own directory (if using PKUNZIP, remember to use the /D option to create the subdirectories) and use your favorite web browser to access the files locally.


==How to obtain a copy of the FAQ==
==Where to obtain additional information==
==Where to obtain additional information==
The on-line reference for OCL is located in your VisualAge folder, under the <code>VisualAge C++ Information</code> folder. The reference .INF file should be titled <code>Open Class Library Reference</code> (<code>D:\IBMCPP\HELP\CLREF.INF</code>) while a second .INF user's guide is called <code>Open Class Library User's Guide</code> (<code>D:\IBMCPP\HELP\CPPCLSUG.INF</code>).
The first book, <code>Open Class Library Reference</code> has all of the documented methods, objects, and necessary include files. The easiest way to find what you need is probably to click on <code>Classes By Name</code>, normally the second option from the top (may depend on the version of the documentation).
Note that one of the most useful .INF books which IBM ships with VisualAge can easily be overlooked; in the <code>VisualAge C++ Information</code> folder is a book called <code>VisualAge C++ Frequently Asked Questions</code> which deals with quite a few OCL topics.
Additional information on programming using OCL can be obtained from a variety of sources. There is an increase in books published (some of which by IBM) which deal with OCL, as well as numerous sources on the Internet.
For more information, consult:
* <code>D:\IBMCPP\SAMPLES\IOC\*</code>
* [ftp://hobbes.nmsu.edu/pub/os2/dev/cplusplus ftp://hobbes.nmsu.edu/pub/os2/dev/cplusplus/ocl*.zip] ''([hobbes_index.html index of samples])''
* ftp://service.boulder.ibm.com/ps/products/visualagecpp/tools ''(IBM VB and OCL sample code)''
* http://??? ''(Chinese version of the OCL-FAQ)''
* http://www.davebsoft.com/Programming/tips ''(Dave Briccetti's OS/2 Warp Programming Tips and Samples)''
* news://comp.os.os2.programmer.oop
* news://productnews.taligent.com/taligent.products.openclass ''(Taligent's OCL News Server)''
Books which deal with OCL are:
; OS/2 Class Library: Power GUI programming with C/Set++
: Written by Leon, Law, Love Tsuji & Olson<br /> Published by John Wiley & Sons<br /> ISBN 0-471-13117-2<br />''(Obsolete and replaced by the following book)''
; Power GUI Programming with VisualAge C++
: Written by Law, Love, Olson & Tsuji<br /> Published by John Wiley & Sons<br /> ISBN 0-471-16482-8<br />''(recommended by Mark Anderson, os2team@romeop03.fishkill.ibm.com)''
<font color="#ff0000">I need recommendations to more books and internet sites with sample code...</font>
===Index of samples on Hobbes===
===Index of samples on Hobbes===
==Graphics used on this site==
 
tarting mid-June, 1997, I have begun to upload to <code>ftp://hobbes.nmsu.edu/pub/os2/dev/cplusplus</code> a series of Open Class Library samples that I have written. The following table is the index of these samples.
 
{| border="1" cellpadding="5"
! Filename
! Description
! Classes Used
|-
|
[ftp://hobbes.nmsu.edu/pub/os2/dev/cplusplus/ocl_ani1.zip OCL_ANI1.ZIP]
| animation sample
| IApplication, IColor, IDrawingCanvas, IEvent, IFrameWindow, IGBitmap, IGList, IRectangle, ITimer
|-
|
[ftp://hobbes.nmsu.edu/pub/os2/dev/cplusplus/ocl_con1.zip OCL_CON1.ZIP]
| details view container sample
| IApplication, IContainerColumn, IContainerControl, IContainerObject, IFrameWindow, IString
|-
|
[ftp://hobbes.nmsu.edu/pub/os2/dev/cplusplus/ocl_thr1.zip OCL_THR1.ZIP]
| thread and timer sample (minimized icon fix explained)
| IApplication, ICommandEvent, ICommandHandler, IFrameWindow, IListBox, IPushButton, IString, ISystemMenu, IThread, IThreadFn, ITimer
|-
|
[ftp://hobbes.nmsu.edu/pub/os2/dev/cplusplus/ocl_ani2.zip OCL_ANI2.ZIP]
| animation sample #2
| IApplication, ICommandEvent, ICommandHandler, IColor, IControlEvent, IDrawingCanvas, IFrameWindow, IFrameEvent, IFrameHandler, IGBitmap, IGList, IGraphicContext, IMouseClickEvent, IMouseHandler, IPopUpMenu, ITimerMemberFn0
|-
|
[ftp://hobbes.nmsu.edu/pub/os2/dev/cplusplus/ocl_con2.zip OCL_CON2.ZIP]
| custom drawing in a details-view container
| IApplication, ICnrDrawHandler, IContainerColumn, IContainerControl, IContainerObject, IFrameWindow
|-
|
[ftp://hobbes.nmsu.edu/pub/os2/apps/graphics/ray/pov/plnch01g.zip PLNCH01G.ZIP]
| POV front-end
| Some of almost all classes available, including threads, canvases, icons, bitmaps, standard controls, profiles and exceptions.
|}
 
; Note:
: See also [additional_info.html Where to Obtain Additional Information]
 


=OCL - Compiling=
=OCL - Compiling=

Revision as of 14:52, 29 November 2012

By Stéphane Charette

General Information

History of the Open Class Library FAQ

The revision history is as follows:

Version Comment Author Date
0.1 initial write-up in OS/2's IPF (.INF) format SC 1997June20-21
0.1a added table of files at Hobbes SC 1997June24
0.1b converted the FAQ to HTML format SC 1997June28
0.1d Added animation sample
Added LNK2029 information
Updated fixpak information
Created "Errors in IBM's include files"
SC 1997Sept05
0.1e Changed e-mail address
Added POV_Launch to the Hobbes index
Added custom-draw container information
SC 1997Nov02

How to obtain a copy of the FAQ

To obtain a HTML copy of the FAQ for local installation, download the file ftp://hobbes.nmsu.edu/pub/os2/dev/cplusplus/ocl_faq.zip.

Unzip this file in it's own directory (if using PKUNZIP, remember to use the /D option to create the subdirectories) and use your favorite web browser to access the files locally.

Where to obtain additional information

The on-line reference for OCL is located in your VisualAge folder, under the VisualAge C++ Information folder. The reference .INF file should be titled Open Class Library Reference (D:\IBMCPP\HELP\CLREF.INF) while a second .INF user's guide is called Open Class Library User's Guide (D:\IBMCPP\HELP\CPPCLSUG.INF).

The first book, Open Class Library Reference has all of the documented methods, objects, and necessary include files. The easiest way to find what you need is probably to click on Classes By Name, normally the second option from the top (may depend on the version of the documentation).

Note that one of the most useful .INF books which IBM ships with VisualAge can easily be overlooked; in the VisualAge C++ Information folder is a book called VisualAge C++ Frequently Asked Questions which deals with quite a few OCL topics.

Additional information on programming using OCL can be obtained from a variety of sources. There is an increase in books published (some of which by IBM) which deal with OCL, as well as numerous sources on the Internet.

For more information, consult:

Books which deal with OCL are:

OS/2 Class Library
Power GUI programming with C/Set++
Written by Leon, Law, Love Tsuji & Olson
Published by John Wiley & Sons
ISBN 0-471-13117-2
(Obsolete and replaced by the following book)
Power GUI Programming with VisualAge C++
Written by Law, Love, Olson & Tsuji
Published by John Wiley & Sons
ISBN 0-471-16482-8
(recommended by Mark Anderson, os2team@romeop03.fishkill.ibm.com)

I need recommendations to more books and internet sites with sample code...


Index of samples on Hobbes

tarting mid-June, 1997, I have begun to upload to ftp://hobbes.nmsu.edu/pub/os2/dev/cplusplus a series of Open Class Library samples that I have written. The following table is the index of these samples.

Filename Description Classes Used

OCL_ANI1.ZIP

animation sample IApplication, IColor, IDrawingCanvas, IEvent, IFrameWindow, IGBitmap, IGList, IRectangle, ITimer

OCL_CON1.ZIP

details view container sample IApplication, IContainerColumn, IContainerControl, IContainerObject, IFrameWindow, IString

OCL_THR1.ZIP

thread and timer sample (minimized icon fix explained) IApplication, ICommandEvent, ICommandHandler, IFrameWindow, IListBox, IPushButton, IString, ISystemMenu, IThread, IThreadFn, ITimer

OCL_ANI2.ZIP

animation sample #2 IApplication, ICommandEvent, ICommandHandler, IColor, IControlEvent, IDrawingCanvas, IFrameWindow, IFrameEvent, IFrameHandler, IGBitmap, IGList, IGraphicContext, IMouseClickEvent, IMouseHandler, IPopUpMenu, ITimerMemberFn0

OCL_CON2.ZIP

custom drawing in a details-view container IApplication, ICnrDrawHandler, IContainerColumn, IContainerControl, IContainerObject, IFrameWindow

PLNCH01G.ZIP

POV front-end Some of almost all classes available, including threads, canvases, icons, bitmaps, standard controls, profiles and exceptions.
Note
See also [additional_info.html Where to Obtain Additional Information]


OCL - Compiling

OCL - Linking

OCL - Miscellaneous

OCL - Errors

OCL - Fixpacks and CSDs

Contributors