Article View: borland.public.cppbuilder.nativeapi
Article #3550Re: Using CHM files in BCB6
From: JF Jolin
Date: Fri, 26 May 2006 20:50
Date: Fri, 26 May 2006 20:50
31 lines
2037 bytes
2037 bytes
> That's okay, it displays the .chm file but I'd like to do two things more, which I didn't figure how to do: > > 1) Since the .chm file is organized in pages (chapters maybe, not sure what the word is), I'd like to be able to > programatically open it at a specific page (say, "Welcome"). > With .hlp files I used HelpJump to do that but I can't do it with .chm files. > So how do I do it? execinfo.lpFile = "hh.exe"; // Executable in \WINDOWS\system32 for Html Help AnsiString HelpFile = "a.chm::/topic.htm"; // topic.htm is a topic inside a.chm for more info http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/vsconhtlink6.asp > 2) How to make sure only one instance of this .chm file is actually run? > Writing to the registry comes in mind, but is there a more clever way to do it? ::FindWindow(NULL, "My title help"); // returns not NULL if that help title is already open more info on a similar topic: Prevent multiple instances of the program from running http://web.archive.org/web/20030626080800/www.bcbdev.com/faqs/faq74.htm That should do it. Your welcome ! -- JF Jolin
Technical Details
Message-ID:
<ops96etynxz6rw7b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4476c656$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,27bcb2a52828a1c4 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Using CHM files in BCB6 References: <4476c656$1@newsgroups.borland.com> Message-ID: <ops96etynxz6rw7b@newsgroups.borland.com> Content-Type: text/plain; charset=iso-8859-15; format=flowed From: JF Jolin <jfj@nospam.com> MIME-Version: 1.0 Date: Fri, 26 May 2006 16:50:12 -0400 User-Agent: Opera7.11/Win32 M2 build 2887 NNTP-Posting-Host: 66.36.152.67 X-Trace: newsgroups.borland.com 1148676656 66.36.152.67 (26 May 2006 13:50:56 -0700) Lines: 31 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail