Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Failed to set data, when installing help files 1

Status
Not open for further replies.

sggaunt

Programmer
Jul 4, 2001
8,620
0
0
GB
Anyone know about this?

When attempting to install help files for a third party component, I get 'Failed to set data for CPort.hlp' same for toc file.


Steve: N.M.N.F.
If something is popular, it must be wrong: Mark Twain
 
FWIW in searching I find that a message like this occurs because a registry key fails in getting set. Keep in mind that hlp went the way of the dinosaur in Windows Vista and Seven, so you might have issues there if you are trying this on those OSes.

Hopefully that's some clue towards the answer you seek.

It is not possible for anyone to acknowledge truth when their salary depends on them not doing it.
 
Yes it is a Vista System, what is annoying is that all the installed by default 3rd party components e.g Indy, TChart the help system works fine.


Steve: N.M.N.F.
If something is popular, it must be wrong: Mark Twain
 
This is a common mistake in the creation of the registry component. Traditionally, most people are used to...

Code:
var
  R: TRegistry;
begin
  R:= TRegistry.Create;

But like mentioned above, it will not work with later version of Windows. Instead, you have to tell it how you will be accessing the registry:

Code:
var
  R: TRegistry;
begin
  R:= TRegistry.Create(KEY_READ or KEY_WRITE)

You would set this accordingly depending on how you intend to access the registry. This is because of new security features in Vista and above.


JD Solutions
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top