{"id":9787,"date":"2025-05-25T20:05:13","date_gmt":"2025-05-25T11:05:13","guid":{"rendered":"https:\/\/www.auctionpro.co.kr\/?p=9787"},"modified":"2025-05-25T20:05:13","modified_gmt":"2025-05-25T11:05:13","slug":"c-winform-%ec%97%90%ec%84%9c-console-%eb%a1%9c-%eb%9d%84%ec%9a%b0%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=9787","title":{"rendered":"C# WinForm \uc5d0\uc11c Console \ub85c \ub744\uc6b0\uae30"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">\ucf58\uc194 \ucc3d \ub744\uc6b0\ub294 \ubc29\ubc95<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">\ubc29\ubc95 1: \ud504\ub85c\uc81d\ud2b8 \ucd9c\ub825 \uc720\ud615 \ubcc0\uacbd (\uac00\uc7a5 \uc77c\ubc18\uc801)<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Visual Studio\uc5d0\uc11c:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\ud504\ub85c\uc81d\ud2b8\ub97c \uc6b0\ud074\ub9ad \u2192 <strong>\uc18d\uc131(Properties)<\/strong>.<\/li>\n\n\n\n<li><strong>\uc560\ud50c\ub9ac\ucf00\uc774\uc158<\/strong> \ud0ed\uc5d0\uc11c <strong>\ucd9c\ub825 \ud615\uc2dd(Output type)<\/strong> \uc744 <code>Windows \uc560\ud50c\ub9ac\ucf00\uc774\uc158<\/code>\uc5d0\uc11c <code>\ucf58\uc194 \uc560\ud50c\ub9ac\ucf00\uc774\uc158(Console Application)<\/code>\uc73c\ub85c \ubcc0\uacbd.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\ub807\uac8c \ud558\uba74 WinForms UI\uc640 \ud568\uaed8 \ucf58\uc194 \ucc3d\ub3c4 \uac19\uc774 \uc5f4\ub9bd\ub2c8\ub2e4.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u2705 \uc7a5\uc810: <code>Console.WriteLine()<\/code>\uc774\ub098 <code>Console.ReadLine()<\/code>\uc744 \uadf8\ub300\ub85c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc74c<br>\u26a0\ufe0f \ub2e8\uc810: \ubc30\ud3ec \uc2dc \ucf58\uc194 \ucc3d\uc774 \ud568\uaed8 \ubcf4\uc774\ub294 \uac8c \uc2eb\uc744 \uacbd\uc6b0\uc5d4 \ubd80\uc801\uc808<\/p>\n<\/blockquote>\n\n\n\n<h4 class=\"wp-block-heading\">\ubc29\ubc95 2: \ucf58\uc194 \ucc3d\uc744 \ub7f0\ud0c0\uc784\uc5d0 \uc5f4\uae30 (Win32 API \uc0ac\uc6a9)<\/h4>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:c# decode:true \" >using System;\nusing System.Runtime.InteropServices;\n\nclass Program\n{\n    [DllImport(\"kernel32.dll\")]\n    private static extern bool AllocConsole();\n\n    [STAThread]\n    static void Main()\n    {\n        AllocConsole(); \/\/ \ucf58\uc194 \ucc3d\uc744 \uc218\ub3d9\uc73c\ub85c \ud560\ub2f9\n        Console.WriteLine(\"Hello from Console in WinForms App\");\n\n        Application.EnableVisualStyles();\n        Application.SetCompatibleTextRenderingDefault(false);\n        Application.Run(new Form1());\n    }\n}\n<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\ubc29\ubc95 3: <code>Debug.WriteLine()<\/code> \uc0ac\uc6a9 (\ub514\ubc84\uae45 \ubaa9\uc801)<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:c# decode:true \" >System.Diagnostics.Debug.WriteLine(\"\ub514\ubc84\uadf8 \ucd9c\ub825\");\n<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>\ucf58\uc194 \ucc3d \ub744\uc6b0\ub294 \ubc29\ubc95 \ubc29\ubc95 1: \ud504\ub85c\uc81d\ud2b8 \ucd9c\ub825 \uc720\ud615 \ubcc0\uacbd (\uac00\uc7a5 \uc77c\ubc18\uc801) Visual Studio\uc5d0\uc11c: \uc774\ub807\uac8c \ud558\uba74 WinForms UI\uc640 \ud568\uaed8 \ucf58\uc194 \ucc3d\ub3c4 \uac19\uc774 \uc5f4\ub9bd\ub2c8\ub2e4. \u2705 \uc7a5\uc810: <a class=\"mh-excerpt-more\" href=\"https:\/\/www.auctionpro.co.kr\/?p=9787\" title=\"C# WinForm \uc5d0\uc11c Console \ub85c \ub744\uc6b0\uae30\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[],"class_list":["post-9787","post","type-post","status-publish","format-standard","hentry","category-devc"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/9787","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9787"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/9787\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}