View Full Version : Visual Basic, TCI/IP and Music

06-09-01, 10:47 AM
TCP/IP: I need to know how I would set up a host/server system on Visual Basic that ddn't require the user to input all the port #s, and IP addresses, ect, ect..


IsMusicOn = True
' open the background music file
RetValue = mciSendString("OPEN " & App.Path & "\Bjorn Lynne - Proud Warriors.mid TYPE SEQUENCER ALIAS BackgroundMusic", "", 0, 0)

Note the "OPEN " & App.Path & "\Bjorn Lynne - Proud Warriors.mid. I don't know what's wrong. Both the Project, and the .mid file are in the same directory- C:\My Documents\Visual Basic\DM Interface Project\

How do I fix this?

Thank you.

07-02-01, 03:41 AM
Not sure if this will work or not, but try replacing this line

"OPEN " & App.Path & "\Bjorn Lynne - Proud Warriors.mid


"OPEN " & CurDir & "\Bjorn Lynne - Proud Warriors.mid