wahorger

Joined: 13 Oct 2014 Posts: 654 Location: Morrison, CO, USA
|
Posted: Fri Sep 27, 2019 3:09 pm Post subject: Using HELP files |
|
|
I have run across something I cannot duplicate in a "trivial" program. And, I cannot tell if it is a problem in the HELP interface within ClearWin or the source document (built with HelpScribble).
I am using a function call to set the "Help" menu choice at the end of building a Window. When I invoked HELP, what I would see in the MS Help display of the CHM file was the string I was looking for PLUS other string information. It was as if the separator (or end-of-characters character) was missing from the API call.
The fix: So, in my function, I append a CHAR(0) to the end of the topic string which is passed as CHARACTER*(*). This appears to work consistently now. But I have not exhaustively tested this in full operations.
My question is: Since the string is built at run-time (appending the CHAR(0)) and uses the stack, am I at risk of having the Help topic being over-written whilst the program is interacting with the user? |
|