GOT ANOTHER QUESTION. HOW WOULD I USE THE mciSendString function to play a multimedia file. I want to use pure API. I know how to do it in vb6, so all i need is one conversion of how to open the multimedia file for PLAY, and then i can do the rest. heres the code in vb6 on opening the multimedia file. I WANT TO USE API ONLY. NO EXTERNAL MCI CONTROLS OR WHATEVER.
If you can convert this one call, i will be glad to send u the finished multimedia player sourcecode once its done. The source and exe will be available for everyone to download once its done from my website anyways.Code:Dim cmdToDo As String * 255 Dim tmp As String * 255 Dim lenShort As Long Dim ShortPathAndFile As String Dim Filename As String Filename = "C:\video.mpg" lenShort = GetShortPathName(FileName, tmp, 255) ShortPathAndFile = left$(tmp, lenShort) 'cut short path from buffer cmdToDo = "open " & ShortPathAndFile & " type " & typeDevice & " Alias " & _ AliasName & " parent " & hWnd & " Style " & WS_CHILD call mciSendString(cmdToDo, 0&, 0&, 0&)




Reply With Quote