473,326 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Calling Dll Problem

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?


--
Jul 19 '05 #1
8 1513
I haven't got a clue at what the problem could be, but i would suggest
adding a simple function to the dll to test if the ASP page is
recognizing it properly. The only other thing I would check is that
"Play" isn't some sort of reserved word or something.

Barry Sanderson <lo******@email.com> wrote in message news:<Xn******************************@198.161.157 .145>...
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?


--

Jul 19 '05 #2
Is the component intended to control winamp on the web-server or on the
client's system?

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Barry Sanderson" <lo******@email.com> wrote in message
news:Xn******************************@198.161.157. 145...
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?


--

Jul 19 '05 #3
Its supposed to control winamp on the server. I'll have my speakers and
everything set up on the server. I'll only be connecting through my local
intranet in my house, so this should work fine.
"Mark Schupp" <ms*****@ielearning.com> wrote in news:OwNP33H1DHA.2528
@TK2MSFTNGP09.phx.gbl:
Is the component intended to control winamp on the web-server or on the
client's system?


Jul 19 '05 #4
Yes, initially you need to ensure that you are able to correctly instantiate
and call the DLL from ASP so add a simple Test method that returns a string
maybe and display it from your ASP page just to check that side of things is
working.

"Barry Sanderson" <lo******@email.com> wrote in message
news:Xn******************************@198.161.157. 145...
Its supposed to control winamp on the server. I'll have my speakers and
everything set up on the server. I'll only be connecting through my local
intranet in my house, so this should work fine.
"Mark Schupp" <ms*****@ielearning.com> wrote in news:OwNP33H1DHA.2528
@TK2MSFTNGP09.phx.gbl:
Is the component intended to control winamp on the web-server or on the
client's system?

Jul 19 '05 #5
could you re-post your code?

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Barry Sanderson" <lo******@email.com> wrote in message
news:Xn******************************@198.161.157. 145...
Its supposed to control winamp on the server. I'll have my speakers and
everything set up on the server. I'll only be connecting through my local
intranet in my house, so this should work fine.
"Mark Schupp" <ms*****@ielearning.com> wrote in news:OwNP33H1DHA.2528
@TK2MSFTNGP09.phx.gbl:
Is the component intended to control winamp on the web-server or on the
client's system?

Jul 19 '05 #6
Sure. Here it is:

This is the dll call from VB6 (which works fine)

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

And here it is from ASP (which doesn't work).
<%
set Winamp = server.createObject ("WinampControl.commands")
Winamp.play()
%>

I can post the DLL code, but its much larger, and I'm fairly certain
thats not where the problem is since it works in VB.
"Mark Schupp" <ms*****@ielearning.com> wrote in news:OUK4KCU1DHA.2456
@TK2MSFTNGP12.phx.gbl:
could you re-post your code?


Jul 19 '05 #7
or you could just use one of these

http://www.winamp.com/plugins/browse...te+control+lan

Barry Sanderson <lo******@email.com> wrote in message news:<Xn******************************@198.161.157 .145>...
Sure. Here it is:

This is the dll call from VB6 (which works fine)

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

And here it is from ASP (which doesn't work).
<%
set Winamp = server.createObject ("WinampControl.commands")
Winamp.play()
%>

I can post the DLL code, but its much larger, and I'm fairly certain
thats not where the problem is since it works in VB.
"Mark Schupp" <ms*****@ielearning.com> wrote in news:OUK4KCU1DHA.2456
@TK2MSFTNGP12.phx.gbl:
could you re-post your code?

Jul 19 '05 #8
Probably your component requires that a window exist in order to work. This
generally won't work from ASP.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Barry Sanderson" <lo******@email.com> wrote in message
news:Xn******************************@198.161.157. 145...
Sure. Here it is:

This is the dll call from VB6 (which works fine)

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

And here it is from ASP (which doesn't work).
<%
set Winamp = server.createObject ("WinampControl.commands")
Winamp.play()
%>

I can post the DLL code, but its much larger, and I'm fairly certain
thats not where the problem is since it works in VB.
"Mark Schupp" <ms*****@ielearning.com> wrote in news:OUK4KCU1DHA.2456
@TK2MSFTNGP12.phx.gbl:
could you re-post your code?

Jul 19 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Chris | last post by:
Hi I have a scenario where I've created another AppDomain to dynamically load a DLL(s) into. In this newly loaded DLL I want to call a static method on a class. The problem arise is that I have...
0
by: PhilP_Gyro | last post by:
I have created a com object using C# and .NET, following the instructions listed in Com Interop Part 2 from MSDN. I then created a simple VC++/MFC app to call the COM object. I initially connect to...
7
by: Klaus Friese | last post by:
Hi, i'm currently working on a plugin for Adobe InDesign and i have some problems with that. I'm not really a c++ guru, maybe somebody here has an idea how to solve this. The plugin is...
5
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS...
7
by: Andrew Christiansen | last post by:
Hey everyone. I have Visual Basic .NET 2003 and am trying to show images on a treeview control. I have the imagelist on the form filled with images, and have the ImageList property of the...
3
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. ...
4
by: jim | last post by:
Hi All, I try to make an asynchronous call to a web service method as below under MS visual .NET studio 2003: WebService webSrv = new WebService(); AsyncCallback cb = new...
6
by: TPJ | last post by:
Help me please, because I really don't get it. I think it's some stupid mistake I make, but I just can't find it. I have been thinking about it for three days so far and I still haven't found any...
3
by: strongfrakk | last post by:
Hi All, I have problem with subject .( The code seems like good. For example: cmenu.as class cmenu { public var menuitemarray;
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.