Home » Community » Newbie corner » acces help chm files (windows)
acces help chm files (windows) [message #55050] |
Wed, 07 October 2020 13:24  |
BetoValle
Messages: 204 Registered: September 2020 Location: Brasil Valinhos SP
|
Experienced Member |
|
|
how do you access to an application made in u ++ help chm files and their topics.
Is there a component / class?
|
|
|
|
|
|
Re: acces help chm files (windows) [message #55083 is a reply to message #55082] |
Fri, 09 October 2020 16:10   |
BetoValle
Messages: 204 Registered: September 2020 Location: Brasil Valinhos SP
|
Experienced Member |
|
|
See, here is just an idea to include a launchwebbrowser extension in ui sources. I tested it for jar files and it worked now and it's up to you experts to better evaluate this issue.
1) App.cpp line
void LaunchMy(const String& url, const String& p, const String& d)
{
WString wurl = ToSystemCharsetW(url);
WString wp = ToSystemCharsetW(p);
WString wd = ToSystemCharsetW(d); // file.jar directory <---
if ((int64)(ShellExecuteW(NULL, L"open", wurl, wp, wd, SW_HIDE)) <= 32) {
int l = sizeof(wchar) * wurl.GetLength() + 1;
char *curl = (char *)malloc(l);
memcpy(curl, wurl, l);
StartAuxThread(sShellExecuteOpen, curl);
}
}
2) App.h / line 87
void LaunchMy(const String& url, const String& p, const String& d);
3) this work!
LaunchMy("C:\\Program Files\\Java\\jre1.8.0_261\\bin\\java.exe",
"-jar file.jar",
"C:\\Program Files\\pathA\\pathB");
|
|
|
Re: acces help chm files (windows) [message #55084 is a reply to message #55083] |
Fri, 09 October 2020 17:11   |
BetoValle
Messages: 204 Registered: September 2020 Location: Brasil Valinhos SP
|
Experienced Member |
|
|
ok, now i also solved the help chm load:
I changed the function to
void LaunchMy(const String& url, const String& p, const String& d, int howshow)
{
WString wurl = ToSystemCharsetW(url);
WString wp = ToSystemCharsetW(p);
WString wd = ToSystemCharsetW(d);
if ((int64)(ShellExecuteW(NULL, L"open", wurl, wp, wd, howshow)) <= 32) {
int l = sizeof(wchar) * wurl.GetLength() + 1;
char *curl = (char *)malloc(l);
memcpy(curl, wurl, l);
StartAuxThread(sShellExecuteOpen, curl);
}
} //howshow: SW_HIDE (0) SW_SHOW (5) SW_SHOWDEFAULT (10)
to work:
LaunchMy("hh.EXE",
"ms-its:FinestFI.chm::/IDH_Topic20.htm",
//or "mk:@MSITStore:file.chm::/IDH_Topic20.htm"
"path of file.chm ie C:\\abc\\def\\ghi",SW_SHOW);
if you want you can close this topic. Thankful.
|
|
|
|
|
Goto Forum:
Current Time: Sat May 10 00:43:44 CEST 2025
Total time taken to generate the page: 0.04442 seconds
|