Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
BetoValle is currently offline  BetoValle
Messages: 203
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");
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Create exe from Windows to Linux
Next Topic: operation involving "\\" x "\" characters in directories and files
Goto Forum:
  


Current Time: Tue May 14 04:04:52 CEST 2024

Total time taken to generate the page: 0.02561 seconds