Connect online-help and progress application?

Frodo

New Member
Hello Talkers,

This question was also posted on GUI, but it belongs here.

I have to standardisise the way we make online help. It has to go quicker and better. The thing is, I myself have never written an online help. Does anyone of you know how to open an online-help file from within an progress application? Extention .chm. I asume it is the same way as opening Word or Exel but i do not know. I need to know the code.
Progress help is ok but not if you do not know precicely what your are looking for.

Does someone maybe know if this what i want is also possible from within a Cascading Style Sheet?

Thanks, Frodo
 

Chris Kelleher

Administrator
Staff member
The easiest way to call an external program is to use the Windows API ShellExecute command.

Code:
  PROCEDURE ShellExecute{&A} EXTERNAL "shell32" :
      DEFINE INPUT PARAMETER HWND AS LONG.
      DEFINE INPUT PARAMETER lpOperation AS CHAR.
      DEFINE INPUT PARAMETER lpFile AS CHAR.
      DEFINE INPUT PARAMETER lpParameters AS CHAR.
      DEFINE INPUT PARAMETER lpDirectory AS CHAR.
      DEFINE INPUT PARAMETER nShowCmd AS LONG.
      DEFINE RETURN PARAMETER hInstance AS LONG.
   END.

   RUN ShellExecute{&A} IN hpApi(0,
                               "open",
                               "c:\myhelp.chm",
                               "",
                               "",
                               1,
                               OUTPUT hInstance).

Here's some more information about it: http://www.global-shared.com/api/exec/shellex.html
 
Top