将 lptstr 转换为 char* [英] Convert lptstr to char*

查看:19
本文介绍了将 lptstr 转换为 char*的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何在 C++ 中将类型 LPTSTR 转换为 char * 吗?

Would anyone happen to know how to convert type LPTSTR to char * in C++?

推荐答案

取决于它是否显示为 Unicode.如果不是 Unicode,LPTSTR 是 char*,如果是,则为 w_char*.

Depends if it is Unicode or not it appears. LPTSTR is char* if not Unicode, or w_char* if so.

在这里讨论得更好(已接受的答案值得一读)

Discussed better here (accepted answer worth reading)

这篇关于将 lptstr 转换为 char*的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆