Skip to content

invoking a .chm file

Forums Forums SIMPOL Programming invoking a .chm file

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #157
    Jim Locker
    Member

    The following code does not work: function gethelp(wxmenuitem me, pmgr_application app) export integer e e = 0: !execute(“pmgr.chm”, error = e) end function It returns error 193 from the system. The pmgr.chm file does exist, is in the same directory as the program executable, and can be invoked by name from a command line. How can I successfully invoke a Windows HTML help file?

    #1424
    Jim Locker
    Member

    It turns out that the shellexecute() library function successfully invokes
    this file. Not sure why !execute doesn't work though.

    #1408
    Michael
    Keymaster

    On 25/09/2013 19:37, Jim wrote:
    > It turns out that the shellexecute() library function successfully invokes
    > this file. Not sure why !execute doesn't work though.
    >

    Hi Jim,

    The !execute() command attempts to run a file. It is not making use of the shell extensions. It is basically just executing the
    file, so if it isn't some form of runnable code, it will fail. The shellexecute() function supports the system's ability to look
    up the appropriate exe for a given extension.

    Ciao, Neil

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.