Click here to Skip to main content
15,891,951 members

Create ActiveX/UserControl not in .NET to use in Embedded VB for a smartdevice

mario_silent asked:

Open original thread
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
Tags: C++, Visual Basic, ActiveX, User Controls

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900