Problem with .CHM in D7

Giganews Newsgroups
Subject:Problem with .CHM in D7
Posted by: Normand Peladeau (somo…@somewhere.com)
Date:Mon, 30 Nov 2009

I have an application that was compiled in D7.  I have tried various
components that allows one use a HTML file with a .chm file extension and it
work fine when executing the EXE or from the IDE.  However, when I create a
simple application that runs it using WinExec,

    procedure TForm1.Button1Click(Sender: TObject);
    Var
      S : String;
    begin
      S := ExtractFilepath(ParamStr(0))+MyApp.exe';
      WinExec(Pchar(S),0);
    end;

the application runs fine but the help file is not longer accessible. Any
idea what may be going on?

I have tested a few libraries to call .CHM files, but none of them seem to
work when running the application this way.

Normand

Replies