Registering DLL

Discussion in 'AutoCAD' started by HJohn, Jul 5, 2004.

  1. HJohn

    HJohn Guest

    Is it possible to register a DLL from VBA code? David Stein shows how to do in lisp on the Visual Lisp Bible, is there a vba sample? Thanks.
     
    HJohn, Jul 5, 2004
    #1
  2. Just use SHELL and feed the location of your DLL to REGSRVR32.EXE.
     
    Frank Oquendo, Jul 6, 2004
    #2
  3. HJohn

    HJohn Guest

    Frank do you have or know where I could find and example to first test to see if the DLL have been registered and if not then register it?
     
    HJohn, Jul 6, 2004
    #3
  4. David Stein shows how to do in lisp on the Visual Lisp Bible, is there a
    vba sample?

    What Dave Stein shows is my code (from VL-DBX.ZIP on my web site), which
    he plagurized.

    In VBA, you can do it several ways. You can use ShellExecute(), or the SHELL
    statement.



    AutoCAD based Security Planning Solutions:
    http://www.caddzone.com/securityplanning


    do in lisp on the Visual Lisp Bible, is there a vba sample? Thanks.
     
    Tony Tanzillo, Jul 6, 2004
    #4
  5. Hi,

    While this is possible as shown by other replies, surely a better approach
    would be to use an installation program to install your program on another
    computer.

    "Inno Setup", which is free, powerful, extremely well supported, and very
    easy to use can readily register your DLLs as part of the installation
    process.

    Watch word wrap on the following sample line which copies a file to the
    Windows System32 directory and registers it

    Source: "C:\Installation\_General Install Items\Msflxgrd.ocx"; DestDir:
    "{sys}"; Flags: RegServer


    If you can program in Delphi, then you can do literally anything with Inno
    Setup.

    I don't have them here, but the Inno Setup.Code Newsgroup has code supplied
    to me to locate Autodesk products in the registry enabling me to
    Automatically install the correct DVBs depending on the installed Autodesk
    software. This makes for very clean installations.

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au


    do in lisp on the Visual Lisp Bible, is there a vba sample? Thanks.
     
    Laurie Comerford, Jul 7, 2004
    #5
  6. HJohn

    HJohn Guest

    Thanks Tony for your reply, my intentions in finding an example are pure educational. I would like to learn the best way of doing this. A setup program as suggested could do the job, but I would not learn anything with it. So, if you know where I could find an example, book or web site, would you let me know?
     
    HJohn, Jul 7, 2004
    #6
  7. HJohn

    dstein Guest

    I didn't "plagiarize" your code and you didn't invent the concept or practice of registering a DLL from a script or program written in other languages. I simply adapted my example from examples posted on the Internet done with VBScript and VB6 and compiled an aggregate from everything I could find. I didn't see your name on any of the samples I found. If you hold a U.S. or foreign patent or copyright on this specific method, please provide me the numbers and I will gladly post an updated book with your information clearly stated with full credit. The book I posted is free, not sold in any form, and has not been maintained since I let it go last year (I think). Don't assume you invent everything and that nobody else could possibly have found other sources for coding examples than yours.
     
    dstein, Jul 7, 2004
    #7
  8. I didn't "plagiarize" your code and you didn't invent the concept or practice of registering a

    You certainly did plagiarize my code. Even a chimpanzee can figure
    that out by comparing the code in question.

    As far as your attempt to refute that, I will allow and invite others to
    compare your plagiarism with the original, and judge for themselves.
    The original work that you plagiarized is found here:

    http://www.caddzone.com/vl-dbx.zip

    Variations of it were also posted on this newsgroup by myself, with
    my name as the author of the post, so never mind this crap about
    how you found it 'floating around' somewhere on the internet with
    no name or anything else that identifies the original author. That's a
    laugher.

    I won't have anything further to say to you about this in public, because
    I'm not in the habit of dignifying this sort of intellectual bottom feeding.
     
    Tony Tanzillo, Jul 7, 2004
    #8
  9. HJohn

    dstein Guest

    Whatever
     
    dstein, Jul 7, 2004
    #9
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.