Home » Community » Newbie corner » acces help chm files (windows)
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");
|
|
|
Goto Forum:
Current Time: Sat May 10 07:01:28 CEST 2025
Total time taken to generate the page: 0.06492 seconds
|