Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

C# ʹÓÃPlaySoundÔÚÒƶ¯É豸Éϲ¥·ÅÉùÒô

ʹÓà PlaySound ÔÚÒƶ¯É豸Éϲ¥·ÅÉùÒôÎļþ¡£´Ë´úÂëʹÓà System.Runtime.InteropServices
µ÷Óà Compact Framework µÄ CoreDll.DLL µÄ PlaySound ·½·¨
¹ØÓÚ²¥·ÅʵÏÖ£º
        //²¥·Å±êÖ¾
        private enum Flags
        {
            SND_SYNC = 0x0000,
            SND_ASYNC = 0x0001,
            SND_NODEFAULT = 0x0002,
            SND_MEMORY = 0x0004,
            SND_LOOP = 0x0008,
            SND_NOSTOP = 0x0010,
            SND_NOWAIT = 0x00002000,
            SND_ALIAS = 0x00010000,
            SND_ALIAS_ID = 0x00110000,
            SND_FILENAME = 0x00020000,
            SND_RESOURCE = 0x00040004
        }
        [DllImport("CoreDll.DLL", EntryPoint = "PlaySound", SetLastError = true)]
        private extern static int MobilePlaySound(string szSound, IntPtr hMod, int flags);

        public void PlaySound(string fileName)
        {
            MobilePlaySound(fileName, IntPtr.Zero, (int)(Flags.SND_ASYNC | Flags.SND_FILENAME));
        }
¹ØÓÚֹͣʵÏÖ£º
PlaySound(null);
¹ØÓÚPlaySoundº¯Êý£º
Ò».PlaySoundº¯ÊýµÄÉùÃ÷Ϊ£º
BOOL PlaySound(LPCSTR pszSound,HMODULE hmod,DWORD fdwSound);
1.²ÎÊýpszSound:ÊÇÖ¸¶¨ÁËÒª²¥·ÅÉùÒôµÄ×Ö·û´®,¸Ã²ÎÊý¿ÉÒÔÊÇWAVEÎļþµÄÃû×Ö,»òÊÇWAVE×ÊÔ´µÄÃû×Ö,»òÊÇÄÚ´æÖÐÉùÒôÊý¾ÝµÄÖ¸Õë,»òÊÇÔÚϵͳע²á±íWIN.INIÖж¨ÒåµÄϵͳʼþÉùÒô.Èç¹û¸Ã²ÎÊýΪNULLÔòÍ£Ö¹ÕýÔÚ²¥·ÅµÄÉùÒô.
2.²ÎÊýhmod:ÊÇÓ¦ÓóÌÐòµÄʵÀý¾ä±ú,µ±²¥·ÅWAV×Ê


Ïà¹ØÎĵµ£º

[HTML±à¼­Æ÷]C#±àдµÄHTML±à¼­Æ÷£ºÔ­Àíƪ

×÷Õߣº¹â½ÅѾ˼¿¼ ʱ¼ä£º12/23/2009 1:51:00 PM
Ò»¿ªÊ¼¾Í¾õµÃHTML±à¼­Æ÷ÕâÍæÒâÓ¦¸ÃÊǺܸßÉîĪ²âµÄ¡£ËæËæ±ã±ã¾ÍÏëÕûÒ»¸öÓ¦¸Ã²»ÊÇÒ»¼þÈÝÒ×µÄÊÂÇé¡£ºóÀ´¶ÔWebBrowser¿Ø¼þÓÐÁËһЩÁ˽⣬²»¹ý¶¼ÊǺܷôdzµÄÁ˽⡣ֻ֪µÀÓÃÕâ¸ö¿Ø¼þ¾ÍÄܹ»ÔÚ×Ô¼ºµÄ³ÌÐòÖиãÒ»¸öWEBä¯ÀÀÆ÷Ö®ÀàµÄ¶«Î÷£¬´ÓÀ´Ã»ÓÐÏë¹ýHTML±à¼­Æ÷Ò²¿ÉÒÔʹÓÃÕâ¸ö¿Ø¼þÀ´ÊµÏ ......

.net(c#)¶ÁÈ¡flash(swf)ÎļþµÄ³ß´ç

ÓÃÁ˱ðÈ˵ĴúÂ룬ÍƼö+±¸Íü¡£
Ô­ÌûµØÖ·£º
.net(c#)¶ÁÈ¡flash(swf)ÎļþµÄ³ß´ç
http://www.cnblogs.com/nasdaqhe/archive/2008/07/02/1234357.html
ÓÃ.NET¶ÁÈ¡Flash¸ñʽÎļþÐÅÏ¢
http://www.cnblogs.com/gmm/archive/2007/07/17/310675.html
ÎÒʹÓÃÁ˵ÚÒ»¸öÌû×ÓÖеĴúÂ룬µÚÒ»¸öÌû×ӵĴúÂë²Î¿¼µÄÊǵڶþ¸öÌû×Ó£º£©
The ......

c# Ö§³ÖXMLÐòÁл¯µÄ·ºÐÍ Dictionary

/// <summary>
/// Ö§³ÖXMLÐòÁл¯µÄ·ºÐÍ Dictionary
/// </summary>
/// <typeparam name="TKey"></typeparam>
/// <typeparam name="TValue"></typeparam>
[XmlRoot("SerializableDictionary")]
public class SerializableDictionary<TKey, TValue& ......

C#ÓïÑԹ淶

1. ÃüÃû¹æ·¶
a)    Àà
¡¾¹æÔò1-1¡¿Ê¹ÓÃPascal¹æÔòÃüÃûÀàÃû£¬¼´Ê××ÖĸҪ´óд¡£
¡¾¹æÔò1-2¡¿Ê¹ÓÃÄܹ»·´Ó³À๦ÄܵÄÃû´Ê»òÃû´Ê¶ÌÓïÃüÃûÀà¡£
¡¾¹æÔò1-3¡¿²»ÒªÊ¹ÓÓI”¡¢“C”¡¢“_”µÈÌض¨º¬Òåǰ׺¡£
¡¾¹æÔò1-4¡¿×Ô¶¨ÒåÒì³£ÀàÓ¦ÒÔException½áβ¡£
¡¾¹æÔò1-5¡¿ÎļþÃûÒªÄÜ·´Ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ