Job Interview Question: How can I play a movie using Visual Studio
-
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
-
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
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
-
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
-
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
You can use of MCI function,they can show video files.