Hi,
I've tried about everything. Stuck...
In the past the following Custom Build Step associated with
the .hpj file in Visual Studio caused the WinHelp .hlp file to be generated
and only when it was out of date:
start /wait hcw /C /E /M "hlp\$(ProjectName).hpj"
if errorlevel 1 goto :HelpError
if not exist "hlp\HandyAvi.hlp" goto :HelpError
if not exist "hlp\HandyAvi.cnt" goto :HelpError
echo.
copy "hlp\HandyAvi.hlp" "$(OutDir)"
copy "hlp\HandyAvi.cnt" "$(OutDir)"
goto :HelpDone
:HelpError
echo hlp\$(ProjectName).hpj(1) : error: Problem encountered creating help file
:HelpDone
echo.
Now I have converted to HTML Help which generates a .chm file. Robohelp
does everything just fine but I would also like Visual Studio to compile the
.chm file if and only if it needs it.
The closest I have come is this:
start /wait hhc "hlp\htmlhelp\$(ProjectName).hhp"
REM if errorlevel 1 goto :HelpError0
if not exist "hlp\HandyAvi.chm" goto :HelpError
if not exist "hlp\HandyAvi.cnt" goto :HelpError
echo.
copy "hlp\HandyAvi.chm" "$(OutDir)"
copy "hlp\HandyAvi.cnt" "$(OutDir)"
goto :HelpDone
:HelpError
echo hlp\$(ProjectName).hpj(1) : error: Problem encountered creating help file
goto :HelpDone
:HelpError0
echo hlp\$(ProjectName).hpj(1) : error: hhc failed during help file creation.
:HelpDone
echo.
Close but no cigar... This ALWAYS causes the .chm file to be recompiled.
It also does not properly report errorlevel so I had to comment that out.
I've put more time in on this than I should have already...
I hate it when some subsystem "loses ground" and this one
has and it is really annoying me...
Please, anyone know how to make it work properly like it used to?
It seems I should be able to use hcw instead of hhc. Why can I not
make that work?
What is Robohelp actually doing when it compiles a .chm file?
Whatever the solution is, it can be tested in a DOS window...
I called Adobe. The people I talked to don't know how it works
and they don't know (or care?) how to make it work. :-)
Thanks!
I've tried about everything. Stuck...
In the past the following Custom Build Step associated with
the .hpj file in Visual Studio caused the WinHelp .hlp file to be generated
and only when it was out of date:
start /wait hcw /C /E /M "hlp\$(ProjectName).hpj"
if errorlevel 1 goto :HelpError
if not exist "hlp\HandyAvi.hlp" goto :HelpError
if not exist "hlp\HandyAvi.cnt" goto :HelpError
echo.
copy "hlp\HandyAvi.hlp" "$(OutDir)"
copy "hlp\HandyAvi.cnt" "$(OutDir)"
goto :HelpDone
:HelpError
echo hlp\$(ProjectName).hpj(1) : error: Problem encountered creating help file
:HelpDone
echo.
Now I have converted to HTML Help which generates a .chm file. Robohelp
does everything just fine but I would also like Visual Studio to compile the
.chm file if and only if it needs it.
The closest I have come is this:
start /wait hhc "hlp\htmlhelp\$(ProjectName).hhp"
REM if errorlevel 1 goto :HelpError0
if not exist "hlp\HandyAvi.chm" goto :HelpError
if not exist "hlp\HandyAvi.cnt" goto :HelpError
echo.
copy "hlp\HandyAvi.chm" "$(OutDir)"
copy "hlp\HandyAvi.cnt" "$(OutDir)"
goto :HelpDone
:HelpError
echo hlp\$(ProjectName).hpj(1) : error: Problem encountered creating help file
goto :HelpDone
:HelpError0
echo hlp\$(ProjectName).hpj(1) : error: hhc failed during help file creation.
:HelpDone
echo.
Close but no cigar... This ALWAYS causes the .chm file to be recompiled.
It also does not properly report errorlevel so I had to comment that out.
I've put more time in on this than I should have already...
I hate it when some subsystem "loses ground" and this one
has and it is really annoying me...
Please, anyone know how to make it work properly like it used to?
It seems I should be able to use hcw instead of hhc. Why can I not
make that work?
What is Robohelp actually doing when it compiles a .chm file?
Whatever the solution is, it can be tested in a DOS window...
I called Adobe. The people I talked to don't know how it works
and they don't know (or care?) how to make it work. :-)
Thanks!