Re: MMcontrol won't work on transported source code
- From: "MikeD" <nobody@xxxxxxxxxxx>
- Date: Wed, 4 Jan 2006 21:44:55 -0500
"Rich" <wyliegroves@xxxxxxxxxxx> wrote in message
news:4bGdnaFx9PfK4SHeRVn-oA@xxxxxxxxxxxxxx
>I was asked by my wife to develop a VB6 application that would allow her to
>administer make-up tests to her high school French students. The app is
>designed to play the listening portion of the test a certain number of
>times. MP3 files of the tracks for each test are stored in a table in
>Access 2000.
>
> I got the app to work at home using a dummy database. Because I wanted to
> build the connection string at the school computer, I took the code to
> school, set up the database, installed VB6, started a new project adding
> each form and module from those developed at home,and tested the new
> connection. The code works fine until I go to play a track. Nothing
> happens. Setting a stop in the code I can watch the proper track
> selected, assigned to the MMcontrol as follows:
>
>
> With MMcontrol1
> .File = "[file name from database]"
> .Command = "Open"
> .Command = "Play"
> End With
>
> Here's what I've tried:
>
> 1. Made sure the MMcontrol is added to the project components at school
> 2. Deleted the MMcontrols and dropped new ones on the form
> 3. Wrote a new, separate, short routine accessing the database fields with
> the MP3s - it works fine
>
> I'd hate too have to start from scratch because, for me, this is the most
> elaborate, beautiful and time-consuming code I've written (I'm just a
> dabbler).
I'm not sure of something. Are you saving the MP3s as binary data in the
database? Or, are you just saving a filename (and maybe path) in the
database? It appears to be the latter. If so, are you sure the path and/or
filename of the MP3 is correct? Did you copy all the MP3 files to the
folder(s) as they are saved in the database?
Also, if all you need to do is play these, I wouldn't recommend using the
MCI control. You can use the Win32API to play them without the MCI control.
--
Mike
Microsoft MVP Visual Basic
.
- References:
- Prev by Date: Re: Internal date/time representation
- Next by Date: Re: Vb App effecting Vba code?
- Previous by thread: MMcontrol won't work on transported source code
- Next by thread: Re: MMcontrol won't work on transported source code
- Index(es):
Relevant Pages
|