Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
Hi everyone, here we got an odd requirement.
They want to be able to play a wmv in a handheld in the same form that doesn't support .NET, so I believe they're using Embedded Visual Basic.
Someone gave the Idea to use a dll with a control that contained the embedded wmp to play the wmv, the question is what's the best approach and how to do it? I downloaded a Microsoft example(c++) to access WMP in a mobile device using atl libraries and wmp.h but I kept getting some error about the threading and found out it had to do with the mobile sdk version and that stuff.
If someone could share an idea or a good example on how to go about it, I'd be very grateful, I'm a C# developer and have little to no experience in c++ or ATL/ActiveXControls. Is this the right approach or what are some suggestions?
I read a bit about how to create an ATL control but I didn't get a clear idea about how I'd do it to embed the wmp and the video there to display it in the Embedded VB in the handheld. The example I ran into just handled basic click events on the control but I don't know if you can embed the wmp there and how if possible.
Thanks to everyone, regards
Posted 6-May-11 12:53pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You could simply host the control in embedded VB?
i.e. embedding YOUR control that has WMP embedded in it, is simply a level of indirection you don't need?
I've never used embedded VB, but i have done a lot with winMo Smile | :)
From the wmpHost sample (which i guess is what you're referring to), the wmp control is {6BF52A52-394A-11d3-B153-00C04F79FAA6}
mario_silent at 8-May-11 20:34pm
Hi barneyman, thanks for your idea, I think it sounds quite good, I'll have to see with the guy who's actually developing the form in embedded VB 'cause I've never used it before either.
By the way, I've tried running the wmpHost example you're referring to but without any luck, tells me to define some key, I do, and then it says it can't find the wmp.h which I have stored in my pc and I've even explicitly copy/pasted the file to the project and it also gives me an error about some .sbr file for the emulator which can't be found, we're quite confused here but I'll keep trying! thanks for your help

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 410
1 Sergey Alexandrovich Kryukov 350
2 ProgramFOX 275
3 Maciej Los 275
4 CHill60 260
0 OriginalGriff 360
1 ProgramFOX 265
2 Maciej Los 235
3 CHill60 200
4 RyanDev 170

Advertise | Privacy | Mobile
Web04 | 2.8.150331.1 | Last Updated 8 May 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100