TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Frank Castellucci
from: Michael Douglass
date: 1994-06-10 10:20:20
subject: Os/2 Pm Programmers-=Loo

FC> When I looked at Guidlelines it says that it generates C++ code but
FC> it was actually C! Also, this JOT thing, who needs to learn another
FC> language?

Oh...  But it's not!  Almost EVERY piece of code generated is C++.  This
is true because many of the things that the Guidelines libraries do are
in classes(so they're smart! ).  You can see the STRING class itself
in the header files. (That's a GIANT class!)

Not only that, you can write your own classes in C++ and link them in
with Guidelines.  I've found Guidelines lacking in several areas and I
have begun writing classes to handle these.  The first one I wrote (or
started) was one to handle standard dialog boxes.  I've already
implemented one for the standard FILE dialog box (I even had it modify
the control's positions and the way in which it works so that I could
allow users to select DIRS!).  The one I'm developing now is a FSTRM
class to handle file streams (for some reason in one application the
fstream worked, but in another it didn't, so I thought I'd write my
own...)

It's fairly simple to do if you're reading this and saying to yourself,
"tell me how!"  First, you must write both a .HPP and a .CPP file in
your favorite OS/2 compiler.  Place all declarations in the header file
and put the code in the .CPP file.  Have the compiler "compile" the .CPP
file (don't have it try to link it... It won't work without a main()!).
Then, copy the .OBJ file into the ..\sys directory and the .HPP file
into your compilers include directory (or you could make a separate one
and have Guidelines look in it for included files too).  Then, under
Guidelines go to EDIT|EXTERNAL FILES and add one including both your HPP
and your OBJ file.  Now, you can use the functions as freely as you
would like.  There is, however, one small thing you MUST remember and
that is that any code you try to use MUST have C: in front of it since
Guidelines doesn't know what's in the .OBJ file.

Enjoy!
Michael Douglass
OS/2 2.1'n it!!!
Guidelining it!!
___
 .Mike's Mail Internet:   MICHAEL.DOUGLASS{at}LCHANCE.SAT.TX.US

--- Maximus/2 2.01wb

* Origin: The Rock BBS--410Meg, i486/33, ZyXEL v32bis. (1:387/31)
SEEN-BY: 54/54 620/243 632/348 640/820 690/660 711/409 413 430 807 808 809
SEEN-BY: 711/934 712/353 623 713/888 800/1 2442/0
@PATH: 387/31 1102 3615/50 229/2 2442/0 711/409 54/54 711/808 809 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™.