Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Register a dll, why and when?

Reply
Thread Tools Display Modes

Register a dll, why and when?

 
 
Sven Pran
Guest
Posts: n/a

 
      05-05-2008
I have an appcation that includes a dll I have written and which is of
interest to other application makers.

One of them has written an MS Access database application using VBA, he
wants to use my dll and approached me telling me that he could not
"register" this dll so he could not call it from his application.

I do not know anything about registering dll modules, my installation
program (INNO) simply installs them to the windows\system folder and that's
it. (I have wondered whether to install to \system or to \system32, but as
long as \system works I'm happy about using that)

Can someone enlighten me on what this is all about?

BTW. My application is written entirely in Delphi and all my dll functions
use standard linkage, exactly the same as is used for Windows API functions.

grateful for any information.

regards Sven

 
Reply With Quote
 
 
 
 
meerkat
Guest
Posts: n/a

 
      05-05-2008

"Sven Pran" <> wrote in message
news:...
>I have an appcation that includes a dll I have written and which is of
>interest to other application makers.
>
> One of them has written an MS Access database application using VBA, he
> wants to use my dll and approached me telling me that he could not
> "register" this dll so he could not call it from his application.
>
> I do not know anything about registering dll modules, my installation
> program (INNO) simply installs them to the windows\system folder and
> that's it. (I have wondered whether to install to \system or to \system32,
> but as long as \system works I'm happy about using that)
>
> Can someone enlighten me on what this is all about?
>
> BTW. My application is written entirely in Delphi and all my dll functions
> use standard linkage, exactly the same as is used for Windows API
> functions.
>
> grateful for any information.
>

Hi Sven, go here and read about regsvr32.
It`s what you can use to register/unregister a dll.

http://support.microsoft.com/kb/249873

 
Reply With Quote
 
Mr. Arnold
Guest
Posts: n/a

 
      05-05-2008

"Sven Pran" <> wrote in message
news:...
>I have an appcation that includes a dll I have written and which is of
>interest to other application makers.
>
> One of them has written an MS Access database application using VBA, he
> wants to use my dll and approached me telling me that he could not
> "register" this dll so he could not call it from his application.
>
> I do not know anything about registering dll modules, my installation
> program (INNO) simply installs them to the windows\system folder and
> that's it. (I have wondered whether to install to \system or to \system32,
> but as long as \system works I'm happy about using that)




#1 -- You're posting to the wrong NG. You should be posting to a MS
programmer's NG about something like this.

#2 -- You should not be installing DLL(s) in the System32 directory that's
basically reserved for O/S DLL(s) or DLL(s) that can be used across
applications (common DLL(s)) that can be used by more than one program or
application.

#3 -- You should place DLL(s) such as the one you're talking about in the
directory where the executable resides and register the DLL from that
location.

 
Reply With Quote
 
Chirag
Guest
Posts: n/a

 
      05-05-2008
Hi Sven,

Most probably you are developing a DLL that exports the functions API
directly as Windows does. You can provide them with the function signatures
that they can use to directly call the DLL functions. The registering thing
is required for DLLs that host ActiveX objects and Automation interfaces. It
seems your application developer is trying to use your DLL as if it has
ActiveX objects in it. You need to tell them that your DLL is not hosting
ActiveX objects unless you are actually creating ActiveX library.

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html

"Sven Pran" <> wrote in message
news:...
>I have an appcation that includes a dll I have written and which is of
>interest to other application makers.
>
> One of them has written an MS Access database application using VBA, he
> wants to use my dll and approached me telling me that he could not
> "register" this dll so he could not call it from his application.
>
> I do not know anything about registering dll modules, my installation
> program (INNO) simply installs them to the windows\system folder and
> that's it. (I have wondered whether to install to \system or to \system32,
> but as long as \system works I'm happy about using that)
>
> Can someone enlighten me on what this is all about?
>
> BTW. My application is written entirely in Delphi and all my dll functions
> use standard linkage, exactly the same as is used for Windows API
> functions.
>
> grateful for any information.
>
> regards Sven


 
Reply With Quote
 
Tim Slattery
Guest
Posts: n/a

 
      05-05-2008
"Sven Pran" <> wrote:

>I have an appcation that includes a dll I have written and which is of
>interest to other application makers.
>
>One of them has written an MS Access database application using VBA, he
>wants to use my dll and approached me telling me that he could not
>"register" this dll so he could not call it from his application.
>
>I do not know anything about registering dll modules, my installation
>program (INNO) simply installs them to the windows\system folder and that's
>it. (I have wondered whether to install to \system or to \system32, but as
>long as \system works I'm happy about using that)


Not all DLLs need to be registered. "Extension" DLLs contain a
collection of functions that are made available to other programs to
be used. This type of DLL usually comes with a header file and
documentation describing the interfaces to all the member functions.
When the application calls for the library to be loaded, the OS looks
for it in a specific set of places (current directory, \Windows,
\Windows\System32, etc).

Active X DLLs (or COM DLLs), on the other hand, have two (IIRC)
well-defined functions that calling programs use to find out what
other functions are available within the library, and what the calling
sequence for each function is. These libraries need to be registered,
because calling programs will look them up by name in the registry,
and find their exact address there.

People in programming groups (microsoft.public.vc.*) would probably
know this subject in much greater detail than the folks that hang out
here.

--
Tim Slattery
MS MVP(Shell/User)

http://members.cox.net/slatteryt
 
Reply With Quote
 
Sven Pran
Guest
Posts: n/a

 
      05-05-2008

"Chirag" <> wrote in message
news:C7532C65-35B1-4BE2-9C92-...
> Hi Sven,
>
> Most probably you are developing a DLL that exports the functions API
> directly as Windows does.


That is a very precise description of my dll

> You can provide them with the function signatures that they can use to
> directly call the DLL functions.


I have done that

> The registering thing is required for DLLs that host ActiveX objects and
> Automation interfaces. It seems your application developer is trying to
> use your DLL as if it has ActiveX objects in it. You need to tell them
> that your DLL is not hosting ActiveX objects unless you are actually
> creating ActiveX library.


Right.

and thanks, Sven

>
> - Chirag
>
> PowerShow - View multiple PowerPoint slide shows simultaneously
> http://officeone.mvps.org/powershow/powershow.html
>
> "Sven Pran" <> wrote in message
> news:...
>>I have an appcation that includes a dll I have written and which is of
>>interest to other application makers.
>>
>> One of them has written an MS Access database application using VBA, he
>> wants to use my dll and approached me telling me that he could not
>> "register" this dll so he could not call it from his application.
>>
>> I do not know anything about registering dll modules, my installation
>> program (INNO) simply installs them to the windows\system folder and
>> that's it. (I have wondered whether to install to \system or to
>> \system32, but as long as \system works I'm happy about using that)
>>
>> Can someone enlighten me on what this is all about?
>>
>> BTW. My application is written entirely in Delphi and all my dll
>> functions use standard linkage, exactly the same as is used for Windows
>> API functions.
>>
>> grateful for any information.
>>
>> regards Sven

>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
do I have to re-register If---- t-4-2 Windows Vista General Discussion 32 05-10-2008 08:23 PM
cannot register diana Windows Vista Mail 0 10-27-2007 04:15 AM
.ocx how to register? yhk Windows Vista Installation 0 04-28-2007 01:36 PM
Cannot Re-Register in DNS Or Tsemah Windows Vista Networking 0 04-22-2007 02:26 PM
where do i register ariel Windows Vista General Discussion 7 09-26-2006 01:46 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59