MP3's (*cringe*)

B

Brian

This has been asked a zillion times so I cringe to ask it again. I'm
developing some freeware -- more accurately, selfware (something *I* need)
and then just let others download it. I can (just like everyone else) play
WAVs effortlessly but MP3s elude me.

The only route seems to be invoking media player, or using something like
CFCOM to interact with a non-native control. The problem with the latter
solution is that this is quite pricey -- to shell out the money that they
want for CFCOM for a personal project -- and then more for an active x
control -- is too much.

Is it possible to invoke media player as a hidden process (no gui, etc.) --
or, has anyone else come up with a different solution?

Thx,
Brian
 
B

Brian

Mainly because I don't want Media Player to actually launch and open -- it
should seem integrated into my app....

Brian
 
A

Alex Feinman [MVP]

Ah.. Perhaps writing the unmanaged DLL which would play a file for you - via
WMP interfaces or DirectShow
 
B

Brian

Thanks for your help, Alex --

I can do this ... but one question as I'm somewhat new to the CF. How can I
reference my unmanaged dll from .Net code?

Brian
 
A

Alex Feinman [MVP]

Take a look at the articles listed here:
http://search.microsoft.com/search/results.aspx?View=msdn&st=a&qu=p/invoke+compact+framework&c=4&s=2

Brian said:
Thanks for your help, Alex --

I can do this ... but one question as I'm somewhat new to the CF. How can I
reference my unmanaged dll from .Net code?

Brian

Alex Feinman said:
Ah.. Perhaps writing the unmanaged DLL which would play a file for you - via
WMP interfaces or DirectShow
open --
it active
 
G

Geoff Schwab [MSFT]

Hi Brian,

The FAQ is a good resource for this as well.

6.1. How do I call a function that is in a native DLL?
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx#6.1

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.
Brian said:
Thanks for your help, Alex --

I can do this ... but one question as I'm somewhat new to the CF. How can I
reference my unmanaged dll from .Net code?

Brian

Alex Feinman said:
Ah.. Perhaps writing the unmanaged DLL which would play a file for you - via
WMP interfaces or DirectShow
open --
it active
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top