﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-X</title><link>http://www.cppblog.com/shuttle/</link><description>Sth. Unkown</description><language>zh-cn</language><lastBuildDate>Tue, 09 Jun 2026 20:03:20 GMT</lastBuildDate><pubDate>Tue, 09 Jun 2026 20:03:20 GMT</pubDate><ttl>60</ttl><item><title>零碎的知识点</title><link>http://www.cppblog.com/shuttle/archive/2010/11/02/132148.html</link><dc:creator>Shuttle</dc:creator><author>Shuttle</author><pubDate>Tue, 02 Nov 2010 07:44:00 GMT</pubDate><guid>http://www.cppblog.com/shuttle/archive/2010/11/02/132148.html</guid><wfw:comment>http://www.cppblog.com/shuttle/comments/132148.html</wfw:comment><comments>http://www.cppblog.com/shuttle/archive/2010/11/02/132148.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/shuttle/comments/commentRss/132148.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/shuttle/services/trackbacks/132148.html</trackback:ping><description><![CDATA[<p align=justify>1. LPSTR、LPCSTR、LPWSTR、LPCWSTR的区别&nbsp;<br>&nbsp;&nbsp;&nbsp; LPSTR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32位的指向字符串的指针<br>&nbsp;&nbsp;&nbsp; LPCSTR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32位的指向字符串常量的指针<br>&nbsp;&nbsp;&nbsp; LPWSTR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32位的指向unicode字符串的指针<br>&nbsp;&nbsp;&nbsp; LPCWSTR&nbsp;&nbsp; 32位的指向unicode字符串常量的指针<br>&nbsp;&nbsp;&nbsp; L代表long，P代表指针，C代表constant，W代表wide，STR代表string。<br><br>2.&nbsp;char * 转LPCWSTR的一个方法<br>&nbsp;&nbsp;&nbsp; 在字符串前面加上L，即L"...string..."。<br>&nbsp;&nbsp;&nbsp; L的作用：将ANSI字符串转换成Unicode的字符串，即每个字符占用两个字节。</p>
<img src ="http://www.cppblog.com/shuttle/aggbug/132148.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/shuttle/" target="_blank">Shuttle</a> 2010-11-02 15:44 <a href="http://www.cppblog.com/shuttle/archive/2010/11/02/132148.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>