---
title: "[导入]最简单的Win32程序示例"
author: "wintys"
date: "2009-03-18T12:02:00Z"
tags: ["Blog", "Windows"]
slug: "win32"
draft: false
lastmod: "2009-03-18T12:02:00Z"
id: 426100
url: "https://wintys.iteye.com/blog/426100"
---

最简单的Win32程序示例:

#include &lt;windows.h&gt;  
int WINAPI WinMain (HINSTANCE hInstance,  
                 HINSTANCE hPrevInstance,  
                 PSTR szCmdLine,  
                 int iCmdShow)  
{  
  MessageBox(NULL, "Hello, Win32!", "问候", MB\_OK) ;    
   
  return 0 ;  
}

文章来源:[http://wintys.blog.51cto.com/425414/92287](http://wintys.blog.51cto.com/425414/92287)