Playing sound files on an XDA II - Windows Mobile Development and Hacking General

I'm writing a C# .NET app for my XDA II using Visual Studio 2003 and I need to play a WAV file in response to a particular event.
Looking through the help for the compact .NET framework I discover that the compact framework doesn't seem to have any classes for playing sounds!!!!
The .NET compact framework help refers to a PlaySound function in coredll.dll and shows how to use it.
The Problem is that my XDA II doesn't seem to have this DLL. I assume that
coredll.dll is part of Windows CE and that some sort equivalent exists for Pocket PC but I can't seem to find it.
Could somebody please point me in the right direction.

i have it
so it must be in sdk mobile 5
i do have two one coredll.dll.0409 and a coredll.dll in windows dir of my Xda2
or its part of windows mobile 5 or its part of visual basic runtime
hope it helps

Related

Does anyone have a VB.net CF app running on a SX-66

I can't get a basic app I have created using VB.net to run on my SX-66. In fact other .net compact framework apps I have gotten from other developers won't work either. I have tried a hard reset and started from scratch but I have had no luck getting the app or finding any answers. Cingular and Siemens both point at MS. I can't find crap from MS about this.
The app works fine on a Toshiba PPC but all it does is show the wait cursor momentarily then nothing, not even a error message on my SX-66. Mobile apps using the eVB runtime files work fine. It is just the .net compact framework app that is the problem.
Does anyone have a VB.net app working on a SX-66? If so maybe I can compare some files with you and track this issue down.
Thanks.

O2 Exec etc... programming IDE

I use Visual Studio 6 and 2005 at work, and was wondering what development environment you use for writing applications etc, for the Exec. I installed WinCE C++ v4.0 yesturday and the .exe built for the ARM processor wouldn't run!
Dev env for WMobile 5
Visual Studio 2003 or 2005 work fine.
(you can get the "academic" version if you are a student for less than £50)
with 2003 you have to make smartdevice projects and write them in c#
in 2005 you should be able to do MFC and win32 in c++ as well
Thanks.
Which ever IDE you use, you need to download Pocket PC SDK from MS (it's free) for Window Mobile 5.
You can also use eVC 4, but you need to install SP 4 for it, and PPC SDK for Windows Mobile 2003 (it won't recognise WM5 SDK).
Sorry to be a pain but I have not written software targeted at WinCE/WM before.
I have installed eVC4, Microsoft Pocket PC 2003 SDK, SP3 and SP4. I can debug with the Pocket PC Emulator fine, but when I try to debug or install in release mode on the O2 Exec (which is connected) I get the following warning dialog: "CE platform pocket pc 2003 does not match remote os version 501". :?
I do not want to write software for the PPC using .NET (although I write in C# at work, as well as MFC/ATL C++), as in my opinion the PPC isn't fast enough for managed code. So how can I write apps' for the O2 Exec using eVC4 :?:
Hi VZ800!
You are right about .NET, those apps are more sluggish then native code.
Don't worry about the warning, just click yes, then you going to get another warning, something about CPU type, click yes on that one two.
The eVc *****es because it's not familiar with WM5 devices, but your program will run fine. In fact, I used eVc 3, to write programs for WM5 that were backwards compatible with WM 2002 and they worked fine (although eVc 3 can't connect to the device so I had to copy the exe manually).
The debugger should work as well, though I try to avoid it since it some times takes a long time to connect.
If all you need is some debug prints, no watches or brake points, you might be better off writing to a file with the old fopen, fprintf, funcs. which come in both ASCII and Unicode (wfprintf) versions.
Good luck!
Thanks, I'll give it another go tomorrow.

development environment?

hi
i was wondering if anyone could point me in the direction of some decent but free development tools for wm5
thanks
embedded visual c++
you can also get free compilers like gcc and a .net compiler which run on the pocketpc itself
but it's hardly en ide
Depends on what language you want to code. For instance I couldn't find a decent assembly IDE yet (free or not). For C++/C# (managed and unmanaged) VS2005 is probably still the best. And the epxress versions can be obtained for free. Integration of embedded stuff would have to be done manually, I guess.
well i prefer programming in c/c++ so are there any free tools/IDEs for it?
don't i have to pay for embedded vc++ or is there a free version that lets me program for wm5?
oh and i downloaded the express c++ but when i want to instal the wm5 sdk it tells me it needs visual studio 2005
PSPad is awsome, and free.
Regards,
Jason
hey thanks for the reply but that's not for windows mobile 5 development
i really need something free for windows mobile 5 development
if anyone could help i would appreciate it
thanks
Ok little clarification:
a) You don't need WM5 SDK to develop apps that will run on WM5 and use its special features. You will just have to work a little harder and use LoadLibrary and GetProcAdress for functions not supported in WM2003. Also you can manually unpack the SDK installation and use the binaries and header files (this is VJ's advice I have yet to test it).
b) There is no version of eVC for WM5 because MS switched to Visual Studio. The express version does not support mobile development in any way. I always use eVC 4 this not only works fine for WM5 apps but also insures backward compatibility and saves me keeping two separate projects for one app.
I agree with levenum, as ever.
You don't NEED VS2005 if you're only developing in C++ (which you should be). I don't think VS2005 offers enough over EVC for me to spend a gazillion $$ on it as a hobby programmer. However, you can get VS2005 on trial for free from MS if you feel the need to try it out.
Also - EVC only requires a small number of mbs of space (great to stick on a USB). VS2005 is > 1gb from memory
V
thank you for your replies
i will do as you suggested
thanks
one last question:
does anyone know if there is an SDL sdk for wm5?
if not then any links to wm5 programming tutorials?
wajih.boukaram said:
one last question:
does anyone know if there is an SDL sdk for wm5?
if not then any links to wm5 programming tutorials?
Click to expand...
Click to collapse
here
Regards,
Jason
Hi,
There is an open source IDE for .net that supports (v2.2.1 only) the compact framework 2.0 : http://www.icsharpcode.net/OpenSource/SD/.
I'm using it for windows coding and it's a very good soft.
Regards,
Imer

vis studio 2005 wm2003 sdk build

I have been learning to use visual studio 2005 and I am getting stuck on the output. My target device is a pocket pc 2003 device but the exe only will run on a wm2005 device. I have not installed the wm2005 sdk, i am using the sdk that comes with visual studio for wm2003 devices.
I have tried replacing the $(CEVER) in the preprocessor definitions that translates to 0x0420 with lower values like 0x0300 but that generates so many errors that can't be the solution. Dose wm2003se require a different sdk from the one that ships with visual studio?
Can anyone offer a solution?
I found the cause.
I was using mfc as a shared library. The version of that dll on my mini is different (same name) from that on my dopod. When I statically link It all works. But thats no good because it triples the size of the app.
the real question is how do i get my wm2003 app to use the new version of mfc. I want to use mfc80u.dll instead of the mfcce300.dll, how?

program/compilers for xda softwares

Ei, Anybody now what programs do programmer used to make softwares for windows mobile or for xda phones? like for example nokia its java..
tnx..
get visual studio 2008 it let you program in c# or c++
== best way to make native apps for windows mobile
Rudegar said:
get visual studio 2008 it let you program in c# or c++
== best way to make native apps for windows mobile
Click to expand...
Click to collapse
Thnx bro. for the reply... Is there any other compiler/programs?
maybe you should look at mono not sure if they do compactframework too though
check it out
or embedded visual c++
or gcc compiler
all are free
or you could make java midlets like on symbian but they are a bit limited in the midlet managers on ppc though

Categories

Resources