David Liske Help? HtmlHelp returning different values

G

Gordon Jones

I am still trying to get consistent results out of my Access program
(cbw5.mde) and its companion help file (CBW5Help.chm). I have inserted the
special code and AutoKeys.F1 that has been published in Knowledge Base. In
my development machine it works just as it should -- F1 or a (programmed)
help button bring up the ContextID-linked help page.

The key line in the inserted code is:

hwndHelp = HtmlHelp(Application.hWndAccessApp, HelpFileName,
HH_HELP_CONTEXT, MycontextID)

With the same variables, on my development machine the return to hwndHelp is
592734 for a given form.

If I copy the Access (CBW5.mdb or cbw5.mde) program into a second (test)
machine and execute the same request for help, with the same input variables
to the HtmlHelp() statement, the return to hwndHelpis 0 (zero).

I would have thought that if i compile the program and run it on two
machines, the executing code would be the same, and the results would be the
same. Is there something outside the compiled Access program (e.g. ActiveX)
that can be different on two different machines? If so, how can I ensure
that the working level of that function gets taken along when I compile my
CBW5.mde program?

Thanks in advance,
 
J

John W. Vinson

why do u pepole email me wdf ?

Nobody's emailing you, Jaime. You're looking at a worldwide technical support
Newsgroup - sort of like a public bulletin board - for Microsoft Access
databases. If you don't want to see the messages in microsoft.public.access...
don't look at the newsgroup.
 
D

Douglas J. Steele

Realistically, this has nothing to do with Access. If you look at your code,
you should see several Declare statements that I would assume are referring
to hhctrl.ocx. (Since I don't know which KB code you're using, I can't
really offer anything specific.) That's where the results are coming from:
you're simply pointing to that ActiveX control to use its internal
functions.

Try to find hhctrl.ocx on the two machines and check whether it's the same
version. How is HelpFileName defined? If it's hard-coded, is it correct on
both machines?
 
G

Gordon Jones

In my primary machine I have a bunch of HHCTL.OCX files in Microsoft Visual
Basic directories. I have one hhctl.ocx in my C:\Windows\System32 direcory
with a File Version of 6.0.6001.18000 and Product Version of 6.0.6000.16386.
There are a couple more in c:\Windows\winsxs\ (long names). I copied the one
from the System32 directory into the secondary machine, and still get the
same results.

I assume (?) that vista looks in System32 before looking elsewhere for the
file, so if that is true, then I don't know where else to look....
 
D

Douglas J. Steele

To be honest, I'm not sure what the search sequence is with Vista.

You didn't answer how HelpFileName is defined in your code. You're sure it's
correct for each user?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top