Window name 'main' passed to HH_GET_WIN_TYPE not specified

This forum is for all Flare issues related to the Microsoft HTML Help target.
This target produces "CHM" files in the output.
Post Reply
MC Hammer
Sr. Propeller Head
Posts: 225
Joined: Wed Aug 08, 2007 3:04 am
Location: In a galaxy far, far away

Window name 'main' passed to HH_GET_WIN_TYPE not specified

Post by MC Hammer »

Hi everyone
Some time ago, I recall having seen a post about this error message on the MadCap Flare forums but I haven't managed to find the related thread whilst searching the forums.
I get this error message when clicking on F1 anywhere in the software my company produces. The Help is eventually launched when I click the OK button.
I remember how to solve the issue in RoboHelp :roll: (we migrated from RH to Flare a while ago now) but do not remember how to do this in Flare. I know this is caused by a discrepancy in the Help window name (or because no window name has been specified) but I looked in the Skin and Target files and have not seen any setting in there that I thought could solve the problem.

Can anybody help?
Thank you.
Regards,
Marie-Claire
Flare 2019 r2 - Windows 10 Pro - HTML5 help / "clean" XHTML output
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Window name 'main' passed to HH_GET_WIN_TYPE not specified

Post by LTinker68 »

Is your app specifically calling for a window called "main"? If so, see if the developers can remove that portion of the call.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
wclass
Propellus Maximus
Posts: 1238
Joined: Mon Feb 27, 2006 5:56 am
Location: Melbourne, Australia

Re: Window name 'main' passed to HH_GET_WIN_TYPE not specified

Post by wclass »

We had this problem with projects converted from RH, but unfortunately the thread that I posted to seems to have been deleted (note to Madcap - stop doing that!), so I'm going from memory here.

RH had a script file called "ehlpdhtm.js" that gets imported and it has the skin/window names hard coded in it. If you change your skin names, or delete any once you are in Flare you'll get the problem. I found that deleting the ehlp... file, and removing all references to it in topics (you need to do a bit of find/replace in topics here) then re-compiling the help file gets rid of the problem. There might be other reasons for the error message, but this is what fixed our problem.
Margaret Hassall - Melbourne
MC Hammer
Sr. Propeller Head
Posts: 225
Joined: Wed Aug 08, 2007 3:04 am
Location: In a galaxy far, far away

Re: Window name 'main' passed to HH_GET_WIN_TYPE not specified

Post by MC Hammer »

Hi Lisa and Margaret
Thank you for your replies. I recall seeing a thread about this issue a while back but could not find it whilst searching the forum last week (the search is awful, always ignores most of the words) :( .
Lisa, I have enquired with my developers and there is a call for a window called "main". However, this has apparently been the case for a long time for all our software products and no error message of the type of the one shown in my first post has been thrown so I am a bit puzzled.
Margaret, we have never changed the skins name. Also, I do not quite understand your solution. It looks like the call to the ehlpdhtm.js script is only present in the files in the Output folder so once I have done a find/replace exercise across the project, how do I re-compile these files (do I NOT clean the output folder?)?

Thanks again for your input.
Marie-Claire
Flare 2019 r2 - Windows 10 Pro - HTML5 help / "clean" XHTML output
wclass
Propellus Maximus
Posts: 1238
Joined: Mon Feb 27, 2006 5:56 am
Location: Melbourne, Australia

Re: Window name 'main' passed to HH_GET_WIN_TYPE not specified

Post by wclass »

The ehlpdhtm.js script is from RH and not Flare, so if it is in your output then it must be somewhere in the source topics. We had to do a find/replace on the source - you shouldn't have to do anything different with the output at all. The script file was imported with the RH project, and we had to remove the reference to it from the topics that used it. From memory it wasn't in every topic, only those that used special scripts like rollovers and pop-ups.

I'll search for my old notes - maybe there are some other issues.
Margaret Hassall - Melbourne
MC Hammer
Sr. Propeller Head
Posts: 225
Joined: Wed Aug 08, 2007 3:04 am
Location: In a galaxy far, far away

Re: Window name 'main' passed to HH_GET_WIN_TYPE not specified

Post by MC Hammer »

Quick update on this.
Of course, Margaret, I am with you re: the script file, sorry :oops: . I searched for occurrences of ehlpdhtm.js and could not find any.
My developers are not keen to remove the offending code (calling a window called "Main") so the only solution I found was to create a skin called Main in my project, that I am not using in any target but that just sits there. I do not totally understand how this works, but I do not get the error message anymore. I reckon this could be due to the "generate all skins" check box of the Advanced tab of each of my targets being ticked. Not entirely sure...
Marie-Claire
Flare 2019 r2 - Windows 10 Pro - HTML5 help / "clean" XHTML output
Post Reply