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. Job Interview Question: How can I play a movie using Visual Studio

Job Interview Question: How can I play a movie using Visual Studio

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++visual-studiocareercsharp
4 Posts 4 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.
  • K Offline
    K Offline
    kanekcwu
    wrote on last edited by
    #1

    I recently got offered a job by this entrepreneur. He basically knew that I was a programmer and wanted to hire me but he had one condition: By tomorrow I am suppose to create a Visual C++ program in Visual Studio 2008 that is able to play movies and through the code chose what position (what time) of the movie to start. He doesn't care how I do it or who I ask, he just want it done. Since I have no Visual Studio experience, (I program in Java and a little C) I tried looking around at the different options I have. I came up with 4. 1. I can use a command line through C to call window media player but then I would not be able to chose what position of the movie to start playing 2. I can use MCI but when I tried dragging the code in http://msdn2.microsoft.com/en-us/library/ms712870(VS.85).aspx on to my program I got compiling errors. 3. I can try using the Window Media Player 10 SDK but that seems really compilcated and I don't have the time to learn all that in a day. 4. I can try using some other open source programs or thir-party program like VLC and hope it would run. I basically tried each of those options and I always run into compiling problems, I think I am the closest with MCI but I am not sure. I am jsut very stump right now as I realize if only I have time to learn VIsual Stuido 2008, how easy and fun it would be to make Windows program. Can anyone give me any hints or advice on how to solve this problem? I would be very grateful. Thanks PS: I use Windows XP

    M R H 3 Replies Last reply
    0
    • K kanekcwu

      I recently got offered a job by this entrepreneur. He basically knew that I was a programmer and wanted to hire me but he had one condition: By tomorrow I am suppose to create a Visual C++ program in Visual Studio 2008 that is able to play movies and through the code chose what position (what time) of the movie to start. He doesn't care how I do it or who I ask, he just want it done. Since I have no Visual Studio experience, (I program in Java and a little C) I tried looking around at the different options I have. I came up with 4. 1. I can use a command line through C to call window media player but then I would not be able to chose what position of the movie to start playing 2. I can use MCI but when I tried dragging the code in http://msdn2.microsoft.com/en-us/library/ms712870(VS.85).aspx on to my program I got compiling errors. 3. I can try using the Window Media Player 10 SDK but that seems really compilcated and I don't have the time to learn all that in a day. 4. I can try using some other open source programs or thir-party program like VLC and hope it would run. I basically tried each of those options and I always run into compiling problems, I think I am the closest with MCI but I am not sure. I am jsut very stump right now as I realize if only I have time to learn VIsual Stuido 2008, how easy and fun it would be to make Windows program. Can anyone give me any hints or advice on how to solve this problem? I would be very grateful. Thanks PS: I use Windows XP

      M Offline
      M Offline
      Mukesh Kumar
      wrote on last edited by
      #2

      Option 2 is best for you. USE MCI to solve your problem.... and read these articles: 1. http://www.codeproject.com/KB/audio-video/hmediaplayer.aspx[^] 2.http://www.codeproject.com/KB/audio-video/moemeka7.aspx[^] 3.http://www.codeproject.com/KB/cpp/media_player.aspx[^]

      Mukesh Kumar Software Engineer

      1 Reply Last reply
      0
      • K kanekcwu

        I recently got offered a job by this entrepreneur. He basically knew that I was a programmer and wanted to hire me but he had one condition: By tomorrow I am suppose to create a Visual C++ program in Visual Studio 2008 that is able to play movies and through the code chose what position (what time) of the movie to start. He doesn't care how I do it or who I ask, he just want it done. Since I have no Visual Studio experience, (I program in Java and a little C) I tried looking around at the different options I have. I came up with 4. 1. I can use a command line through C to call window media player but then I would not be able to chose what position of the movie to start playing 2. I can use MCI but when I tried dragging the code in http://msdn2.microsoft.com/en-us/library/ms712870(VS.85).aspx on to my program I got compiling errors. 3. I can try using the Window Media Player 10 SDK but that seems really compilcated and I don't have the time to learn all that in a day. 4. I can try using some other open source programs or thir-party program like VLC and hope it would run. I basically tried each of those options and I always run into compiling problems, I think I am the closest with MCI but I am not sure. I am jsut very stump right now as I realize if only I have time to learn VIsual Stuido 2008, how easy and fun it would be to make Windows program. Can anyone give me any hints or advice on how to solve this problem? I would be very grateful. Thanks PS: I use Windows XP

        R Offline
        R Offline
        rjkg
        wrote on last edited by
        #3

        use DirectShow it is very easy to learn and in couple of hours you will be able to play the movies on window platform

        Rajesh

        1 Reply Last reply
        0
        • K kanekcwu

          I recently got offered a job by this entrepreneur. He basically knew that I was a programmer and wanted to hire me but he had one condition: By tomorrow I am suppose to create a Visual C++ program in Visual Studio 2008 that is able to play movies and through the code chose what position (what time) of the movie to start. He doesn't care how I do it or who I ask, he just want it done. Since I have no Visual Studio experience, (I program in Java and a little C) I tried looking around at the different options I have. I came up with 4. 1. I can use a command line through C to call window media player but then I would not be able to chose what position of the movie to start playing 2. I can use MCI but when I tried dragging the code in http://msdn2.microsoft.com/en-us/library/ms712870(VS.85).aspx on to my program I got compiling errors. 3. I can try using the Window Media Player 10 SDK but that seems really compilcated and I don't have the time to learn all that in a day. 4. I can try using some other open source programs or thir-party program like VLC and hope it would run. I basically tried each of those options and I always run into compiling problems, I think I am the closest with MCI but I am not sure. I am jsut very stump right now as I realize if only I have time to learn VIsual Stuido 2008, how easy and fun it would be to make Windows program. Can anyone give me any hints or advice on how to solve this problem? I would be very grateful. Thanks PS: I use Windows XP

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          You can use of MCI function,they can show video files.

          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