>I am trying to write an Active Server Page that calls a VFP5 DLL. This DLL only returns a string and works in VFP3, VFP5 and VB5 with the CREATEOBJECT() command.
>
>However, I try to call this DLL from my ASP but only get error messages.
>
>Here is what my ASP looks like. I left the brackets out.
>***Test.asp.
>SCRIPT LANGUAGE=vbscript runat=server
>set ox = createobject('myproject.myclass')
>y = ox.myproperty
>z = ox.mymethod()
>
>Display the results to client.
>Document.write(y)
>Document.write(z)
>SCRIPT
>***
>
>I keep getting errors on the createobject().
>
>How can an Active Server Page call a DLL and return a result in a web page to the user? Also, I would like to have this script run only on the server, not the client.
>
>Thanks,
>
>Jerryt
Jerry
Are you passing y to the dll or getting y from the dll?
If you are trying to get mymethod to execute then it should be just ox.mymethod.
Maybe I'm not following...
Jeff
It's Time to get a gun.
That's what I've been thinkin.
I think I can afford one, If I do a little less Drinkin.www.TrueGeeks.com