www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - HTML Help problems

reply "Dimitri Kaparis" <dkaparis universalstudyhelper.com> writes:
Hello,

Has anyone used HTML Help succesfully from an application built with Digital
Mars?
The HtmlHelp API function is declared in htmlhelp.h in MS SDK and I have
succesfully compiled it. This function is in a library called
"htmlhelp.lib". I had previously converted Microsoft's SDK lib's for use
with Digital Mars, as directed at Christof's site
(http://cmeerw.org/prog/dm/ms_sdk.html) - converted using Microsoft's linker
and then with coff2omf - and have since used them without problems. Now,
when I tried to link htmlhelp.lib, I got the following error from the
linker:
Error: C:\Program Files\Microsoft SDK\Lib\htmlhelp.lib(init)  (7840179):
Index Range
There is another htmlhelp.lib, distributed with the HTML Help Workshop. I
ran coff2omf directly on it and was able to link with it, getting the
following warning:
Warning: C:\documents and settings\dimitri\my documents\my
projects\studyhelper\..\..\..\..\..\Program Files\HTML Help
Workshop\lib\htmlhelp.lib(init)  (144): Unknown CV version, ignored
The program seems to run and displays HTML help with no apparent problems,
however I am somewhat concerned with these problems.
Why did I get the first error, what are the implications of that warning and
is it safe to ignore it?

Best regards,
Dimitri

-- 
http://www.universalstudyhelper.com - Universal Study Helper
Learn and memorize quickly and efficiently any subject and information!
Jul 14 2003
parent reply "Walter" <walter digitalmars.com> writes:
The "index range" error was solved with the latest beta version. See
www.digitalmars.com/download/freecompiler.html


"Dimitri Kaparis" <dkaparis universalstudyhelper.com> wrote in message
news:bevin2$1dtm$1 digitaldaemon.com...
 Hello,

 Has anyone used HTML Help succesfully from an application built with

 Mars?
 The HtmlHelp API function is declared in htmlhelp.h in MS SDK and I have
 succesfully compiled it. This function is in a library called
 "htmlhelp.lib". I had previously converted Microsoft's SDK lib's for use
 with Digital Mars, as directed at Christof's site
 (http://cmeerw.org/prog/dm/ms_sdk.html) - converted using Microsoft's

 and then with coff2omf - and have since used them without problems. Now,
 when I tried to link htmlhelp.lib, I got the following error from the
 linker:
 Error: C:\Program Files\Microsoft SDK\Lib\htmlhelp.lib(init)  (7840179):
 Index Range
 There is another htmlhelp.lib, distributed with the HTML Help Workshop. I
 ran coff2omf directly on it and was able to link with it, getting the
 following warning:
 Warning: C:\documents and settings\dimitri\my documents\my
 projects\studyhelper\..\..\..\..\..\Program Files\HTML Help
 Workshop\lib\htmlhelp.lib(init)  (144): Unknown CV version, ignored
 The program seems to run and displays HTML help with no apparent problems,
 however I am somewhat concerned with these problems.
 Why did I get the first error, what are the implications of that warning

 is it safe to ignore it?

 Best regards,
 Dimitri

 --
 http://www.universalstudyhelper.com - Universal Study Helper
 Learn and memorize quickly and efficiently any subject and information!

Jul 14 2003
parent reply "Dimitri Kaparis" <dkaparis universalstudyhelper.com> writes:
That's great, but I have to release within very short time and I am somewhat
reluctant to use beta version of the compiler for a release build if there
is some other way. As I have written, I was able to link with htmlhelp.lib
distributed with the HTML Help Workshop, although with a warning. If that
can be safely ignored, I would rather use that build. What would you advise?

"Walter" <walter digitalmars.com> wrote in message
news:bf07ie$20fv$1 digitaldaemon.com...
 The "index range" error was solved with the latest beta version. See
 www.digitalmars.com/download/freecompiler.html


 "Dimitri Kaparis" <dkaparis universalstudyhelper.com> wrote in message
 news:bevin2$1dtm$1 digitaldaemon.com...
 Hello,

 Has anyone used HTML Help succesfully from an application built with

 Mars?
 The HtmlHelp API function is declared in htmlhelp.h in MS SDK and I have
 succesfully compiled it. This function is in a library called
 "htmlhelp.lib". I had previously converted Microsoft's SDK lib's for use
 with Digital Mars, as directed at Christof's site
 (http://cmeerw.org/prog/dm/ms_sdk.html) - converted using Microsoft's

 and then with coff2omf - and have since used them without problems. Now,
 when I tried to link htmlhelp.lib, I got the following error from the
 linker:
 Error: C:\Program Files\Microsoft SDK\Lib\htmlhelp.lib(init)  (7840179):
 Index Range
 There is another htmlhelp.lib, distributed with the HTML Help Workshop.


 ran coff2omf directly on it and was able to link with it, getting the
 following warning:
 Warning: C:\documents and settings\dimitri\my documents\my
 projects\studyhelper\..\..\..\..\..\Program Files\HTML Help
 Workshop\lib\htmlhelp.lib(init)  (144): Unknown CV version, ignored
 The program seems to run and displays HTML help with no apparent


 however I am somewhat concerned with these problems.
 Why did I get the first error, what are the implications of that warning

 is it safe to ignore it?

 Best regards,
 Dimitri

 --
 http://www.universalstudyhelper.com - Universal Study Helper
 Learn and memorize quickly and efficiently any subject and information!


Jul 15 2003
parent reply "Walter" <walter digitalmars.com> writes:
The beta compiler goes through the same testing process as the production
build. The difference really is that not enough of a change is in it to
merit a new release. In any case, there isn't any substitute for testing any
product until you are satisfied it works correctly, regardless of the
compiler used! I also suggest archiving a copy of the compiler used to build
your release along with your source code.

"Dimitri Kaparis" <dkaparis universalstudyhelper.com> wrote in message
news:bf0j95$2c1l$1 digitaldaemon.com...
 That's great, but I have to release within very short time and I am

 reluctant to use beta version of the compiler for a release build if there
 is some other way. As I have written, I was able to link with htmlhelp.lib
 distributed with the HTML Help Workshop, although with a warning. If that
 can be safely ignored, I would rather use that build. What would you

 "Walter" <walter digitalmars.com> wrote in message
 news:bf07ie$20fv$1 digitaldaemon.com...
 The "index range" error was solved with the latest beta version. See
 www.digitalmars.com/download/freecompiler.html


 "Dimitri Kaparis" <dkaparis universalstudyhelper.com> wrote in message
 news:bevin2$1dtm$1 digitaldaemon.com...
 Hello,

 Has anyone used HTML Help succesfully from an application built with

 Mars?
 The HtmlHelp API function is declared in htmlhelp.h in MS SDK and I



 succesfully compiled it. This function is in a library called
 "htmlhelp.lib". I had previously converted Microsoft's SDK lib's for



 with Digital Mars, as directed at Christof's site
 (http://cmeerw.org/prog/dm/ms_sdk.html) - converted using Microsoft's

 and then with coff2omf - and have since used them without problems.



 when I tried to link htmlhelp.lib, I got the following error from the
 linker:
 Error: C:\Program Files\Microsoft SDK\Lib\htmlhelp.lib(init)



 Index Range
 There is another htmlhelp.lib, distributed with the HTML Help



 I
 ran coff2omf directly on it and was able to link with it, getting the
 following warning:
 Warning: C:\documents and settings\dimitri\my documents\my
 projects\studyhelper\..\..\..\..\..\Program Files\HTML Help
 Workshop\lib\htmlhelp.lib(init)  (144): Unknown CV version, ignored
 The program seems to run and displays HTML help with no apparent


 however I am somewhat concerned with these problems.
 Why did I get the first error, what are the implications of that



 and
 is it safe to ignore it?

 Best regards,
 Dimitri

 --
 http://www.universalstudyhelper.com - Universal Study Helper
 Learn and memorize quickly and efficiently any subject and






Jul 15 2003
parent reply "Dimitri Kaparis" <dkaparis universalstudyhelper.com> writes:
I see. Of course I was not implying that using the production build compiler
would in any way substitute testing in ensuring the produced software is
error-free, just observing that for production code it would be more
sensible to stick with known reliable releases of the compiler, than using
test versions.
Anyway, having considered what you have written, I decided to give the beta
a try.
Still getting the same results. Trying to link with htmlhelp.lib from MS SDK
gives the following error on the command line:

C:\Program Files\Microsoft SDK\Lib\htmlhelp.lib(init)  Offset 05563H Record
Type
 00A1
 Error 16: Index Range

Of course something may have gone wrong when converting to OMF, or the
library could have been corrupted in some other way. I deem this very
unlikely, however, since I have used other libraries from the MS SDK without
problems and I haven't touched this one. I can't easily verify this by
reinstalling and re-converting because I don't currently have access to a
Visual C++ 6 installation and the Win98 DDK is no longer available from
Microsoft. This could be confirmed by someone else who has tried to use
htmlhelp.lib (anyone?).
Trying with the other version, distributed with HTML Help Workshop
(converted it directly with coff2omf), again I was able to link, getting the
same warning I wrote about earlier:

..\..\..\..\..\Program Files\HTML Help Workshop\lib\htmlhelp.lib(init)
 Warning 161: Unknown CV version, ignored

So, failing to track down the "Index Range" problem, the question seems to
be, what does this warning mean, and could it indicate some sublte error
that my testing could possibly miss?

"Walter" <walter digitalmars.com> wrote in message
news:bf1dgv$6aq$1 digitaldaemon.com...
 The beta compiler goes through the same testing process as the production
 build. The difference really is that not enough of a change is in it to
 merit a new release. In any case, there isn't any substitute for testing

 product until you are satisfied it works correctly, regardless of the
 compiler used! I also suggest archiving a copy of the compiler used to

 your release along with your source code.

 "Dimitri Kaparis" <dkaparis universalstudyhelper.com> wrote in message
 news:bf0j95$2c1l$1 digitaldaemon.com...
 That's great, but I have to release within very short time and I am

 reluctant to use beta version of the compiler for a release build if


 is some other way. As I have written, I was able to link with


 distributed with the HTML Help Workshop, although with a warning. If


 can be safely ignored, I would rather use that build. What would you

 "Walter" <walter digitalmars.com> wrote in message
 news:bf07ie$20fv$1 digitaldaemon.com...
 The "index range" error was solved with the latest beta version. See
 www.digitalmars.com/download/freecompiler.html


 "Dimitri Kaparis" <dkaparis universalstudyhelper.com> wrote in message
 news:bevin2$1dtm$1 digitaldaemon.com...
 Hello,

 Has anyone used HTML Help succesfully from an application built with

 Mars?
 The HtmlHelp API function is declared in htmlhelp.h in MS SDK and I



 succesfully compiled it. This function is in a library called
 "htmlhelp.lib". I had previously converted Microsoft's SDK lib's for



 with Digital Mars, as directed at Christof's site
 (http://cmeerw.org/prog/dm/ms_sdk.html) - converted using




 linker
 and then with coff2omf - and have since used them without problems.



 when I tried to link htmlhelp.lib, I got the following error from




 linker:
 Error: C:\Program Files\Microsoft SDK\Lib\htmlhelp.lib(init)



 Index Range
 There is another htmlhelp.lib, distributed with the HTML Help



 I
 ran coff2omf directly on it and was able to link with it, getting




 following warning:
 Warning: C:\documents and settings\dimitri\my documents\my
 projects\studyhelper\..\..\..\..\..\Program Files\HTML Help
 Workshop\lib\htmlhelp.lib(init)  (144): Unknown CV version, ignored
 The program seems to run and displays HTML help with no apparent


 however I am somewhat concerned with these problems.
 Why did I get the first error, what are the implications of that



 and
 is it safe to ignore it?

 Best regards,
 Dimitri

 --
 http://www.universalstudyhelper.com - Universal Study Helper
 Learn and memorize quickly and efficiently any subject and




Jul 15 2003
parent reply "Dimitri Kaparis" <dkaparis universalstudyhelper.com> writes:
A small update on the htmlhelp.lib linking issue.
The "Unknonwn CV version" warning appears only when linking with debug
information (/CO option). Without that option (i.e., on release builds), the
linker does not complain. The index range error is not affected by this -
linking with the library from MS SDK fails regardless of debug information.

"Dimitri Kaparis" <dkaparis universalstudyhelper.com> wrote in message
news:bf22qa$tof$1 digitaldaemon.com...
 I see. Of course I was not implying that using the production build

 would in any way substitute testing in ensuring the produced software is
 error-free, just observing that for production code it would be more
 sensible to stick with known reliable releases of the compiler, than using
 test versions.
 Anyway, having considered what you have written, I decided to give the

 a try.
 Still getting the same results. Trying to link with htmlhelp.lib from MS

 gives the following error on the command line:

 C:\Program Files\Microsoft SDK\Lib\htmlhelp.lib(init)  Offset 05563H

 Type
  00A1
  Error 16: Index Range

 Of course something may have gone wrong when converting to OMF, or the
 library could have been corrupted in some other way. I deem this very
 unlikely, however, since I have used other libraries from the MS SDK

 problems and I haven't touched this one. I can't easily verify this by
 reinstalling and re-converting because I don't currently have access to a
 Visual C++ 6 installation and the Win98 DDK is no longer available from
 Microsoft. This could be confirmed by someone else who has tried to use
 htmlhelp.lib (anyone?).
 Trying with the other version, distributed with HTML Help Workshop
 (converted it directly with coff2omf), again I was able to link, getting

 same warning I wrote about earlier:

 ..\..\..\..\..\Program Files\HTML Help Workshop\lib\htmlhelp.lib(init)
  Warning 161: Unknown CV version, ignored

 So, failing to track down the "Index Range" problem, the question seems to
 be, what does this warning mean, and could it indicate some sublte error
 that my testing could possibly miss?

 "Walter" <walter digitalmars.com> wrote in message
 news:bf1dgv$6aq$1 digitaldaemon.com...
 The beta compiler goes through the same testing process as the


 build. The difference really is that not enough of a change is in it to
 merit a new release. In any case, there isn't any substitute for testing

 product until you are satisfied it works correctly, regardless of the
 compiler used! I also suggest archiving a copy of the compiler used to

 your release along with your source code.

 "Dimitri Kaparis" <dkaparis universalstudyhelper.com> wrote in message
 news:bf0j95$2c1l$1 digitaldaemon.com...
 That's great, but I have to release within very short time and I am

 reluctant to use beta version of the compiler for a release build if


 is some other way. As I have written, I was able to link with


 distributed with the HTML Help Workshop, although with a warning. If


 can be safely ignored, I would rather use that build. What would you

 "Walter" <walter digitalmars.com> wrote in message
 news:bf07ie$20fv$1 digitaldaemon.com...
 The "index range" error was solved with the latest beta version. See
 www.digitalmars.com/download/freecompiler.html


 "Dimitri Kaparis" <dkaparis universalstudyhelper.com> wrote in




 news:bevin2$1dtm$1 digitaldaemon.com...
 Hello,

 Has anyone used HTML Help succesfully from an application built





 Digital
 Mars?
 The HtmlHelp API function is declared in htmlhelp.h in MS SDK and





 have
 succesfully compiled it. This function is in a library called
 "htmlhelp.lib". I had previously converted Microsoft's SDK lib's





 use
 with Digital Mars, as directed at Christof's site
 (http://cmeerw.org/prog/dm/ms_sdk.html) - converted using




 linker
 and then with coff2omf - and have since used them without





 Now,
 when I tried to link htmlhelp.lib, I got the following error from




 linker:
 Error: C:\Program Files\Microsoft SDK\Lib\htmlhelp.lib(init)



 Index Range
 There is another htmlhelp.lib, distributed with the HTML Help



 I
 ran coff2omf directly on it and was able to link with it, getting




 following warning:
 Warning: C:\documents and settings\dimitri\my documents\my
 projects\studyhelper\..\..\..\..\..\Program Files\HTML Help
 Workshop\lib\htmlhelp.lib(init)  (144): Unknown CV version,





 The program seems to run and displays HTML help with no apparent


 however I am somewhat concerned with these problems.
 Why did I get the first error, what are the implications of that



 and
 is it safe to ignore it?

 Best regards,
 Dimitri

 --
 http://www.universalstudyhelper.com - Universal Study Helper
 Learn and memorize quickly and efficiently any subject and





Jul 15 2003
parent "Walter" <walter digitalmars.com> writes:
Try extracting init.obj from htmlhelp.lib and email it to me. -Walter

"Dimitri Kaparis" <dkaparis universalstudyhelper.com> wrote in message
news:bf25fs$108r$1 digitaldaemon.com...
 A small update on the htmlhelp.lib linking issue.
 The "Unknonwn CV version" warning appears only when linking with debug
 information (/CO option). Without that option (i.e., on release builds),

 linker does not complain. The index range error is not affected by this -
 linking with the library from MS SDK fails regardless of debug

 "Dimitri Kaparis" <dkaparis universalstudyhelper.com> wrote in message
 news:bf22qa$tof$1 digitaldaemon.com...
 I see. Of course I was not implying that using the production build

 would in any way substitute testing in ensuring the produced software is
 error-free, just observing that for production code it would be more
 sensible to stick with known reliable releases of the compiler, than


 test versions.
 Anyway, having considered what you have written, I decided to give the

 a try.
 Still getting the same results. Trying to link with htmlhelp.lib from MS

 gives the following error on the command line:

 C:\Program Files\Microsoft SDK\Lib\htmlhelp.lib(init)  Offset 05563H

 Type
  00A1
  Error 16: Index Range

 Of course something may have gone wrong when converting to OMF, or the
 library could have been corrupted in some other way. I deem this very
 unlikely, however, since I have used other libraries from the MS SDK

 problems and I haven't touched this one. I can't easily verify this by
 reinstalling and re-converting because I don't currently have access to


 Visual C++ 6 installation and the Win98 DDK is no longer available from
 Microsoft. This could be confirmed by someone else who has tried to use
 htmlhelp.lib (anyone?).
 Trying with the other version, distributed with HTML Help Workshop
 (converted it directly with coff2omf), again I was able to link, getting

 same warning I wrote about earlier:

 ..\..\..\..\..\Program Files\HTML Help Workshop\lib\htmlhelp.lib(init)
  Warning 161: Unknown CV version, ignored

 So, failing to track down the "Index Range" problem, the question seems


 be, what does this warning mean, and could it indicate some sublte error
 that my testing could possibly miss?

 "Walter" <walter digitalmars.com> wrote in message
 news:bf1dgv$6aq$1 digitaldaemon.com...
 The beta compiler goes through the same testing process as the


 build. The difference really is that not enough of a change is in it



 merit a new release. In any case, there isn't any substitute for



 any
 product until you are satisfied it works correctly, regardless of the
 compiler used! I also suggest archiving a copy of the compiler used to

 your release along with your source code.

 "Dimitri Kaparis" <dkaparis universalstudyhelper.com> wrote in message
 news:bf0j95$2c1l$1 digitaldaemon.com...
 That's great, but I have to release within very short time and I am

 reluctant to use beta version of the compiler for a release build if


 is some other way. As I have written, I was able to link with


 distributed with the HTML Help Workshop, although with a warning. If


 can be safely ignored, I would rather use that build. What would you

 "Walter" <walter digitalmars.com> wrote in message
 news:bf07ie$20fv$1 digitaldaemon.com...
 The "index range" error was solved with the latest beta version.





 www.digitalmars.com/download/freecompiler.html


 "Dimitri Kaparis" <dkaparis universalstudyhelper.com> wrote in




 news:bevin2$1dtm$1 digitaldaemon.com...
 Hello,

 Has anyone used HTML Help succesfully from an application built





 Digital
 Mars?
 The HtmlHelp API function is declared in htmlhelp.h in MS SDK






 I
 have
 succesfully compiled it. This function is in a library called
 "htmlhelp.lib". I had previously converted Microsoft's SDK lib's





 use
 with Digital Mars, as directed at Christof's site
 (http://cmeerw.org/prog/dm/ms_sdk.html) - converted using




 linker
 and then with coff2omf - and have since used them without





 Now,
 when I tried to link htmlhelp.lib, I got the following error






 the
 linker:
 Error: C:\Program Files\Microsoft SDK\Lib\htmlhelp.lib(init)



 Index Range
 There is another htmlhelp.lib, distributed with the HTML Help



 I
 ran coff2omf directly on it and was able to link with it,






 the
 following warning:
 Warning: C:\documents and settings\dimitri\my documents\my
 projects\studyhelper\..\..\..\..\..\Program Files\HTML Help
 Workshop\lib\htmlhelp.lib(init)  (144): Unknown CV version,





 The program seems to run and displays HTML help with no apparent


 however I am somewhat concerned with these problems.
 Why did I get the first error, what are the implications of that



 and
 is it safe to ignore it?

 Best regards,
 Dimitri

 --
 http://www.universalstudyhelper.com - Universal Study Helper
 Learn and memorize quickly and efficiently any subject and






Jul 16 2003