views:

68

answers:

1

I started Windows Moible CE Dev. and now i need some stuff of the coredll.lib but where can i find this lib?

edit: okay found it in C:\Program Files (x86)\Windows Mobile 5.0 SDK R2\PocketPC\Lib\ARMV4I

but how do i add it to my visual studio project?

edit:

try a change. What i wanted to do is playing a sound by pressing a button. How could i do this in windows mobile? (my dev leng is c#)

+2  A: 

Try taking a look at this (Note, this only works for WM6 and above, for below you should look at the playsound api)

Also you don't include the lib file for coredll in managed code, you use platform invoke. PlaySndSync is in aygshell.dll, and here is the signature:

[DllImport("aygshell.dll", SetLastError = true)]
static extern IntPtr SndPlaySync(string Path, uint Flags);

Then you can call SndPlaySync and give it a path to the sound file and the right flags and away you go.

Matt