Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Vista Community > Windows Vista

Windows Vista Discuss the different versions of Windows Vista, Fuji, or Vienna



Reply
 
LinkBack Thread Tools
  #1  
Old 05-05-2008, 05:20 AM
Sven Pran
Newsgroup Contributor
 
Posts: n/a
Register a dll, why and when?

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 05-05-2008, 05:20 AM
  #2  
Old 05-05-2008, 05:50 AM
meerkat
Newsgroup Contributor
 
Posts: n/a
Re: Register a dll, why and when?


"Sven Pran" <no.direct@mail.please> wrote in message
news:OBylKIrrIHA.552@TK2MSFTNGP06.phx.gbl...[color=blue]
>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.
>[/color]
Hi Sven, go here and read about regsvr32.
It`s what you can use to register/unregister a dll.

[url]http://support.microsoft.com/kb/249873[/url]

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3  
Old 05-05-2008, 07:00 AM
Mr. Arnold
Newsgroup Contributor
 
Posts: n/a
Re: Register a dll, why and when?


"Sven Pran" <no.direct@mail.please> wrote in message
news:OBylKIrrIHA.552@TK2MSFTNGP06.phx.gbl...[color=blue]
>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)[/color]



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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4  
Old 05-05-2008, 07:00 AM
Chirag
Newsgroup Contributor
 
Posts: n/a
Re: Register a dll, why and when?

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
[url]http://officeone.mvps.org/powershow/powershow.html[/url]

"Sven Pran" <no.direct@mail.please> wrote in message
news:OBylKIrrIHA.552@TK2MSFTNGP06.phx.gbl...[color=blue]
>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[/color]

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5  
Old 05-05-2008, 08:30 AM
Tim Slattery
Newsgroup Contributor
 
Posts: n/a
Re: Register a dll, why and when?

"Sven Pran" <no.direct@mail.please> wrote:
[color=blue]
>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)[/color]

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)
[email]Slattery_T@bls.gov[/email]
[url]http://members.cox.net/slatteryt[/url]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #6  
Old 05-05-2008, 01:10 PM
Sven Pran
Newsgroup Contributor
 
Posts: n/a
Re: Register a dll, why and when?


"Chirag" <Chirag@discussions.microsoft.com> wrote in message
news:C7532C65-35B1-4BE2-9C92-F19CBACB976B@microsoft.com...[color=blue]
> Hi Sven,
>
> Most probably you are developing a DLL that exports the functions API
> directly as Windows does.[/color]

That is a very precise description of my dll
[color=blue]
> You can provide them with the function signatures that they can use to
> directly call the DLL functions.[/color]

I have done that
[color=blue]
> 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.[/color]

Right.

and thanks, Sven
[color=blue]
>
> - Chirag
>
> PowerShow - View multiple PowerPoint slide shows simultaneously
> [url]http://officeone.mvps.org/powershow/powershow.html[/url]
>
> "Sven Pran" <no.direct@mail.please> wrote in message
> news:OBylKIrrIHA.552@TK2MSFTNGP06.phx.gbl...[color=green]
>>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[/color]
>[/color]

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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 Off
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What Is A Domain Name And Where To Register? apollo66942@yahoo.com.tw Internet Explorer 1 12-29-2007 02:10 AM
What Is A Domain Name And Where To Register? apollo66942@yahoo.com.tw Internet Explorer 0 12-28-2007 02:20 PM
CAN I INSTALL AND REGISTER Chrissy Windows Vista 3 08-12-2007 12:10 PM
how to 'register' ocx file? Vic Windows XP 2 02-13-2007 08:31 PM
OCX will not register Vic Windows XP 2 01-04-2007 02:12 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 09:51 PM.


2003 - 2010 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0