2

I'm trying to debug come code that uses WINIO, but unfortunately I can't find any good explanation on what it's supposed to be doing. The standard download comes with a CHM helpfile, but just to add insult to injury, every page of the helpfile is blank!

enter image description here

Is there something wrong with the help file, or is it really meant to be full of empty pages?

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
Mason Wheeler
  • 82,511
  • 50
  • 270
  • 477
  • possible duplicate of [Opening a CHM file produces: "navigation to the webpage was canceled"](http://stackoverflow.com/questions/11438634/opening-a-chm-file-produces-navigation-to-the-webpage-was-canceled) – Helen Mar 10 '15 at 16:23

2 Answers2

5

You've already got the documentation. It's that help file. But the help file was downloaded from the web and your computer knows this and doesn't want to show the HTML until you tell it to trust it.

Right click on the .chm file and select Properties.

enter image description here

Then click the Unblock button.

enter image description here

Then open the help file again and you can see the content.

enter image description here

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
0

Since this is stackoverflow, here's a programmatical solution, in Delphi (from FPC's winutils unit)

procedure UnBlockFile(const name:String);
var f : file;
begin
 assignfile(f,name+':Zone.Identifier');
 rewrite(f,1);
 truncate(f);
 closefile(f);
end;
Marco van de Voort
  • 25,628
  • 5
  • 56
  • 89