PC Review


Reply
Thread Tools Rate Thread

David Liske Help? HtmlHelp returning different values

 
 
Gordon Jones
Guest
Posts: n/a
 
      16th Apr 2009
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,


--
Gordon Jones
 
Reply With Quote
 
 
 
 
jamie
Guest
Posts: n/a
 
      16th Apr 2009
why do u pepole email me wdf ?
"Gordon Jones" <(E-Mail Removed)> wrote in message
news:67E9D598-DBE5-46CB-ABD7-(E-Mail Removed)...
>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,
>
>
> --
> Gordon Jones


 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      16th Apr 2009
On Thu, 16 Apr 2009 20:19:22 +0100, "jamie" <(E-Mail Removed)> wrote:

>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.
--

John W. Vinson [MVP]
 
Reply With Quote
 
Douglas J. Steele
Guest
Posts: n/a
 
      16th Apr 2009
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?

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Gordon Jones" <(E-Mail Removed)> wrote in message
news:67E9D598-DBE5-46CB-ABD7-(E-Mail Removed)...
>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,
>
>
> --
> Gordon Jones



 
Reply With Quote
 
Gordon Jones
Guest
Posts: n/a
 
      17th Apr 2009
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....

--
Gordon Jones


"Douglas J. Steele" wrote:

> 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?
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no private e-mails, please)
>
>
> "Gordon Jones" <(E-Mail Removed)> wrote in message
> news:67E9D598-DBE5-46CB-ABD7-(E-Mail Removed)...
> >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,
> >
> >
> > --
> > Gordon Jones

>
>
>

 
Reply With Quote
 
Douglas J. Steele
Guest
Posts: n/a
 
      18th Apr 2009
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?

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Gordon Jones" <(E-Mail Removed)> wrote in message
news:CE7FA388-BC4E-4D59-815F-(E-Mail Removed)...
> 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....
>
> --
> Gordon Jones
>
>
> "Douglas J. Steele" wrote:
>
>> 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?
>>
>> --
>> Doug Steele, Microsoft Access MVP
>> http://I.Am/DougSteele
>> (no private e-mails, please)
>>
>>
>> "Gordon Jones" <(E-Mail Removed)> wrote in message
>> news:67E9D598-DBE5-46CB-ABD7-(E-Mail Removed)...
>> >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,
>> >
>> >
>> > --
>> > Gordon Jones

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sumif using Values, but returning text or values Jose Microsoft Excel Misc 1 14th Apr 2010 09:01 PM
Query not returning any values, though I know the values to exist BlueWolverine Microsoft Access Queries 6 15th Mar 2008 02:54 AM
Linking the tag with values and returning the appropriate values. pillai Microsoft Access Getting Started 5 19th Dec 2007 04:27 PM
Mactching Values & Returning Values Akash Microsoft Excel Programming 0 28th Mar 2007 10:18 AM
Sorting unique values and returning values from a formula =?Utf-8?B?TWFyY3VzQQ==?= Microsoft Excel Programming 2 1st Mar 2006 05:36 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:01 AM.