Is there an equivalent in VBA??

Discussion in 'AutoCAD' started by Matt W, Jul 1, 2004.

  1. Matt W

    Matt W Guest

    Is there an equivalent to this...
    (vl-registry-read (strcat "HKEY_LOCAL_MACHINE\\" (vlax-product-key))
    "ProductName")
    in VBA??

    I'm not a big fan of mixing VLSP/LSP with VBA.

    Thanks in advance!!
     
    Matt W, Jul 1, 2004
    #1
  2. Allen Johnson, Jul 1, 2004
    #2
  3. Matt W

    SpeedCAD Guest

    Hi...

    Yes, but with Windows's API
     
    SpeedCAD, Jul 1, 2004
    #3
  4. Matt W

    Matt W Guest

    I should've been more clear.... (I was in a hurry)
    More specifically... is there an equivalent to (vlax-product-key)???

    (vl-registry-read (strcat "HKEY_LOCAL_MACHINE\\" (vlax-product-key))
    "ProductName")

    Thanks (and sorry for the confusion)!

    --
    Matt W

    The difference between genius and stupidity is that genius has its limits.
    | Look into the registry API functions.
    | A sample code is at http://www.freevbcode.com/ShowCode.Asp?ID=2598
    |
    |
     
    Matt W, Jul 1, 2004
    #4
  5. Can you evaluate it?
    Command: (vlax-product-key)
    "Software\\Autodesk\\AutoCAD\\R16.1\\ACAD-301:409"
     
    Allen Johnson, Jul 1, 2004
    #5
  6. Matt W

    Matt W Guest

    I'm starting to think that for what I want to do, it might be a little bit easier to do it with LSP (or VLSP).

    Thanks for the feedback!!

    --
    Matt W

    The difference between genius and stupidity is that genius has its limits.
     
    Matt W, Jul 1, 2004
    #6
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.