Results 1 to 3 of 3

Thread: Multimedia control in VB.NET

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2001
    Posts
    36

    Question Multimedia control in VB.NET

    In VB6, there was a MCI32.OCX control (MMC Multimedia Control) that you could use to play and record .WAV files. I have tried copying the MCI32.OCX file and referencing that in my program, but VB.NET throws a 'Class not licensed for use' error. I cannot find any similar control in VB.NET, save for a reference to a MEDIAPLAYERlib control under the COM tab in 'References'. Firstly, is there any way to use the MCI32.OCX control in VB.NET, and secondly, does anyone have any info about how to use the MEDIAPLAYERlib control class?

    --Steve K.

  2. #2

    Thread Starter
    Member
    Join Date
    Jan 2001
    Posts
    36

    Smile

    I did a search on Microsoft's website about this, and they explain exactly this problem and it's solution! Here's the link to the page that describes the problem and solution:

    http://support.microsoft.com/default...EN-US;Q318597&

    Evidently, it has to do with the registry keys from the old VB6 controls, either by installing VB6 or by importing the .reg file from the VB.NET install CD. I followed the instructions for importing the registry keys (rather than installing VB6), then tested it by adding the MM Control to the toolbox and placing one on a form - it worked just fine. I have not tested the functionality of the control yet, so I'll have to get back to y'all on that one.

    BTW, they are a little vague on where to find that .reg file on the VB.NET CD's - I have the academic version, and I found it on disc #4 of the install discs. Your location may vary depending on your version of the software..........

    --Steve K.

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2001
    Posts
    36
    Yup, the MM Control works just fine. I would imagine that it's the same for all of the old VB6 .ocx's - could you use any of the old VB6 controls in this way maybe? Would you want to????

    --Steve K.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width