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   |
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: Sun Aug 24 10:46:56 CEST 2025
Total time taken to generate the page: 0.08116 seconds
|