473,378 Members | 1,607 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

DLL In Different Locations

I have an Access 2000 mdb, and I'm trying to stop the mouse wheel from
moving between records. I found an MS KB article at
http://support.microsoft.com/?kbid=278379 which gives steps for creating a
DLL that does just that. I created the DLL, set a reference to it, added the
code to use it, and everything works great.

But one problem: the people who will be using this will have the DLL located
in a different location, so the reference will be broken. Thus, I need a way
to change the reference on the fly, if possible, so that the database looks
for the DLL in one place when a flag is set one way (indicating it's my
machine), and in another place when the flag is set the other way.

Alternatively, there is late binding. However, I wasn't able to get that to
work. The DLL has a "MouseWheel" event procedure which works fine with early
binding, but not with late binding.

Any thoughts/ideas/suggestions would be appreciated.

Thanks,

Neil
Nov 13 '05 #1
2 1555
Hi,

Neil Ginsberg wrote:
I have an Access 2000 mdb, and I'm trying to stop the mouse wheel from
moving between records. I found an MS KB article at
http://support.microsoft.com/?kbid=278379 which gives steps for creating a
DLL that does just that. I created the DLL, set a reference to it, added the
code to use it, and everything works great.
you might want to check out Stephen's hook:
www.lebans.com/mousewheelonoff.htm
This way you'd be able to work around the wheel-problem without a DLL.
But one problem: the people who will be using this will have the DLL located
in a different location, so the reference will be broken. Thus, I need a way
to change the reference on the fly, if possible, so that the database looks
for the DLL in one place when a flag is set one way (indicating it's my
machine), and in another place when the flag is set the other way.


if you'd like to stick with using a DLL, why don't you provide your users
with a setup (i.e. InnoSetup: www.innosetup.org) and install the DLL on
each workstation?
Otherwise, check out www.mentalis.org/tips/tip50.shtml which offers code
you may use to un-/register ActiveX-controls or DLLs from Basic. Yet
another alternative would be to simply use a shell calling regsvr32.exe.

Cheers,
Olaf [MVP]
--
My .02: www.Resources.IntuiDev.com
Nov 13 '05 #2
Thanks for the note, that's very helpful. It would be better not to have to
install the DLL at each workstation, but just have whatever we use be
self-contained within the MDB. Thus, Stephen's hook seems ideal.

[Interestingly, when I first loaded it, following the instructions to put
the DLL into application MDB's directory, I got an error because I clicked
"Start Mouse Wheel" first, instead of "Stop Mouse Wheel," because "Stop
Mouse Wheel" has the code to look in the MDB's directory. Logically, one
should click "Stop Mouse Wheel" first; but the "Start Mouse Wheel" button
was the first button, and one's impulse is to click the first button.
Anyway, that was interesting.]

Anyway, it looks like that should work for my needs, so thanks for pointing
that out to me, and thanks to Stephen for writing it and providing it!

Neil

"Olaf Rabbachin" <Ol*********@IntuiDev.com> wrote in message
news:ct*************@news.t-online.com...
Hi,

Neil Ginsberg wrote:
I have an Access 2000 mdb, and I'm trying to stop the mouse wheel from
moving between records. I found an MS KB article at
http://support.microsoft.com/?kbid=278379 which gives steps for creating
a
DLL that does just that. I created the DLL, set a reference to it, added
the
code to use it, and everything works great.


you might want to check out Stephen's hook:
www.lebans.com/mousewheelonoff.htm
This way you'd be able to work around the wheel-problem without a DLL.
But one problem: the people who will be using this will have the DLL
located
in a different location, so the reference will be broken. Thus, I need a
way
to change the reference on the fly, if possible, so that the database
looks
for the DLL in one place when a flag is set one way (indicating it's my
machine), and in another place when the flag is set the other way.


if you'd like to stick with using a DLL, why don't you provide your users
with a setup (i.e. InnoSetup: www.innosetup.org) and install the DLL on
each workstation?
Otherwise, check out www.mentalis.org/tips/tip50.shtml which offers code
you may use to un-/register ActiveX-controls or DLLs from Basic. Yet
another alternative would be to simply use a shell calling regsvr32.exe.

Cheers,
Olaf [MVP]
--
My .02: www.Resources.IntuiDev.com

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: smith4894 | last post by:
Hello, I have a question regarding storage locations for different data types. For example, dynamically created objects (using "new") are created on the heap. local objects ( foo() {int x;} )...
3
by: I_was_here | last post by:
Hey if anyone is a query pro please showoff some knowledge thx. Ie: I have a table with : part price location qty 1 part repeats throughout the table and its price remains the same but it...
2
by: Sam-I-Am | last post by:
Hi There I am looking for a website/service that will allow me to test a web application from different geographic locations. Anybody used anything like this before? Thanks, Sam
10
by: Arno R | last post by:
Hi all, I have a database that I need to use in different versions of Access. This is A97 in most places and A2k in a few other locations. (I develop in A97 and convert the db to A2k for these...
1
by: sam | last post by:
Hi All, I have a form with 4 checkboxes and 4 text boxes and one submit button. The form should work such a way when I select a particular checkbox and give a url in text box, the form should...
8
by: Bernard Lebel | last post by:
Hello, I would like to know if there is a way to run a Python file under a different user account than the one logged in. Allow me to explain. There are a bunch of people here, they are "basic...
1
by: smcdonald | last post by:
I am trying to avoid linking external tables using DSN ODBC's on clients. I have 2 foxpro tables in 2 different locations that I need to pull data from. I need to code the connections to them using...
5
by: BD | last post by:
I am coding with C# in Visual Studio 2005 for a database application residing on remote MS SQL Server 2005. What I want to do is open the same form but from 2 different places and only one...
10
by: parag_paul | last post by:
HI all, Suppose I have a huge code base, And I have a very common header file. Now there are mulitple places where this header file is kept. This header file cannot be factored as it has...
4
by: perhapscwk | last post by:
Sample tables (company_id RK companies.id): Companies id company 1 … 2 … 3 … Locations id company_id location revision
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.