custom DLL used in Access

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello people

I have used a Microsoft article to build a dll to block the mousewheel in certain forms. When using this dll on one off my machines, all I have to do is set the reference to the dll. The dll can be anywhere I want. Works great

The problem however is when I take the database to my clients. There I MUST register the dll with the regsvr32 function. Else it will not function

Can anybody explain to me why this is and maybe how to get around it

I used the following article to build the dll: http://support.microsoft.com/default.aspx?scid=kb;en-us;27837

Thanks you in advance

Pascalle
 
I have used a Microsoft article to build a dll to block the mousewheel in
certain forms. When using this dll on one off my machines, all I have to do is
set the reference to the dll. The dll can be anywhere I want. Works great.
The problem however is when I take the database to my clients. There I MUST
register the dll with the regsvr32 function. Else it will not function.
Can anybody explain to me why this is and maybe how to get around it?

I hesitated to provide this link due to the effort you have obviously put into
your present solution, but have you seen
http://www.lebans.com/mousewheelonoff.htm? I think the KB article should include
a reference to this, also. <g>
 
Hi Pascalle,
Any ActiveX dll you create must be registered. It's done automatically for you on your
development PC but you have to do it yourself on other PCs. It's just the way COM works.
The component must have the approprite regisrty entries.

You could just write a little .bat file to make it easier if you wish.
Read up on the way COM/ActiveX works and you'll see why this is necessary

--
HTH
Dan Artuso, Access MVP


Pascalle said:
Hello people,

I have used a Microsoft article to build a dll to block the mousewheel in certain forms. When using this dll on one off my
machines, all I have to do is set the reference to the dll. The dll can be anywhere I want. Works great.
 
If you compiled the dll on your machine, it was automatically registered.
That's why you don't need to explicitly register it.

As Bruce suggests, though, Stephen's approach is probably easier.

--
Doug Steele, Microsoft Access MVP

(No private e-mails, please)



Pascalle said:
Hello people,

I have used a Microsoft article to build a dll to block the mousewheel in
certain forms. When using this dll on one off my machines, all I have to do
is set the reference to the dll. The dll can be anywhere I want. Works
great.
The problem however is when I take the database to my clients. There I
MUST register the dll with the regsvr32 function. Else it will not function.
 
Back
Top