using com object in vbscript

Discussion in 'Visual Basic ( VB )' started by RobertG, Apr 14, 2010.

  1. RobertG

    RobertG New Member

    Joined:
    Apr 14, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi

    I have created .dll with vb.net and registered it with regasm and copied it to the GAC with GACUtil. Everything worked fine. If you use gacutil /l the file is there.

    Now I want to use the dll in a vbscript. the code I used is

    dim testdll

    set testdll = createobject("myDLL")

    and I am getting the following error

    ActiveX component can't create object: 'myDLL'
    code 800A01AD

    What am I doing wrong

    Thanks

    Robert
     
  2. SaswatPadhi

    SaswatPadhi ~ Б0ЯИ Τ0 С0δЭ ~

    Joined:
    May 5, 2009
    Messages:
    1,342
    Likes Received:
    55
    Trophy Points:
    0
    Occupation:
    STUDENT !
    Location:
    Orissa, INDIA
    Home Page:
    http://www.crackingforfun.blogspot.com
    Your call to "CreateObject" seems wrong.

    Correct syntax :: CreateObject([Namespace].[Classname], RemoteServerName)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice