Results 1 to 2 of 2

Thread: Help!!! Winmm.dll (im New At This!!!)

  1. #1

    Thread Starter
    Banned
    Join Date
    Dec 2000
    Location
    USA, NJ
    Posts
    72

    Cool

    i just started api. im makeing a media player. and i was looking threw the win api viewer. i saw the const that would make winmm.dll goto the end of the sound file. so i but in the code. but it dosent work.

    parksie told me "You're using mciSendString so you need to send a string, not a numeric value"
    then he went somewhere becuase hes not on the post race thing anymore.
    code:
    Module:

    Public Const MCI_SEEK_TO_END = &H200&

    Form:

    i = mciSendString(MCI_SEEK_TO_END, 0&, 0&, 0&)

    to me it should work. but it dosent. can some one help me. plz!!!

  2. #2
    Addicted Member KrishnaSantosh's Avatar
    Join Date
    Feb 2001
    Location
    Coimbatore
    Posts
    210
    Parksie is correct. The first arg should be a string in mciSendString. To Seek To The End Of File (In Secs) ::

    Use mciSendString's set time format milliseconds
    Then If The Sound Is Playing Use
    mciSendString's play from Secs
    or else
    mciSendString seek to Secs
    __

    For More Details EMail Me.

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