Re: MMcontrol won't work on transported source code

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"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



.



Relevant Pages

  • Re: MMcontrol wont work on transported source code
    ... >administer make-up tests to her high school French students. ... > I got the app to work at home using a dummy database. ... Made sure the MMcontrol is added to the project components at school ...
    (microsoft.public.vb.general.discussion)
  • Re: C#.NET Project idea ??
    ... Well at the moment i dont have any clue how to use database from ... database for my reference. ... We have got our own school. ... project and i am a software engineering student. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Sound Clip
    ... Doug Steele, Microsoft Access MVP ... Is there a way of adapting your database so that I can have a different ... bound text box so that I could use this for permantly linking each mp3 ... Though all the different linked mp3 files ...
    (microsoft.public.access.formscoding)
  • Re: Entering Check Boxes into Design View
    ... person in my database instead of just that one. ... linking a record to a sunday school database? ... lists of members, lists of activities (e.g. ... or envelopes, sends emails, etc. ...
    (microsoft.public.access.gettingstarted)
  • Re: HELLLLLLLLP!! I Screwed up!
    ... for me to pay out of my pocket for something for my school. ... could do it for a more reasonable price I would be happy to pay it. ... >Posting your database is completely inappropriate. ... >volunteers will help if they are willing and able to do so. ...
    (microsoft.public.access.gettingstarted)