|
|
|
°í±Þ ½Ã½ºÅÛ ÇÁ·Î±×·¡¹Ö - ³ª¸¸ÀÇ error code ¸¸µé±â |
|
|
|
|
|
|
|
|
Å°¿öµå : |
|
|
¼Ò°³±Û |
°í±Þ ½Ã½ºÅÛ ÇÁ·Î±×·¡¹Ö - ³ª¸¸ÀÇ error code ¸¸µé±â |
¿ä¾à |
³ª¸¸ÀÇ error code ¸¸µé±â
1. Error Code 2. DLL Á¦ÀÛ 3. 01 ErrorShow ÇÁ·ÎÁ§Æ®¿¡ DLL ³¢¿ö ³Ö±â 4. ½ÇÇà ȸé
1. Error Code
À§ÀÇ ±×¸²Àº winerror.hÀÇ ³»¿ëÀ» ÀϺΠ¹ßÃëÇÑ °ÍÀÔ´Ï´Ù. 29¹ø° ºñÆ®´Â ¸¶ÀÌÅ©·Î¼ÒÇÁÆ®¿¡¼ Á¤ÀÇÇÑ ÄÚµå´Â 0, »ç¿ëÀÚ Á¤ÀÇ ÄÚµå´Â 1À» ³ªÅ¸³À´Ï´Ù. µû¶ó¼ »ç¿ëÀÚ Á¤ÀÇ ¿¡·¯ Äڵ尡 µÉ ¼ö ÀÖ´Â °¡Àå ÀÛÀº ¼ö´Â 536870912ÀÔ´Ï´Ù.
2. DLL Á¦ÀÛ Step 1 - Creating the core project MyErrorÀ̶ó´Â À̸§ÀÇ Win32 Dynamic-Link Library¸¦ »ý¼ºÇÕ´Ï´Ù.
Step 2 - Adding a resource script (.rc file) to the project MyError.rc¶ó´Â resource script fileÀ» »ý¼ºÇÕ´Ï´Ù.
Step 3 - Step 3: Adding a message definition file (.mc file) to the project Messages.mc¶ó´Â À̸§ÀÇ Text FileÀ» »ý¼ºÇÕ´Ï´Ù. ÀÌ°÷¿¡ ³ª¸¸ÀÇ ¿¡·¯ Äڵ带 ±â¼úÇÒ °ÍÀÔ´Ï´Ù.
Step 4 - Definition of a custom build rule for the message resource file Message.mc file¿¡ ¾à°£ÀÇ ¼³Á¤À» ÇÕ´Ï´Ù.
Step 5 - Insert message definitions into the message file Message.mc file¿¡ ³ª¸¸ÀÇ ¿¡·¯Äڵ带 Á¤ÀÇÇÕ´Ï´Ù. ÀúÀÇ °æ¿ì´Â ±³¼ö´Ô²²¼ ¿¹¹®À¸·Î ÁֽŠ¿¡·¯ ¸Þ½ÃÁö¿¡ ÄÚµå ³Ñ¹ö¸¸ ´Þ¸®ÇÏ¿´½À´Ï´Ù.
;#ifndef __MESSAGES_H__ ;#define __MESSAGES_H__ ;
LanguageNames = ( English = 0x0409:Messages_ENU
Korean = 0x0412:Messages_KOR )
|
|
|
|
|
À§ Á¤º¸¹× °Ô½Ã¹° ³»¿ëÀÇ Áø½Ç¼º¿¡ ´ëÇÏ¿© º¸ÁõÇÏÁö ¾Æ´ÏÇϸç, ÇØ´ç Á¤º¸ ¹× °Ô½Ã¹° ÀúÀ۱ǰú ±âŸ ¹ýÀû Ã¥ÀÓÀº ÀÚ·á µî·ÏÀÚ¿¡°Ô ÀÖ½À´Ï´Ù. À§ Á¤º¸¹× °Ô½Ã¹° ³»¿ëÀÇ ºÒ¹ýÀû ÀÌ¿ë, ¹«´ÜÀüÀç¹× ¹èÆ÷´Â ±ÝÁöµÇ¾î ÀÖ½À´Ï´Ù. ÀúÀÛ±ÇħÇØ, ¸í¿¹ÈÑ¼Õ µî ºÐÀï¿ä¼Ò ¹ß°ß½Ã ÇÏ´ÜÀÇ ÀúÀÛ±Ç Ä§ÇØ½Å°í¸¦ ÀÌ¿ëÇØ Áֽñ⠹ٶø´Ï´Ù. |
|