I'm having a problem calling a .dll file from asp. Here is the
situation:
I'm creating a web enabled mp3 app that uses windows messaging to control
winamp. To this end I've made a dll that controls the basic functions of
winamp that works fine out of VB6, but seems to freeze any asp web app
that tries to call it.
When I create the .DLL file it compiles and registers just fine. In VB6
I use the following code to call it and it seems to work great.
Dim test As New WinampControl.Commands
Private Sub Command1_Click()
test.Play
End Sub
Private Sub Command2_Click()
test.StopPlaying
End Sub
Private Sub Command3_Click()
test.Pause
End Sub
Using ASP, I'm using code snippets like this:
<%
set Winamp = server.createObject ("WinampControl.commands")
Winamp.play()
%>
.....HTML stuff follows
When I hit the web page it tries to load forever and doesn't start
playing or otherwise control winamp. In my testing, it seems to freeze
on the "Winamp.play" line of code, so it seems to recognize the .dll, but
not any of the commands. In theroy, it should start playing winamp on my
local webserver.
I would like this app to be web enabled so I can control my jukebox via
any computer in my house, or even via a wireless pda. Can anyone tell me
what might be going on?
--