UpdateResource

UpdateResource ÇÔ¼ö¸¦ Ãß°¡, »èÁ¦ ¶Ç´Â ½ÇÇà ÆÄÀÏ¿¡ ¸®¼Ò½º¸¦ ´ëü.

(BOOL UpdateResource ó¸®  hUpdate, / / ¾÷µ¥ÀÌÆ® ÆÄÀÏ Ã³¸®LPCTSTRlpType, / / ¾÷µ¥ÀÌÆ® ¸®¼Ò½ºÀÇ ÁÖ¼Ò¸¦ ÀÔ·ÂLPCTSTRlpName, / / ¸®¼Ò½ºÀÇ ÁÖ¼Ò¸¦ ¾÷µ¥ÀÌÆ® À̸§´Ü¾îwLanguage, / / ÀÚ¿øÀÇ ¾ð¾î ½Äº°ÀÚLPVOIDlpData, / / ÁÖ¼Ò ÀÚ¿ø µ¥ÀÌÅÍDWORDcbData / / ¸®¼Ò½º µ¥ÀÌÅÍ ¹ÙÀÌÆ®¿¡¼­ÀÇ ±æÀÌ);
 

¸Å°³ º¯¼ö

hUpdate
¾÷µ¥ÀÌÆ® ÆÄÀÏ ÇÚµéÀ» ÁöÁ¤ÇÕ´Ï´Ù. ÀÌ ÇÚµéÀº BeginUpdateResource ÇÔ¼ö¿¡¼­ ¹Ýȯ.
lpType
¾÷µ¥ÀÌÆ® µÉ ¸®¼Ò½º Á¾·ù¸¦ ÁöÁ¤ ÇÏ´Â null·Î ³¡³ª´Â ¹®ÀÚ¿­ Æ÷ÀÎÅÍÀÔ´Ï´Ù. ÀÌ ¸Å°³ º¯¼ö´Â MAKEINTRESOURCE ¸ÅÅ©·Î¿¡ Àü´Þ µÈ integer °ªÀ» ¼öµµ ÀÖ½À´Ï´Ù. ¶Ç´Â ±×°ÍÀº ´ÙÀ½°ú °°Àº ¹Ì¸® Á¤ÀÇ µÈ ¸®¼Ò½º Çü½Ä Áß Çϳª°¡ µÉ ¼ö ÀÖ½À´Ï´Ù.:
°ª ÀǹÌ
RT_ACCELERATOR ¾×¼¿·¯·¹ÀÌÅÍ Å° Å×À̺í
RT_ANICURSOR ¾Ö´Ï¸ÞÀÌ¼ÇµÈ Ä¿¼­
RT_ANIICON ¾Ö´Ï¸ÞÀÌ¼ÇµÈ ¾ÆÀÌÄÜ
RT_BITMAP ºñÆ®¸Ê ¸®¼Ò½º
RT_CURSOR Çϵå¿þ¾î Á¾¼Ó Ä¿¼­ ¸®¼Ò½º
RT_DIALOG ´ëÈ­ »óÀÚ
RT_FONT ±Û²Ã ¸®¼Ò½º
RT_FONTDIR ±Û²Ã µð·ºÅ͸® ¸®¼Ò½º
RT_GROUP_CURSOR Çϵå¿þ¾î µ¶¸³ÀûÀÎ Ä¿¼­ ¸®¼Ò½º
RT_GROUP_ICON Çϵå¿þ¾î µ¶¸³ÀûÀÎ ¾ÆÀÌÄÜ ¸®¼Ò½º
RT_HTML HTML ¹®¼­
RT_ICON Çϵå¿þ¾î Á¾¼Ó ¾ÆÀÌÄÜ ¸®¼Ò½º
RT_MENU ¸Þ´º ¸®¼Ò½º
RT_MESSAGETABLE ¸Þ½ÃÁö Å×À̺í Ç׸ñ
RT_RCDATA ÀÀ¿ë ÇÁ·Î±×·¥ Á¤ÀÇ ¸®¼Ò½º (raw data)
RT_STRING ¹®ÀÚ¿­ Å×À̺í Ç׸ñ
RT_VERSION ¹öÀü ¸®¼Ò½º

lpName
¾÷µ¥ÀÌÆ® µÉ ¸®¼Ò½ºÀÇ À̸§À» ÁöÁ¤ ÇÏ´Â null·Î ³¡³ª´Â ¹®ÀÚ¿­ Æ÷ÀÎÅÍÀÔ´Ï´Ù. ÀÌ ¸Å°³ º¯¼ö´Â MAKEINTRESOURCE ¸ÅÅ©·Î¿¡ Àü´Þ µÈ integer °ªÀ» ¼öµµ ÀÖ½À´Ï´Ù.
wLanguage
¾÷µ¥ÀÌÆ® µÉ ¸®¼Ò½ºÀÇ ¾ð¾î ½Äº°ÀÚ¸¦ ÁöÁ¤ ÇÕ´Ï´Ù. ±âº» ¾ð¾î ½Äº°ÀÚ ¹× ¾ð¾î ½Äº°ÀÚ¸¦ ±¸¼º ÇÏ´Â º¸Á¶ ¾ð¾î ½Äº°ÀÚ ¸ñ·Ï¿¡ ´ë ÇÑ ÂüÁ¶¸¦ MAKELANGID ¸ÅÅ©·Î.
lpData
½ÇÇà ÆÄÀÏ¿¡ »ðÀÔÇÒ ¸®¼Ò½º µ¥ÀÌÅÍ Æ÷ÀÎÅÍÀÔ´Ï´Ù. ¸®¼Ò½º ¹Ì¸® Á¤ÀÇ µÈ Çü½Ä Áß Çϳª ÀÌ¸é µ¥ÀÌÅÍ°¡ À¯È¿ ÇÏ °í ¿Ã¹Ù¸£°Ô Á¤·Ä ÇØ¾ß ÇÕ´Ï´Ù. ÀÌ ½ÇÇà ÆÄÀÏÀ» ¾Æ´Ï¶ó LoadIcon¿¡¼­ Á¦°ø ÇÏ´Â µ¥ÀÌÅÍ¿¡ ÀúÀå µÈ ¿ø½Ã ÀÌÁø µ¥ÀÌÅÍ´Â LoadString¶Ç´Â ´Ù¸¥ ¸®¼Ò½º ƯÁ¤ ºÎÇÏ ±â´É. ¹®ÀÚ¿­ÀÌ ³ª ÅؽºÆ®¸¦ Æ÷ÇÔ ÇÏ´Â ¸ðµç µ¥ÀÌÅÍ´Â À¯´ÏÄÚµå Çü½Ä;¿¡ ÀÖ¾î¾ß ÇÕ´Ï´Ù. lpData ANSI µ¥ÀÌÅ͸¦ °¡¸®ÄÑ¾ß ÇÏÁö.

ÁöÁ¤µÈ µÈ ¸®¼Ò½º ½ÇÇà ÆÄÀÏ¿¡¼­ »èÁ¦ µË´Ï´Ù lpData ÀÌ NULL ÀÎ °æ¿ì.

cbData
LpData ¿¡¼­ ¸®¼Ò½º µ¥ÀÌÅÍÀÇ ¹ÙÀÌÆ®¿¡¼­ Å©±â¸¦ ÁöÁ¤ ÇÕ´Ï´Ù.

¹Ýȯ °ª

ÇÔ¼ö°¡ ¼º°ø ÇÏ¸é ¹Ýȯ °ªÀº 0ÀÌ ¾Æ´Ñ.

ÇÔ¼ö°¡ ½ÇÆÐ ÇÏ¸é ¹Ýȯ °ªÀº 0ÀÔ´Ï´Ù. È®Àå µÈ ¿À·ù Á¤º¸¸¦ ¾òÀ» ÇÏ·Á¸é GetLastError.

ÁÖÀÇ

ÀÀ¿ë ÇÁ·Î±×·¥ ¸®¼Ò½º µ¥ÀÌÅ͸¦ º¯°æ ÇÏ·Á¸é UpdateResource ¸¦ ¹Ýº¹ÀûÀ¸·Î »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. UpdateResource ¸¦ È£ÃâÇÒ ¶§¸¶´Ù Ãß°¡, »èÁ¦ ¹× ±³Ã¼ÀÇ ³»ºÎ ¸ñ·Ï¿¡ ±â¿© ÇÏÁö¸¸ ½ÇÇà ÆÄÀÏ¿¡ µ¥ÀÌÅ͸¦ ½ÇÁ¦·Î ÀÛ¼º ÇÏÁö ¾Ê½À´Ï´Ù. ÀÀ¿ë ÇÁ·Î±×·¥ ½ÇÇà ÆÄÀÏ¿¡ ´©Àû µÈ º¯°æ ³»¿ëÀ» ¾µ EndUpdateResource ÇÔ¼ö¸¦ »ç¿ë ÇØ¾ß ÇÕ´Ï´Ù.

QuickInfo

nbsp;?Windows &NT: ¹öÀü 3.1 ÀÌ»óÀÌ ÇÊ¿ä ÇÕ´Ï´Ù.
Windows:Áö¿ø µÇÁö ¾Ê½À´Ï´Ù.
Windows CE:Áö¿ø µÇÁö ¾Ê½À´Ï´Ù.
Çì´õ:Winbase.h¿¡ ¼±¾ð ÇÕ´Ï´Ù.
°¡Á®¿À±â ¶óÀ̺귯¸®:Kernel32.lib¸¦ »ç¿ë ÇÕ´Ï´Ù.
À¯´ÏÄÚµå:Windows NT¿¡¼­ À¯´ÏÄÚµå¿Í ANSI ¹öÀüÀ¸·Î ±¸Çö.

Âü°í Ç׸ñ

¸®¼Ò½º °³¿ä, ÀÚ¿ø ±â´É, BeginUpdateResource, EndUpdateResource, LoadIcon, LoadString, LockResource, MAKEINTRESOURCE, MAKELANGID, SizeofResource

 

Index