ActiveX exe calling from asp

Hi,

Kindly assist what could be missing, when calling from asp nothing shows up no error but when using vb to access the activeX it does return the value.

Tried placing a msgbox in the activex fuction, it does return a value. EDDYKT wrote the amazing activex function.

____________________________________asp
<%
dim wApp
Set wApp = Server.Createobject("ActiveXEXE.Class1")
Response.Write "<P> " & wApp.GetValue("test") & " </P>"
%>


____________________________________vb
Private Sub Command1_Click()
dim wApp
Set wApp = Createobject("ActiveXEXE.Class1")
print wApp.GetValue("test")
End Sub

Kindly assist what could be wrong with the asp side, it's not displaying any error messages..how can we troubleshoot furthur?

Thanks
EdwardPeterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Guy Hengel [angelIII / a3]Billing EngineerCommented:
Is the ActiveXExeClass installed on the (ASP) Server?
EdwardPeterAuthor Commented:
angelIII,

The activex exe is running on the client workstation where asp is being opened.

the activex exe needs to be running on the client since it's querying information from the client workstation.

Thanks.
Guy Hengel [angelIII / a3]Billing EngineerCommented:
>>Set wApp = Server.Createobject("ActiveXEXE.Class1")

This line DEFINITIVELY creates the obect on server side!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

EdwardPeterAuthor Commented:
angelIII,

I see your point, can you kindly assist how to go about the problem at hand?

How can we call the activex exe from where the user open it's browser.

Thanks.
Guy Hengel [angelIII / a3]Billing EngineerCommented:
Maybe this helps (note: basically for intranet use)
http://www.whirlywiryweb.com/q/launchinie.asp
jimbobmcgeeCommented:
If you want an ActiveX to open on the client, you need to find its class ID and make an object, with the HTML.  Something like:

    <%
            'MY ASP BITS
    %>

    <!-- MY HTML BITS -->

    <HTML>
        <HEAD></HEAD>
        <BODY>

            <OBJECT id="myObject"
                           classid="clsid:1234-56789-0ABCDEF"
                           width="200"
                           height="100">

                <PARAM name="Paramater01" value="this" />
                <PARAM name="Paramater02" value="that" />
                <PARAM name="Paramater03" value="other" />

                <IMG src="no_activex.gif" alt="You cannot display the ActiveX control" />

            </OBJECT>

        </BODY>

    </HTML>

will work in IE6 (probably not in Netscape, Opera or Firefox).

HTH

J.
EdwardPeterAuthor Commented:
jimbobmcgee,

What you say open do you mean query the data from the client side or open as in launch the applciation?

Thanks.
EdwardPeterAuthor Commented:
jimbobmcgee,

I'm sure i'm misunderstood you, not sure what you mean by >>If you want an ActiveX to open on the client<<

The activeX exe is running on the client side, i've execute the exe file my self, sadly now, I'm stuck on how to run asp to initiate on client side for activex exe. can you kindly assist?

Thanks!!!
hemakumarCommented:
without a webserver the asp page cannot be processed.so either u need to have a webserver.Or write the client script which executes on the client side invoking the exe using the object tag and client side events on buttons.
EdwardPeterAuthor Commented:
Got it!!!

I'll repost the question to javascript since I've read that it's possible to control the activex using javascript and calling the javascript from the asp.

Thanks so much for the time and patience
jimbobmcgeeCommented:
>> I'm sure i'm misunderstood you, not sure what you mean by >>If you want an ActiveX to open on the client<<

The same way a movie loads in a web page -- the media player's ActiveX is created, as an object, on the client's machine.  If the client does not have the ActiveX (i.e. does not recognise the classid), nothing happens.  If the client does, an instance of the ActiveX is created.  Once the ActiveX is created, you can manipulate it with JavaScript, referring to the id of your object.

J.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.