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 #55084 is a reply to message #55083] Fri, 09 October 2020 17:11 Go to previous messageGo to previous message
BetoValle is currently offline  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.



 
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: Mon Aug 25 00:48:06 CEST 2025

Total time taken to generate the page: 0.00629 seconds