calling an ActiveX dll from html or asp - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

calling an ActiveX dll from html or asp

I need to call (run) an ActiveX dll from an asp page with a button on it.
I tried this code but it doesn't want to bring it up.


ActiveX Component




<%
dim objcb

set objcb=Server.CreateObject("ReptWiz.Class1.Main")
objcb.Myles

sub Myles()
Call ReptWiz.Class1.Main
end sub


%>














I just did this real quick in front page and tried to run it localy on my own machine here. I doesn't do anything.

Please help
TheKing


Comments

  • gigsvoogigsvoo Posts: 328Member
    The method of calling is wrong, you should have the functions or sub you need coded inside the ActiveX dll rite?

    just call the objTest.FunctionA()

    Neo Gigs
    http://communities.msn.com.my/VisualBasicwithNeo

  • TheKingTheKing Posts: 24Member
    : The method of calling is wrong, you should have the functions or sub you need coded inside the ActiveX dll rite?
    :
    : just call the objTest.FunctionA()
    :
    : Neo Gigs
    : http://communities.msn.com.my/VisualBasicwithNeo
    :
    :
    ok, lets see if I got this right:

    <%
    dim objcb

    set objcb=Server.CreateObject("ReptWiz.Class1")

    objTest.FillLists()

    end sub


    %>









    FillLists is the first thing I call upon in my dll
    TheKing
  • gigsvoogigsvoo Posts: 328Member
    : <%
    : dim objcb
    :
    : set objcb=Server.CreateObject("ReptWiz.Class1")
    ## What is the ReptWiz.Class1 returned ?
    :
    : objTest.FillLists()
    ## Should not call the sub/function is it is returning something at here
    :
    : end sub
    :
    :
    : %>
    :
    :
    :
    :
    :
    :
    :
    :
    :
    : FillLists is the first thing I call upon in my dll
    : TheKing
    :


    Neo Gigs
    http://communities.msn.com.my/VisualBasicwithNeo

  • GoblinmanGoblinman Posts: 13Member
    : <%
    : dim objcb
    :
    : set objcb=Server.CreateObject("ReptWiz.Class1")
    :
    'Naturally you must use the function with the object
    'that refers to your component, wich is objcb
    : objcb.FillLists()
    :
    :
    :
    :
    : %>
    :
    :
    :
    :
    :
    :
    : ">
    :


    Hope it worx!

    /Johan

Sign In or Register to comment.