Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3021

Media Player Classic ActiveX

$
0
0
I am apologizing if my question is very naive or something, but I haven't been coding since 2010 and I need to make small app that would help some of my work.

So, I need to make app that would play selected video and, when its paused, record the time and later this all should be recorded in an excel file.

So,
1) I created MFC C++ app, dialog based (Visual Stduio 2013).
2) Then I add through the toolbox Windows Media Player
3) I created a variable my_wmplayer for WMP in dialog class (through the "add variable" wizard). Class COcx1 for WMP was created automatically.
4) I included a file "ocx1.h" into myproject.cpp
5) I added a button & created an event when button "open video" pressed in which user can open file and path name is saved in CString variable

Then I wanted this PathName be assigned as WMP URL and play WMP.
But I have no idea how to access it. All examples in web I found assume i can do something like
my_wmplayer.play(); or my_wmplayer.url = "blablabla", something like that. But I don't see any function to set URL or play the video.

Help, please, anyone?

Viewing all articles
Browse latest Browse all 3021

Trending Articles