🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #712

Re: Building HELP with IPFC

#712
From: Larry Salomon, Jr.
Date: Wed, 15 Apr 1992 15:08
38 lines
2297 bytes
In <65090.105921792@kcbbs.gen.nz>, Chris_Sullivan@kcbbs.gen.nz (Chris Sullivan) writes:
>
>
>(1)  When creating a .HLP file using the IPFC compiler, is there
>any way of binding the .HLP into the .EXE.  I'd like to do away
>with a seperate .HLP file but I'm not sure if this is possible.

You couldn't in 1.3 and I don't think this has changed for 2.0.

>(2)  When creating a .IPF source file for the IPFC compiler, is
>there any way to use symbolic constants from a .H file instead of
>literal constants?

Not that I know of.  You could always use the C preprocessor to do this,
by having it generate a "preprocessed source" file.  However, you could
run into problems.  For instance, with Microsoft's C compiler:

:h1 res=EXTHLP1.Extended help for Fubar

the compiler substitutes "1" for "EXTHLP1" and then it tries to
interpret the resulting "1.Ex" as a floating point number (WHY???  THIS
IS A PREPROCESSOR!!!), which results in an error, since 'x' is not a
valid digit.

For this example, the work-around is to change it to:

:h1 res=EXTHLP1 id="DUMMYID1".Extended help for Fubar

Cheers,
Larry Salomon, Jr. (aka 'Q')            LARRYS@YKTVMV.BITNET
OS/2 Applications and Tools             larrys@watson.ibm.com
IBM T.J. Watson Research Center         larrys@ibmman.watson.ibm.com
Yorktown Heights, NY                    larrys@ibmman2.watson.ibm.com

Disclaimer:  The statements and/or opinions stated above are strictly my
own and do not reflect the views of my employer.  Additionally, I have a
reputation for being obnoxious, so don't take any personal attacks too
seriously.
Technical Details
Message-ID: <1992Apr15.141256.18459@watson.ibm.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!darwin.sura.net!gatech!news.ans.net!yktnews!admin!watson!larrys
References: <65090.105921792@kcbbs.gen.nz>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!darwin.sura.net!gatech!news.ans.net!yktnews!admin!watson!larrys
From: larrys@watson.ibm.com (Larry Salomon, Jr.)
Subject: Re: Building HELP with IPFC
Message-ID: <1992Apr15.141256.18459@watson.ibm.com>
Sender: larrys@watson.ibm.com
Date: Wed, 15 Apr 1992 15:08:18 GMT
News-Software: NewsKit 1.2 - LaMail
Reply-To: larrys@watson.ibm.com
Disclaimer: This posting represents the poster's views, not necessarily those of IBM
References: <65090.105921792@kcbbs.gen.nz>
Nntp-Posting-Host: ibmman2.watson.ibm.com
Organization: IBM Research
Lines: 38