![]() Right click on the media player on the dialog and clickclass wizard - Choose mfc class from type lib (Only this gives windows media player as an optionFrom the available libraries choose 'windows media player Then choose 'ImediaPlayer2' from the interfaces and add it to generated classes.The above step creates the followingCMediaPlayer2 class and CMediaPlayer.h header file.Then I add variable name vidctrl of type COcx1This creates two files ocx1.h and ocx1.cppThe I add vidctrl.open in my init code. Right click and insert activex control on the dialog window.Choose the windows media player from the list and press OK.4. ![]() Go to resource managerGo to video.rc - DialogDouble click IDDVIDEODIALOG3.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |