Re: File playback application in VB6

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



Amit,

thanks for submitting the code. Unfortunately I currently don't have an XP
machine (TAPI3.1) with dev tools on it for testing.

Could you please try:

Dim Files() As Variant

instead of String. I thought a VB String array would be automatically
converted to a SAFEARRAY with V_BSTR elements, but maybe
this assumption is wrong...


Best regards,

Matthias Moetje
-------------------------------------
TERASENS GmbH
Augustenstraße 24
80333 Munich, GERMANY
-------------------------------------
Fon: +49 89 143370-0
Fax: +49 89 143370-22
e-mail: moetje at terasens dot com
www: www.terasens.com
-------------------------------------

"Amit mehrra" <amitkmehra_54@xxxxxxxxxxx> wrote in message
news:uEuOvut7FHA.4012@xxxxxxxxxxxxxxxxxxxxxxx
> Sir,
> I am sending u the code u requested.
> I have tried a lot but always an run time error appeared on the line
> objMediaPlayback.PlayList = Files saying "Invalid procedure call or
argument
> (Run time Error 5)".
> Sir, I am unable to assign list of files to Playlist property of
> TAPI3Lib.ITMediaPlayback class.
>
> Plz help me
> I shall be very Thankful to you.
>
> With regards.
> Amit
> "Matthias Moetje [MVP]" <moetje@xxxxxxxxxxxxxxxxxxx> wrote in message
> news:uF8Hoit7FHA.740@xxxxxxxxxxxxxxxxxxxxxxx
> > Amit,
> >
> > could you please paste the code your are using?
> >
> >
> > Best regards,
> >
> > Matthias Moetje
> > -------------------------------------
> > TERASENS GmbH
> > Augustenstraße 24
> > 80333 Munich, GERMANY
> > -------------------------------------
> > Fon: +49 89 143370-0
> > Fax: +49 89 143370-22
> > e-mail: moetje at terasens dot com
> > www: www.terasens.com
> > -------------------------------------
> >
> > "Amit mehrra" <amitkmehra_54@xxxxxxxxxxx> wrote in message
> > news:uJyASUt7FHA.444@xxxxxxxxxxxxxxxxxxxxxxx
> > > Sir,
> > > I have tried your idea in my project but an run time error appeared
> on
> > > the line objMediaPlayback.PlayList = Files saying "Invalid
procedure
> > > call or argument (Run time Error 5)".
> > > Sir, I have tried a lot but am unable to assign list of files to
> Playlist
> > > property of TAPI3Lib.ITMediaPlayback class.
> > >
> > > Plz help me
> > > I shall be very Thankful to you.
> > >
> > > With regards,
> > > Amit
> > >
> > > "Matthias Moetje [MVP]" <moetje@xxxxxxxxxxxxxxxxxxx> wrote in message
> > > news:uIoQxDH7FHA.640@xxxxxxxxxxxxxxxxxxxxxxx
> > > > Amit,
> > > >
> > > > I believe this should work:
> > > >
> > > > Dim objMediaPlayback as ITMediaPlayback
> > > > Dim Files() as String
> > > >
> > > > ReDim Files(1)
> > > >
> > > > Files(0) = "C:\file1.wav"
> > > > Files(1) = "C:\file2.wav"
> > > >
> > > > objMediaPlayback.PlayList = Files
> > > >
> > > >
> > > > Best regards,
> > > >
> > > > Matthias Moetje
> > > > -------------------------------------
> > > > TERASENS GmbH
> > > > Augustenstraße 24
> > > > 80333 Munich, GERMANY
> > > > -------------------------------------
> > > > Fon: +49 89 143370-0
> > > > Fax: +49 89 143370-22
> > > > e-mail: moetje at terasens dot com
> > > > www: www.terasens.com
> > > > -------------------------------------
> > > >
> > > > "Amit mehrra" <amitkmehra_54@xxxxxxxxxxx> wrote in message
> > > > news:%23qif2%23F7FHA.3876@xxxxxxxxxxxxxxxxxxxxxxx
> > > > > dear Experts,
> > > > >
> > > > > I am making a File playback application in VB6 only, using file
> > playback
> > > > > terminals.
> > > > > My ploblem is that I am unable to assign list of Files to Property
> > > > PlayList
> > > > > which is Member of
> > > > >
> > > > > TAPI3Lib.ITMediaPlayback class using VB6.
> > > > > Plz help me assigning list of files using VB6
> > > > >
> > > > > I shall be very tankful to you.
> > > > > Thanx.
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
>


.



Relevant Pages

  • Re: GetIPAddressBy Machine name
    ... "Amit" wrote in message ... >> Sir, ... >> I want to getthe IPAddress by the machine name. ...
    (microsoft.public.win32.programmer.networks)
  • Re: File playback application in VB6
    ... I have tried your idea in my project but an run time error appeared on ... Sir, I have tried a lot but am unable to assign list of files to Playlist ... >> I am making a File playback application in VB6 only, ... >> Plz help me assigning list of files using VB6 ...
    (microsoft.public.win32.programmer.tapi)
  • Re: DLLHOST.EXE Problem
    ... >MS Exchange Hosting: ... >> Dear Sir, ... >> performance reaching 100%,when i used to see the win ... >> Thanks and Regards ...
    (microsoft.public.inetserver.iis.security)
  • Re: fao Vagabond : Re: What Farangs Dont Get About Thai Women
    ... Please look at the previous posts, sir. ... Best Regards, ... (I just stopped saying sorry for my weird grammar becasue someone thinks ...
    (soc.culture.thai)
  • Re: About Converting/Type casting from USHORT to PVOID.
    ... Yes Sir, It is an io register. ... >> to type-casting of PVOID type. ... >> regards, ...
    (microsoft.public.development.device.drivers)