dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Page 1 of 4 123 ... LastLast
Results 1 to 15 of 47

Thread: Registering DLL by code

  1. #1
    Ron Paredes Guest

    Registering DLL by code


    Did I miss this in my VB class? It seems that I'm stucked with shelling regsvr
    to accomplish this, any hint? Thanks in advance.



  2. #2
    Phil N. Guest

    Re: Registering DLL by code

    Hi Ron,

    We still have to use regsvr to register DLL files unfortunately. Maybe that
    will change in next VB 7!

    Sincerely

    Phil N.
    "Ron Paredes" <ronparedes@priconmicro.com.ph> wrote in message
    news:3928b292$1@news.devx.com...
    >
    > Did I miss this in my VB class? It seems that I'm stucked with shelling

    regsvr
    > to accomplish this, any hint? Thanks in advance.
    >
    >




  3. #3
    Phil N. Guest

    Re: Registering DLL by code

    Hi Ron,

    We still have to use regsvr to register DLL files unfortunately. Maybe that
    will change in next VB 7!

    Sincerely

    Phil N.
    "Ron Paredes" <ronparedes@priconmicro.com.ph> wrote in message
    news:3928b292$1@news.devx.com...
    >
    > Did I miss this in my VB class? It seems that I'm stucked with shelling

    regsvr
    > to accomplish this, any hint? Thanks in advance.
    >
    >




  4. #4
    Michael \(michka\) Kaplan Guest

    Re: Registering DLL by code

    I doubt it will change.

    --
    MichKa
    "Cause it's a bittersweet symphony, thats life..." -- The Verve

    random junk of dubious value, at the multilingual,
    no scripts required, http://www.trigeminal.com/

    "Phil N." <phil.normand@sympatico.ca> wrote in message
    news:3928b624@news.devx.com...
    > Hi Ron,
    >
    > We still have to use regsvr to register DLL files unfortunately. Maybe

    that
    > will change in next VB 7!
    >
    > Sincerely
    >
    > Phil N.
    > "Ron Paredes" <ronparedes@priconmicro.com.ph> wrote in message
    > news:3928b292$1@news.devx.com...
    > >
    > > Did I miss this in my VB class? It seems that I'm stucked with shelling

    > regsvr
    > > to accomplish this, any hint? Thanks in advance.
    > >
    > >

    >
    >




  5. #5
    Michael \(michka\) Kaplan Guest

    Re: Registering DLL by code

    I doubt it will change.

    --
    MichKa
    "Cause it's a bittersweet symphony, thats life..." -- The Verve

    random junk of dubious value, at the multilingual,
    no scripts required, http://www.trigeminal.com/

    "Phil N." <phil.normand@sympatico.ca> wrote in message
    news:3928b624@news.devx.com...
    > Hi Ron,
    >
    > We still have to use regsvr to register DLL files unfortunately. Maybe

    that
    > will change in next VB 7!
    >
    > Sincerely
    >
    > Phil N.
    > "Ron Paredes" <ronparedes@priconmicro.com.ph> wrote in message
    > news:3928b292$1@news.devx.com...
    > >
    > > Did I miss this in my VB class? It seems that I'm stucked with shelling

    > regsvr
    > > to accomplish this, any hint? Thanks in advance.
    > >
    > >

    >
    >




  6. #6
    René Whitworth Guest

    Re: Registering DLL by code

    On our site we have a file called InstallOCX.bas which should also work on
    ActiveX DLLs.

    --
    Hope this helps ...

    Rene Whitworth
    Whitworth Software Solutions - Germany
    http://www.w-s-s.de
    Please reply to the newsgroup :-)


    "Michael (michka) Kaplan" <former_mvp@spamfree.trigeminal.nospam.com>
    schrieb im Newsbeitrag news:3928c7ea@news.devx.com...
    > I doubt it will change.
    >
    > --
    > MichKa
    > "Cause it's a bittersweet symphony, thats life..." -- The Verve
    >
    > random junk of dubious value, at the multilingual,
    > no scripts required, http://www.trigeminal.com/
    >
    > "Phil N." <phil.normand@sympatico.ca> wrote in message
    > news:3928b624@news.devx.com...
    > > Hi Ron,
    > >
    > > We still have to use regsvr to register DLL files unfortunately. Maybe

    > that
    > > will change in next VB 7!
    > >
    > > Sincerely
    > >
    > > Phil N.
    > > "Ron Paredes" <ronparedes@priconmicro.com.ph> wrote in message
    > > news:3928b292$1@news.devx.com...
    > > >
    > > > Did I miss this in my VB class? It seems that I'm stucked with

    shelling
    > > regsvr
    > > > to accomplish this, any hint? Thanks in advance.
    > > >
    > > >

    > >
    > >

    >
    >




  7. #7
    René Whitworth Guest

    Re: Registering DLL by code

    On our site we have a file called InstallOCX.bas which should also work on
    ActiveX DLLs.

    --
    Hope this helps ...

    Rene Whitworth
    Whitworth Software Solutions - Germany
    http://www.w-s-s.de
    Please reply to the newsgroup :-)


    "Michael (michka) Kaplan" <former_mvp@spamfree.trigeminal.nospam.com>
    schrieb im Newsbeitrag news:3928c7ea@news.devx.com...
    > I doubt it will change.
    >
    > --
    > MichKa
    > "Cause it's a bittersweet symphony, thats life..." -- The Verve
    >
    > random junk of dubious value, at the multilingual,
    > no scripts required, http://www.trigeminal.com/
    >
    > "Phil N." <phil.normand@sympatico.ca> wrote in message
    > news:3928b624@news.devx.com...
    > > Hi Ron,
    > >
    > > We still have to use regsvr to register DLL files unfortunately. Maybe

    > that
    > > will change in next VB 7!
    > >
    > > Sincerely
    > >
    > > Phil N.
    > > "Ron Paredes" <ronparedes@priconmicro.com.ph> wrote in message
    > > news:3928b292$1@news.devx.com...
    > > >
    > > > Did I miss this in my VB class? It seems that I'm stucked with

    shelling
    > > regsvr
    > > > to accomplish this, any hint? Thanks in advance.
    > > >
    > > >

    > >
    > >

    >
    >




  8. #8
    Michael Culley Guest

    Re: Registering DLL by code


    René,

    '*************************************************************
    'Developed by : R. Whitworth
    'Date : 04/27/2000
    '*************************************************************

    This was developed by me!

    '*************************************************************
    'Feel free to send us your wishes and enhancements to this
    'module (or anything else you got from our pages).
    'Any usefull enhancement will be added, and your name will
    'be mentioned (see list below).
    'Send enhancements to: R.Whitworth@w-s-s.de
    'Send wishes to: Service@w-s-s.de
    '*************************************************************

    You didn't even put my name in there and I wrote it!

    Oh well, I do like the enhancements you have made.

    I'll take it as a compliment

    Michael Culley

    "René Whitworth" <R.Whitworth@w-s-s.de> wrote:
    >On our site we have a file called InstallOCX.bas which should also work

    on
    >ActiveX DLLs.
    >
    >--
    >Hope this helps ...
    >
    >Rene Whitworth
    >Whitworth Software Solutions - Germany
    >http://www.w-s-s.de
    >Please reply to the newsgroup :-)
    >
    >
    >"Michael (michka) Kaplan" <former_mvp@spamfree.trigeminal.nospam.com>
    >schrieb im Newsbeitrag news:3928c7ea@news.devx.com...
    >> I doubt it will change.
    >>
    >> --
    >> MichKa
    >> "Cause it's a bittersweet symphony, thats life..." -- The Verve
    >>
    >> random junk of dubious value, at the multilingual,
    >> no scripts required, http://www.trigeminal.com/
    >>
    >> "Phil N." <phil.normand@sympatico.ca> wrote in message
    >> news:3928b624@news.devx.com...
    >> > Hi Ron,
    >> >
    >> > We still have to use regsvr to register DLL files unfortunately. Maybe

    >> that
    >> > will change in next VB 7!
    >> >
    >> > Sincerely
    >> >
    >> > Phil N.
    >> > "Ron Paredes" <ronparedes@priconmicro.com.ph> wrote in message
    >> > news:3928b292$1@news.devx.com...
    >> > >
    >> > > Did I miss this in my VB class? It seems that I'm stucked with

    >shelling
    >> > regsvr
    >> > > to accomplish this, any hint? Thanks in advance.
    >> > >
    >> > >
    >> >
    >> >

    >>
    >>

    >
    >



  9. #9
    Michael Culley Guest

    Re: Registering DLL by code


    René,

    '*************************************************************
    'Developed by : R. Whitworth
    'Date : 04/27/2000
    '*************************************************************

    This was developed by me!

    '*************************************************************
    'Feel free to send us your wishes and enhancements to this
    'module (or anything else you got from our pages).
    'Any usefull enhancement will be added, and your name will
    'be mentioned (see list below).
    'Send enhancements to: R.Whitworth@w-s-s.de
    'Send wishes to: Service@w-s-s.de
    '*************************************************************

    You didn't even put my name in there and I wrote it!

    Oh well, I do like the enhancements you have made.

    I'll take it as a compliment

    Michael Culley

    "René Whitworth" <R.Whitworth@w-s-s.de> wrote:
    >On our site we have a file called InstallOCX.bas which should also work

    on
    >ActiveX DLLs.
    >
    >--
    >Hope this helps ...
    >
    >Rene Whitworth
    >Whitworth Software Solutions - Germany
    >http://www.w-s-s.de
    >Please reply to the newsgroup :-)
    >
    >
    >"Michael (michka) Kaplan" <former_mvp@spamfree.trigeminal.nospam.com>
    >schrieb im Newsbeitrag news:3928c7ea@news.devx.com...
    >> I doubt it will change.
    >>
    >> --
    >> MichKa
    >> "Cause it's a bittersweet symphony, thats life..." -- The Verve
    >>
    >> random junk of dubious value, at the multilingual,
    >> no scripts required, http://www.trigeminal.com/
    >>
    >> "Phil N." <phil.normand@sympatico.ca> wrote in message
    >> news:3928b624@news.devx.com...
    >> > Hi Ron,
    >> >
    >> > We still have to use regsvr to register DLL files unfortunately. Maybe

    >> that
    >> > will change in next VB 7!
    >> >
    >> > Sincerely
    >> >
    >> > Phil N.
    >> > "Ron Paredes" <ronparedes@priconmicro.com.ph> wrote in message
    >> > news:3928b292$1@news.devx.com...
    >> > >
    >> > > Did I miss this in my VB class? It seems that I'm stucked with

    >shelling
    >> > regsvr
    >> > > to accomplish this, any hint? Thanks in advance.
    >> > >
    >> > >
    >> >
    >> >

    >>
    >>

    >
    >



  10. #10
    Tony McIntyre Guest

    Re: Registering DLL by code

    Ron,
    I am assuming that you are refering to a VB DLL that you have created. If
    that is the case there are 2 functions that are exported that are of
    interest in this area. They are DllRegisterServer and DllUnregisterServer.
    These functions can be used to Register (same as regsvr32 my.dll) and
    UnRegister (same as regsvr32 -u my.dll).

    You could attempt to instanciate your object in your dll and have an error
    routine to catch the errors. If the run-time 452 error comes then call the
    DllRegisterServer that is in your dll and it should self register. After the
    self register then resume on the statement that caused the problem. I would
    place a counter of some sort in this area to know if you have attempted to
    self register already during this execution and if you have then don't
    continue to self register. This way you will avoid a register loop.

    Hope this helps.

    Tony


    "Ron Paredes" <ronparedes@priconmicro.com.ph> wrote in message
    news:3928b292$1@news.devx.com...
    >
    > Did I miss this in my VB class? It seems that I'm stucked with shelling

    regsvr
    > to accomplish this, any hint? Thanks in advance.
    >
    >




  11. #11
    Tony McIntyre Guest

    Re: Registering DLL by code

    Ron,
    I am assuming that you are refering to a VB DLL that you have created. If
    that is the case there are 2 functions that are exported that are of
    interest in this area. They are DllRegisterServer and DllUnregisterServer.
    These functions can be used to Register (same as regsvr32 my.dll) and
    UnRegister (same as regsvr32 -u my.dll).

    You could attempt to instanciate your object in your dll and have an error
    routine to catch the errors. If the run-time 452 error comes then call the
    DllRegisterServer that is in your dll and it should self register. After the
    self register then resume on the statement that caused the problem. I would
    place a counter of some sort in this area to know if you have attempted to
    self register already during this execution and if you have then don't
    continue to self register. This way you will avoid a register loop.

    Hope this helps.

    Tony


    "Ron Paredes" <ronparedes@priconmicro.com.ph> wrote in message
    news:3928b292$1@news.devx.com...
    >
    > Did I miss this in my VB class? It seems that I'm stucked with shelling

    regsvr
    > to accomplish this, any hint? Thanks in advance.
    >
    >




  12. #12
    René Whitworth Guest

    Re: Registering DLL by code

    Michael,

    as in the reply to your eMail, the module WAS developed by me.
    I also stated that I can't remember where I got the function to call a
    pointer, and that if you are the original author of this function, I'd be
    glad to add a "Special Thanks to ..." mentioning you writing this function
    (just like I did in our Fonts.bas).
    The "Developed by" still stands for the module, which actually existed long
    before I put the function_to_call_a_pointer in (initially it used
    RegSvr32.exe, and I do remember me posting a couple of questions hereto in
    microsoft.public.vb.winapi).
    I also stated that I'll have to test the changes you made to the function
    before putting them in (for which I then also add a line with your name to
    the "Changes").
    You must understand though that I can't act as long as you didn't answer my
    eMail reply.
    And again, if you are the author of the function, take my appologies for not
    mentioning you in the first place.

    --
    Hope this helps ...

    Rene Whitworth
    Whitworth Software Solutions - Germany
    http://www.w-s-s.de
    Please reply to the newsgroup :-)


    "Michael Culley" <m_culley@one.net.au> schrieb im Newsbeitrag
    news:3928f71d$1@news.devx.com...
    >
    > René,
    >
    > '*************************************************************
    > 'Developed by : R. Whitworth
    > 'Date : 04/27/2000
    > '*************************************************************
    >
    > This was developed by me!
    >
    > '*************************************************************
    > 'Feel free to send us your wishes and enhancements to this
    > 'module (or anything else you got from our pages).
    > 'Any usefull enhancement will be added, and your name will
    > 'be mentioned (see list below).
    > 'Send enhancements to: R.Whitworth@w-s-s.de
    > 'Send wishes to: Service@w-s-s.de
    > '*************************************************************
    >
    > You didn't even put my name in there and I wrote it!
    >
    > Oh well, I do like the enhancements you have made.
    >
    > I'll take it as a compliment
    >
    > Michael Culley
    >
    > "René Whitworth" <R.Whitworth@w-s-s.de> wrote:
    > >On our site we have a file called InstallOCX.bas which should also work

    > on
    > >ActiveX DLLs.
    > >
    > >--
    > >Hope this helps ...
    > >
    > >Rene Whitworth
    > >Whitworth Software Solutions - Germany
    > >http://www.w-s-s.de
    > >Please reply to the newsgroup :-)
    > >
    > >
    > >"Michael (michka) Kaplan" <former_mvp@spamfree.trigeminal.nospam.com>
    > >schrieb im Newsbeitrag news:3928c7ea@news.devx.com...
    > >> I doubt it will change.
    > >>
    > >> --
    > >> MichKa
    > >> "Cause it's a bittersweet symphony, thats life..." -- The Verve
    > >>
    > >> random junk of dubious value, at the multilingual,
    > >> no scripts required, http://www.trigeminal.com/
    > >>
    > >> "Phil N." <phil.normand@sympatico.ca> wrote in message
    > >> news:3928b624@news.devx.com...
    > >> > Hi Ron,
    > >> >
    > >> > We still have to use regsvr to register DLL files unfortunately.

    Maybe
    > >> that
    > >> > will change in next VB 7!
    > >> >
    > >> > Sincerely
    > >> >
    > >> > Phil N.
    > >> > "Ron Paredes" <ronparedes@priconmicro.com.ph> wrote in message
    > >> > news:3928b292$1@news.devx.com...
    > >> > >
    > >> > > Did I miss this in my VB class? It seems that I'm stucked with

    > >shelling
    > >> > regsvr
    > >> > > to accomplish this, any hint? Thanks in advance.
    > >> > >
    > >> > >
    > >> >
    > >> >
    > >>
    > >>

    > >
    > >

    >






  13. #13
    René Whitworth Guest

    Re: Registering DLL by code

    Michael,

    as in the reply to your eMail, the module WAS developed by me.
    I also stated that I can't remember where I got the function to call a
    pointer, and that if you are the original author of this function, I'd be
    glad to add a "Special Thanks to ..." mentioning you writing this function
    (just like I did in our Fonts.bas).
    The "Developed by" still stands for the module, which actually existed long
    before I put the function_to_call_a_pointer in (initially it used
    RegSvr32.exe, and I do remember me posting a couple of questions hereto in
    microsoft.public.vb.winapi).
    I also stated that I'll have to test the changes you made to the function
    before putting them in (for which I then also add a line with your name to
    the "Changes").
    You must understand though that I can't act as long as you didn't answer my
    eMail reply.
    And again, if you are the author of the function, take my appologies for not
    mentioning you in the first place.

    --
    Hope this helps ...

    Rene Whitworth
    Whitworth Software Solutions - Germany
    http://www.w-s-s.de
    Please reply to the newsgroup :-)


    "Michael Culley" <m_culley@one.net.au> schrieb im Newsbeitrag
    news:3928f71d$1@news.devx.com...
    >
    > René,
    >
    > '*************************************************************
    > 'Developed by : R. Whitworth
    > 'Date : 04/27/2000
    > '*************************************************************
    >
    > This was developed by me!
    >
    > '*************************************************************
    > 'Feel free to send us your wishes and enhancements to this
    > 'module (or anything else you got from our pages).
    > 'Any usefull enhancement will be added, and your name will
    > 'be mentioned (see list below).
    > 'Send enhancements to: R.Whitworth@w-s-s.de
    > 'Send wishes to: Service@w-s-s.de
    > '*************************************************************
    >
    > You didn't even put my name in there and I wrote it!
    >
    > Oh well, I do like the enhancements you have made.
    >
    > I'll take it as a compliment
    >
    > Michael Culley
    >
    > "René Whitworth" <R.Whitworth@w-s-s.de> wrote:
    > >On our site we have a file called InstallOCX.bas which should also work

    > on
    > >ActiveX DLLs.
    > >
    > >--
    > >Hope this helps ...
    > >
    > >Rene Whitworth
    > >Whitworth Software Solutions - Germany
    > >http://www.w-s-s.de
    > >Please reply to the newsgroup :-)
    > >
    > >
    > >"Michael (michka) Kaplan" <former_mvp@spamfree.trigeminal.nospam.com>
    > >schrieb im Newsbeitrag news:3928c7ea@news.devx.com...
    > >> I doubt it will change.
    > >>
    > >> --
    > >> MichKa
    > >> "Cause it's a bittersweet symphony, thats life..." -- The Verve
    > >>
    > >> random junk of dubious value, at the multilingual,
    > >> no scripts required, http://www.trigeminal.com/
    > >>
    > >> "Phil N." <phil.normand@sympatico.ca> wrote in message
    > >> news:3928b624@news.devx.com...
    > >> > Hi Ron,
    > >> >
    > >> > We still have to use regsvr to register DLL files unfortunately.

    Maybe
    > >> that
    > >> > will change in next VB 7!
    > >> >
    > >> > Sincerely
    > >> >
    > >> > Phil N.
    > >> > "Ron Paredes" <ronparedes@priconmicro.com.ph> wrote in message
    > >> > news:3928b292$1@news.devx.com...
    > >> > >
    > >> > > Did I miss this in my VB class? It seems that I'm stucked with

    > >shelling
    > >> > regsvr
    > >> > > to accomplish this, any hint? Thanks in advance.
    > >> > >
    > >> > >
    > >> >
    > >> >
    > >>
    > >>

    > >
    > >

    >






  14. #14
    Tony McIntyre Guest

    Re: Registering DLL by code

    I incorrectly stated run-time 452. What I meant was run-time 429. Boy is my
    face red :-)

    Sorry about that.

    Tony
    "Tony McIntyre" <bearman@pobox.com> wrote in message
    news:3929f690@news.devx.com...
    > Ron,
    > I am assuming that you are refering to a VB DLL that you have created. If
    > that is the case there are 2 functions that are exported that are of
    > interest in this area. They are DllRegisterServer and DllUnregisterServer.
    > These functions can be used to Register (same as regsvr32 my.dll) and
    > UnRegister (same as regsvr32 -u my.dll).
    >
    > You could attempt to instanciate your object in your dll and have an error
    > routine to catch the errors. If the run-time 452 error comes then call the
    > DllRegisterServer that is in your dll and it should self register. After

    the
    > self register then resume on the statement that caused the problem. I

    would
    > place a counter of some sort in this area to know if you have attempted to
    > self register already during this execution and if you have then don't
    > continue to self register. This way you will avoid a register loop.
    >
    > Hope this helps.
    >
    > Tony
    >
    >
    > "Ron Paredes" <ronparedes@priconmicro.com.ph> wrote in message
    > news:3928b292$1@news.devx.com...
    > >
    > > Did I miss this in my VB class? It seems that I'm stucked with shelling

    > regsvr
    > > to accomplish this, any hint? Thanks in advance.
    > >
    > >

    >
    >




  15. #15
    Tony McIntyre Guest

    Re: Registering DLL by code

    I incorrectly stated run-time 452. What I meant was run-time 429. Boy is my
    face red :-)

    Sorry about that.

    Tony
    "Tony McIntyre" <bearman@pobox.com> wrote in message
    news:3929f690@news.devx.com...
    > Ron,
    > I am assuming that you are refering to a VB DLL that you have created. If
    > that is the case there are 2 functions that are exported that are of
    > interest in this area. They are DllRegisterServer and DllUnregisterServer.
    > These functions can be used to Register (same as regsvr32 my.dll) and
    > UnRegister (same as regsvr32 -u my.dll).
    >
    > You could attempt to instanciate your object in your dll and have an error
    > routine to catch the errors. If the run-time 452 error comes then call the
    > DllRegisterServer that is in your dll and it should self register. After

    the
    > self register then resume on the statement that caused the problem. I

    would
    > place a counter of some sort in this area to know if you have attempted to
    > self register already during this execution and if you have then don't
    > continue to self register. This way you will avoid a register loop.
    >
    > Hope this helps.
    >
    > Tony
    >
    >
    > "Ron Paredes" <ronparedes@priconmicro.com.ph> wrote in message
    > news:3928b292$1@news.devx.com...
    > >
    > > Did I miss this in my VB class? It seems that I'm stucked with shelling

    > regsvr
    > > to accomplish this, any hint? Thanks in advance.
    > >
    > >

    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center