One of the limitations of the built in help viewer is all images must be
located in the same folder as the htm file (\windows). I'm not sure also if
JPEGs are supported, I have a nagging suspicion that only Bitmap (bmp, 2bp)
files are allowed.
Peter
--
Peter Foot
Windows Embedded MVP
In The Hand
http://www.inthehand.com
"kathy" <kathy.TakeThisOut@nospam.com> wrote in message
news:220a01c373c9$11895720$a101280a@phx.gbl...
> I have a help file called "help.htm". It is located in
> the \windows directory. The help.htm file uses some
> picture files(pic1.jpg,pic2.jpg,...) which is located in
> \windows\pic\.
>
> I can use file explorer to open the help.htm and it works
> fine.
>
> But in my program, When I try to open the file by using
> CreateProcess("peghelp.exe","help.htm",...), I got
> error "can not find file in \windows\pic\pic1.jpg,...".
>
> But if my help file does not include the picture, I can
> open the help file using CreateProcess(...).
>
> What is the problem?