Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. mciSendString?

mciSendString?

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DaveE9th
    wrote on last edited by
    #1

    I'm trying to work with the mciSendString, but it's new to me. I've not seen it mentioned in any of the books I have. What's it used for? Tanks!!!!! Dave :-D

    "The man who reads nothing is better educated than the man who reads nothing but newspapers."- Thomas Jefferson

    M 1 Reply Last reply
    0
    • D DaveE9th

      I'm trying to work with the mciSendString, but it's new to me. I've not seen it mentioned in any of the books I have. What's it used for? Tanks!!!!! Dave :-D

      "The man who reads nothing is better educated than the man who reads nothing but newspapers."- Thomas Jefferson

      M Offline
      M Offline
      Maxwell Chen
      wrote on last edited by
      #2

      Platform SDK: Windows Multimedia MCI The Media Control Interface (MCI) provides standard commands for playing multimedia devices and recording multimedia resource files. These commands are a generic interface to nearly every kind of multimedia device. The mciSendString function sends a command string to an MCI device. The device that the command is sent to is specified in the command string. Example in Platform SDK Doc:

      DWORD PlayFromTo(LPSTR lpstrAlias, DWORD dwFrom, DWORD dwTo)
      {
      char achCommandBuff[128];

      // Form the command string.
      wsprintf(achCommandBuff, "play %s from %u to %u", 
          lpstrAlias, dwFrom, dwTo); 
      
      // Send the command string.
      return mciSendString(achCommandBuff, NULL, 0, NULL); 
      

      }

      BuggyMax

      D 1 Reply Last reply
      0
      • M Maxwell Chen

        Platform SDK: Windows Multimedia MCI The Media Control Interface (MCI) provides standard commands for playing multimedia devices and recording multimedia resource files. These commands are a generic interface to nearly every kind of multimedia device. The mciSendString function sends a command string to an MCI device. The device that the command is sent to is specified in the command string. Example in Platform SDK Doc:

        DWORD PlayFromTo(LPSTR lpstrAlias, DWORD dwFrom, DWORD dwTo)
        {
        char achCommandBuff[128];

        // Form the command string.
        wsprintf(achCommandBuff, "play %s from %u to %u", 
            lpstrAlias, dwFrom, dwTo); 
        
        // Send the command string.
        return mciSendString(achCommandBuff, NULL, 0, NULL); 
        

        }

        BuggyMax

        D Offline
        D Offline
        DaveE9th
        wrote on last edited by
        #3

        Thanks Max :-D

        "The man who reads nothing is better educated than the man who reads nothing but newspapers."- Thomas Jefferson

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups