---
title: "Visual Studio2005和VC++编码的不同"
author: "sfeve"
date: "2010-09-17T11:44:24Z"
tags: ["VC++"]
categories: ["编程语言"]
slug: "visual-studio2005-vc"
draft: false
lastmod: "2010-10-12T15:18:53Z"
id: 765636
url: "https://sfeve.iteye.com/blog/765636"
---

今天在vs2005里用MessageBox函数发现参数不正常了。。上网一查发现vs2005用的是unicode编码方式。以前用的vc++6.0用的是ansi字符集。

解决办法：右键点你的项目 -&gt; 属性 -&gt; 配置属性 -&gt; 常规 -&gt; 字符集改为“使用多字节字符集”, OK.