|
| | |||||||
| Windows Vista Discuss the different versions of Windows Vista, Fuji, or Vienna |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
| 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 |
| |
|
#2
| |||
| |||
| 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] |
|
#3
| |||
| |||
| 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. |
|
#4
| |||
| |||
| 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] |
|
#5
| |||
| |||
| 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] |
|
#6
| |||
| |||
| 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] |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| 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? |