Thread View: comp.os.os2.programmer
2 messages
2 total messages
Started by Chris Sullivan
Wed, 15 Apr 1992 18:04
Building HELP with IPFC
Author: Chris Sullivan
Date: Wed, 15 Apr 1992 18:04
Date: Wed, 15 Apr 1992 18:04
11 lines
763 bytes
763 bytes
Can anyone answer the folowing questions on programming help for OS/2 ? (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. (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?
Re: Building HELP with IPFC
Author: Larry Salomon, Jr.
Date: Wed, 15 Apr 1992 15:08
Date: Wed, 15 Apr 1992 15:08
38 lines
2297 bytes
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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads