Skip to main content
Inspiring
November 8, 2016
Answered

Using drive path either local or mapped is intermittent

  • November 8, 2016
  • 1 reply
  • 1139 views

Howdy,

When calling Webhelp from a C++ application running on windows 7 using a drive path works sometimes and sometimes not.

When using a web server it works rock solid.

Here's the samples;

CString s_help_server = "file:///z:/webhelp/wlib9_2hlp.htm>Window"; //mapped drive file based intermittent

CString s_help_server = "c:/inetpub/wwwroot/webhelp/wlib9_2hlp.htm>Window"; //file based intermittent

CString s_help_server = "http://TANK_2005/webhelp/wlib9_2hlp.htm>Window"; //web based solid

CString s_help_server = "http://localhost/webhelp/wlib9_2hlp.htm>Window"; //web based solid local computer

We really would like it to work with a mapped drive solidly,

We updated to RH11 and also are using the CSH_API that came with that.

Appreciate any help or insights.

Thanks,

Jim

This topic has been closed for replies.
Correct answer jimt83277894

I'm not a programmer, so debugging browser controls goes over my head.

What happens if you open the help in a browser instead of letting the API handle it? Do you then get the same results? You can use my CSH tester to test the different scenario's: http://www.wvanweelden.eu/sites/default/files/attachments/webhelp_api_csharp.zip


Howdy again,

Your test application doesn't open the default browser but always IE. I suspect it's doing what the RoboHelp_CSH.cpp and RoboHelp_CSH.h files do and open the Internet Explorer web control.

We're not using those files/ C++ API anymore.

I got this from the Microsoft Site and it seems to work pretty well here to launch IE using the web control IWebBrowser2, tried ShellExecute and some other methods, but this works solid; https://msdn.microsoft.com/en-us/library/aa752127(v=vs.85).aspx

1 reply

Jeff_Coatsworth
Community Expert
Community Expert
November 8, 2016

No solution for you, but does it misbehave if you use a UNC path instead of the mapped drive?

Inspiring
November 8, 2016

Unfortunately it does the same misbehavior with a UNC path.

CString s_help_server = "//TANK_2005/xfer/webhelp/wlib9_2hlp.htm>Window";

That was a good idea to try, appreciate the input...

Jeff_Coatsworth
Community Expert
Community Expert
November 8, 2016

I was thinking more like (hope this comes through):

CString s_help_server = "file://c/inetpub/wwwroot/webhelp/wlib9_2hlp.htm>Window";