IRiS nX
114 ARTICLES / 235 REPLIES [1:2]
=ADMIN=


#118. ½¦¿ë
µð¹ö±ë. 2005/06/07 (Tue)

¿Â¶õ°× Ãâ½ÃÇÏ°í Á© ¸¹ÀÌ ºÎºÐÀÌ
µð¹ö±ë¿¡ ´ëÇؼ­ ¿´´Âµ¥...
³»°¡ ¸ð¸£´Â ÀÌ·± ±â´Éµµ ÀÖ¾ú±¸³ª
ÇÏ´ÂÁ¡ÀÌ ¸¹¾Ò¾ú¾î¿è..
¾ÆÁ÷ ¹è¿ï°Ç ³ÑÈå³ÑÈå ¸¹´Ù ¶ó´Â
»ý°¢µµ µé±¸...

À¥¼­ÇÎ ÇÏ´ÂÁß¿¡ ±¦ÂúÀº°÷ÀÌ
À־ ¸µÅ©Çϳª.

http://www.dasomnetwork.com/~leedw/mywiki/moin.cgi/VisualC_2b_2b_c6_c1_c1_f6_b5_b5?action=fullsearch&value=VisualC%2B%2B%C6%C1%C1%F6%B5%B5&literal=1&case=1

ÀÌ°÷À̶û...
ÀÇ¿Ü·Î ±¦ÂúÀº°É ¹è¿ï¼ö ÀÖ¾ú´ø
»çÀÌÆ® ÇÑ°÷..

http://cocoajk.ivyro.net/

¿©±â °­Á °Ô½ÃÆÇÀÌ Á» Èï¹Ì·Ó´õ±º¿ä.

±×·³...





#118-1. ¾È¿µ±â 2005/06/10 (Fri)

»ç½Ç ±¸Çöº¸´Ù Áß¿äÇÑ °ÍÀÌ µð¹ö±ëÀÌÁÒ. ±×¸®°í ÃÖÁ¾ÀûÀÎ S/WÀÇ ÁúÀ» Æò°¡ÇÏ´Â ±âÁßÀ̱⵵ ÇÏ°í¿ä. À§ÀÇ ¸µÅ© ´öºÐ¿¡ ¸ô¶ú´ø °Íµµ ¸¹ÀÌ ¾Ë°Ô µÇ¾ú½À´Ï´Ù. ±×·¡¼­ Á¦°¡ ¾²´Â µð¹ö±ë ÆÁ Áß¿¡ Çϳª¸¦ ¸»ÇÏÀÚ¸é...... (¾Æ·¡¿¡ °è¼Ó...)



º¸Åë multi-platform¿¡¼­ ÀÛ¾÷ÇÏ´Ù º¸¸é printf()¿Í °ü·ÃµÈ ¹®Á¦¸¦ ¸¸³³´Ï´Ù. ƯÈ÷ linux³ª ±âŸ embedded OS¿¡¼­´Â printf()°¡ ÄַܼΠÂïÈ÷´Âµ¥ ¹ÝÇØ, windows´Â ±×·¸Áö ¾Ê½À´Ï´Ù. ±×·¸´Ù°í #ifdef¸¦ ³ÖÀÚ´Ï ¼Ò½º°¡ ÁöÀúºÐÇØÁö°í.. ±×·¡¼­ ¾Æ·¡¿Í °°Àº Äڵ带 ¸¸µé¾î ¾²°í ÀÖ½À´Ï´Ù.

Setting¿¡¼­ printf=__printf ·Î ÇØÁÖ¸é ¸ðµç printf´Â VC+ÀÇ µð¹ö±ë â¿¡ ÂïÈü´Ï´Ù.

------------------------------------
#include <windows.h>
#include <stdarg.h>
#include <stdio.h>

int __printf(const char *format, ...)
{
char outMsg[1024];
va_list marker;
int ret;

va_start(marker, format);
ret = vsprintf(outMsg, format, marker);
va_end(marker);

OutputDebugString(outMsg);

return ret;
}
------------------------------------


NAME / EMAIL
URL
SUBJECT
MESSAGE
ATTACH
ATTACH STYLE COOKIE  
[PREV] [NEXT] return


IRiS nX by NvyU =starry scape=