»ùÓÚMFC¶àýÌå²¥·ÅÆ÷ ÏÂÔر¾ÎÄ

´óÁ¬Àí¹¤´óѧÈí¼þѧԺ±¾¿ÆÉú¿Î³ÌÉè¼Æ±¨¸æ

¡¶C/C£«£«¿Î³ÌÉè¼Æ¡·ÏîÄ¿±¨¸æ

Ŀ ¼

1 ÏîÄ¿¼ò½é .............................................................................................................................. 1

1.1 ÏîÄ¿Ãû³Æ ................................................................................................................... 1 1.2 ¹¦ÄܸÅÊö ................................................................................................................... 1 1.3 ¿ª·¢ÈËÔ±¼°Ö°Ôð........................................................................................................1

2 ÐèÇó·ÖÎö...............................................................................................................................1

2.1 ¹¦ÄÜÐèÇó....................................................................................................................1 2.2 ÐÔÄÜÐèÇó....................................................................................................................2

3 ϵͳÉè¼Æ...............................................................................................................................3

3.1 ´úÂëÉè¼Æ....................................................................................................................3 3.2 Á÷³Ìͼ......................................................................................................................13

4 ϵͳʵÏÖ¼°²âÊÔ.................................................................................................................17

5 ÏîÄ¿×ܽá.............................................................................................................................20

5.1 ×ÜÌå×ܽá..................................................................................................................20 5.2 ¸öÈË×ܽá..................................................................................................................21

´óÁ¬Àí¹¤´óѧÈí¼þѧԺ±¾¿ÆÉú¿Î³ÌÉè¼Æ±¨¸æ

1 ÏîÄ¿¼ò½é

1.1 ÏîÄ¿Ãû³Æ ¶àýÌå²¥·ÅÆ÷ 1.2 ¹¦ÄܸÅÊö

´Ë¿îýÌå²¥·ÅÆ÷ÏîÄ¿¾ßÓÐÒÔϹ¦ÄÜ£º

£¨1£©±¾µØÉ趨Ŀ¼Öаüº¬ÒôƵÎļþµÄä¯ÀÀºÍ²¥·Å£¨Ö§³Ömp3¸ñʽ£©¡£ £¨2£©±¾µØÉ趨Ŀ¼Öаüº¬Í¼Æ¬ÎļþµÄä¯ÀÀ£¨Ö§³Öbmp¸ñʽ£©¡£ £¨3£©±¾µØÉ趨Ŀ¼Öаüº¬ÊÓƵÎļþµÄä¯ÀÀºÍ²¥·Å(Ö§³Ömp4¸ñʽ)¡£

£¨4£©×î½ü²¥·ÅÁÐ±í¹¦ÄÜ£¬±£´æ×î½ü²¥·ÅµÄ10¸öÎļþ£¬±£´æ×î½ü×·¼ÓµÄ10¸öÎļþ¡£ÊÓƵ£¬ÒôƵ£¬Í¼Æ¬ÊÇ·Ö¿ªµÄ£¬¶¼ÓÐ×î½ü²¥·ÅÁбíºÍ×î½ü×·¼ÓÁÐ±í¡£

1.3 ¿ª·¢ÈËÔ±¼°Ö°Ôð

¸ºÔðÊÓƵģ¿é£¬ÒÔ¼°×îºóµÄÄ£¿éÕûºÏ£¬±¨¸æµÄ±àд ¸ºÔðÒôƵģ¿é£¬±¨¸æµÄ±àд ¸ºÔðͼƬģ¿é£¬±¨¸æµÄ±àд

2 ÐèÇó·ÖÎö

2.1. ¹¦ÄÜÐèÇó

±¾Éè¼Æ½«ÒªÊµÏÖµÄÊÇÒ»¸öµ¥»ú¶àýÌå²¥·ÅÆ÷£¬¿ÉÒÔ¶ÔÒôƵ¡¢ÊÓƵ¡¢Í¼Æ¬½øÐв鿴¡£´ÓÆäÄ¿±ê¹¦Äܼ°Ìصã·ÖÎö£¬½«±¾Èí¼þ¹¦ÄÜ»®·ÖÈçÏ£º

£¨1£©ÊÓƵ²¥·ÅÆ÷£º ¿ÉÒÔ´ò¿ªMP4¸ñʽµÄÊÓƵÎļþ¡£

ÔÚ±¾µØÎļþ¼ÐÖн«MP4¸ñʽµÄÊÓƵÎļþÌí¼ÓÖÁ²¥·ÅÁÐ±í£¬µã»÷²¥·Å£¬»òË«»÷ÁбíÀïµÄËùÑ¡ÏîÄ¿£¬¾Í¿ÉÌøתÖÁÊÓƵ²¥·Å´°¿Ú¡£

ÔÚ²¥·Å´°¿ÚÀ²é¿´ÊÓƵʱ£¬ÓС°²¥·Å¡±£¬¡°ÔÝÍ£¡±£¬¡°Í£Ö¹¡±¹¦ÄÜ¡£

²¥·ÅÖУ¬»¹ÓС°Ç°½ø¡±£¬¡°ºóÍË¡±¹¦ÄÜ£¬¼´¿ì½ø¿ìÍ˹¦ÄÜ£¬ÒÔ4ÃëΪһ¸öµ¥Î»£¬Õâ¸öµ¥Î»Ò²¿ÉÒÔÔÚ´úÂëÖнøÐÐÐ޸ġ£

¨C1¨C

´óÁ¬Àí¹¤´óѧÈí¼þѧԺ±¾¿ÆÉú¿Î³ÌÉè¼Æ±¨¸æ

ÔÚ¹Û¿´ÊÓƵʱ£¬»¹ÓС°ÉÏÒ»Çú£¬ÏÂÒ»Çú¡±¹¦ÄÜ£¬¼´²é¿´Ö®Ç°Ìí¼ÓÔÚ²¥·ÅÁбíÀïµÄÊÓƵÏͬʱ£¬Ò²¿ÉÒÔÑ¡Ôñ²¥·Åģʽ¡°Ñ­»·£¬Ë³Ðò£¬Ëæ»ú¡±£¬¸Ã¹¦ÄÜÒ²ÊÇ»ùÓÚ²¥·ÅÁбíʵÏֵġ£

ÔÚÓұ߹¦ÄܼüÀ»¹ÓÐÒôÁ¿µ÷½Ú£¬¾²Òô¹¦ÄÜ¡£³ý´ËÒÔÍâ £¬»¹¿ÉÒÔ½øÐÐÈ«ÆÁä¯ÀÀ£¬°´¡°ESC¡±Í˳öÈ«ÆÁ¡£

ÔÚÖ÷Ò³Ã棬»¹ÓÐÁ½¸öÊý¾Ý¿ò¡°×î½ü×·¼ÓÏîÄ¿¡±ºÍ¡°×î½ü²¥·ÅÏîÄ¿¡±£¬¿ÉÒÔÖ±¹ÛµØ¿´µ½×î½ü²¥·ÅÏîÄ¿£¬ÇÒ¿ÉÒÔÊÖ¶¯Çå¿ÕËùÓÐÏîÄ¿¡£ÕâÁ½¸öÁбíÖ»°´ÕÕʱ¼ä£¬±£´æ×î½üµÄÏîÄ¿£¬ÇÒ×î¶à±£´æ10¸ö¡£

£¨2£©ÒôƵ²¥·ÅÆ÷

¿ÉÒÔ´ò¿ªMP3¸ñʽµÄÒôƵ¡£

ÔÚ±¾µØÎļþ¼ÐÖн«MP3¸ñʽµÄÊÓƵÎļþÌí¼ÓÖÁ²¥·ÅÁÐ±í£¬µã»÷²¥·Å£¬»òË«»÷ÁбíÀïµÄËùÑ¡ÏîÄ¿£¬¾Í¿ÉÌøתÖÁÒôƵ²¥·Å´°¿Ú¡£²¢ÇÒ£¬ÔÚÖ÷´°¿Ú£¬»¹ÓÐÁ½¸öÊý¾Ý¿ò¡°×î½ü×·¼ÓÏîÄ¿¡±ºÍ¡°×î½ü²¥·ÅÏîÄ¿¡±£¬¿ÉÒÔÖ±¹ÛµØ¿´µ½×î½ü²¥·ÅÏîÄ¿£¬ÇÒ¿ÉÒÔÊÖ¶¯Çå¿ÕËùÓÐÏîÄ¿¡£ÕâÁ½¸öÁбíÖ»°´ÕÕʱ¼ä£¬±£´æ×î½üµÄÏîÄ¿£¬ÇÒ×î¶à±£´æ10¸ö¡£

£¨´Ë´¦Îª¸Ã¶àýÌ幫¹²´°¿Ú£¬¹¦ÄÜÏàͬ£¬ÏÂÃæµÄͼƬä¯ÀÀÆ÷Ò²ÊÇÒ»ÑùµÄ¡££© ÔÚ²¥·Å´°¿ÚÀÌýÈ¡ÒôƵʱ£¬ÓС°²¥·Å¡±£¬¡°ÔÝÍ£¡±£¬¡°Í£Ö¹¡±¹¦ÄÜ¡£

ͬÑùÒ²»áÓС°Ç°½ø£¬ºóÍË¡±¹¦ÄÜ£¬¡°ÉÏÒ»Çú£¬ÏÂÒ»Çú¡±¹¦ÄÜ£¬²¥·ÅģʽÖеġ°Ñ­»·£¬Ë³Ðò£¬Ëæ»ú¡±£¬ÕâЩ¹¦ÄÜÓëÉÏÃæËùÊöµÄÊÓƵ²¥·ÅÆ÷Ïàͬ¡£

£¨3£©Í¼Æ¬ä¯ÀÀÆ÷

¿ÉÒÔ´ò¿ªBMP¸ñʽµÄͼƬ¡£

Ö÷´°¿ÚͬÊÓƵ¡¢ÒôƵ²¥·ÅÆ÷Ò»Ñù£¬Ôڴ˲»¶à׸Êö¡£

ÔÚä¯ÀÀͼƬ´°¿ÚÖУ¬»áÓС°ÉÏÒ»ÕÅ£¬ÏÂÒ»ÕÅ¡±¹¦Äܼü£¬¿ÉÒÔÔÚ¡°²¥·ÅÁÐ±í£¬×î½ü²¥·ÅÏîÄ¿£¬×î½ü×·¼ÓÏîÄ¿¡±ÈκÎÒ»¸öÁбíÖÐÑ­»·£¬¿ÉÒÔ×ÔÓÉÑ¡Ôñ¡£µ±Í¼Æ¬ä¯ÀÀµ½ËùÑ¡ÁбíµÄ×îºóÒ»ÕÅʱ£¬»á×Ô¶¯Ñ­»·ÖÁÁбíµÚÒ»ÕÅ¡£

£¨4£©ÔÚÖ÷´°¿ÚµÄÖУ¬ÔÚÁбíÖÐÒÑÌí¼ÓÎļþºó£¬ÓÐÁ½ÖÖ·½Ê½¿ÉÒÔ´ò¿ªÎļþ¡£Ò»ÊÇÑ¡ÖÐÏëÒª´ò¿ªµÄÎļþ£¬µã»÷¡°²¥·ÅÎļþ¡±°´Å¥£¬¶þÊÇÖ±½ÓË«»÷ÁбíÖеÄÎļþ£¬±ã¿É½øÈëµ½ÏàÓ¦×Ó´°¿Ú½øÐв鿴¡£

£¨5£©µ±µ¥¶ÀÄóöexeÎļþÔËÐÐʱ£¬»á×Ô¶¯ÔÚexeËùÔÚÎļþÀï´´½¨9¸öÎı¾Îĵµ£¬·Ö±ð´æ·ÅÈý¸öÄ£¿é£¨ÊÓƵ£¬ÒôƵ£¬Í¼Æ¬£©µÄÈý¸öÁÐ±í£¨²¥·ÅÁÐ±í£¬×î½ü²¥·ÅÏîÄ¿£¬×î½ü×·¼ÓÏîÄ¿£©ÐÅÏ¢¡£

¨C2¨C

´óÁ¬Àí¹¤´óѧÈí¼þѧԺ±¾¿ÆÉú¿Î³ÌÉè¼Æ±¨¸æ

2.2. ÐÔÄÜÐèÇó £¨1£©Ó²¼þƽ̨ҪÇó

ÓÉÓÚ±¾Èí¼þΪµ¥»úÈí¼þ£¬²»Ðè½øÐдóÁ¿µÄÊý¾Ý¶ÁдºÍÊý¾Ý½»»»£¬¹Ê¶ÔϵͳӲ¼þÅäÖõÄÒªÇó²¢²»¸ß£¬Ö»ÒªÄܹ»Æ½ÎÈÔËÐÐWindows²Ù×÷ϵͳµÄÓ²¼þƽ̨£¬¶¼Äܹ»Ê¹Óñ¾Èí¼þ¡£

£¨2£©Èí¼þ¿ª·¢»·¾³

1. OS£ºMicrosoft Windows XP SP2

2. Complier£ºVisual C++ 6.0 , Visual Studio 2005 Team System»ò¸ü¸ß°æ±¾ 3. MSDN Library

3 ϵͳÉè¼Æ

3.1.´úÂëÉè¼Æ £¨1£©ÒôƵ¡¢ÊÓƵģ¿é

1.´´½¨²¥·ÅÆ÷¶Ô»°¿ò

ÓÒ»÷Dialog,µã»÷²åÈ룬ÔÚµ¯³öµÄ¶Ô»°¿òÖеã»÷Dialog,ÔÙµã»÷н¨¡£

Ë«»÷н¨µÄµÃ¶Ô»°¿òµÄID£¬µ¯³öн¨µÄ¶Ô»°¿ò£¬É¾³ýÀïÃæËùÓеĿؼþ¡£

ÓÒ»÷£¬½¨Á¢ÀàÏòµ¼£¬´Ëʱµ¯³öAdding a class¶Ô»°¿ò£¬µã»÷ok£¬ÊäÈënameΪplayer£¬ µã»÷È·¶¨ºóÍ˳ö¡£

¨C3¨C