Delphi 4 error:- file not found:'htmlcons.inc'

1.8k Views Asked by At

I was trying to run/compile/build/ the Project (Delphi 4).

I tried out this method also http://www.cryer.co.uk/brian/delphi/error_fnfCDO_TLB.htm

It consistently shows to an error

  "file not found:'htmlcons.inc'"

at wits end ,what to do?

Kindly help.

Thanks and Regards -Vas

3

There are 3 best solutions below

0
On

htmlcons.inc is part of the "HTML Viewer Components" available (for free) from http://pbear.com/.

It is basically a Delphi based HTML rendering engine.

1
On

You mentioned in your other question that you were having trouble with the PBear components, and updating your library path fixed it. Did that also fix this problem?

2
On

Add the path of htmlcons.inc file, in the project search path.

Edit:

I don't have Delphi 4 to check what is the way to do that.

You should add the full folder path "C:\Program Files\PBear\HTMLComponents\Thtml\Package" where htmlIcons.inc is, in the project option "Search Path", or in the Global "Library Path".

Project Options in Delphi 2009: - Menu: Project | Options | Delphi Compiler | Search Path

Global Options in Delphi 2009: - Menu: Tools | Options | Environment Options | Delphi Options | Library Win32 | Library path

It will work with any of both option, if you change global, it will be there for any project, or if you add only to the project option you are compiling, you can add a relative path.