StringCchPrintf
来源:互联网 发布:快速求斗牛的算法 编辑:程序博客网 时间:2024/05/16 07:45
转自:百度百科 http://baike.baidu.com/view/10100911.htm
目录
- 简介
- 声明
- 参数
- 注意
- 实例
- 相关函数
编辑本段简介
编辑本段声明
编辑本段参数
pszDest
cchDest
pszFormat
其他···
编辑本段注意
结果
编辑本段实例
编辑本段相关函数
- 扩展阅读:
- 1
Remarks
- 2
StringCchPrintf provides additional processing for proper buffer handling in your code. Poor buffer handling is implicated in many security issues that involve buffer overruns. StringCchPrintfalways null-terminates a non-zero-length destination buffer.
- 3
StringCchPrintf can be used in its generic form, or specifically as StringCchPrintfA (for ANSI strings) or StringCchPrintfW (for Unicode strings). The form to use is determined by your data.
- 4
char"string"StringCchPrintfATCHARTEXT("string")StringCchPrintfWCHARL"string"StringCchPrintfW
- 5
StringCchPrintf and its ANSI and Unicode variants are replacements for these functions:
- 6
sprintfswprintfwsprintfwnsprintf_stprintf_snprintf_snwprintf_sntprintf
- 7
Behavior is undefined if the strings pointed to by pszDest, pszFormat, or any argument strings overlap.
- 8
Neither pszFormat nor pszDest should be NULL. See StringCchPrintfEx if you require the handling of null string pointer values.
- 1
- 开放分类:
- 编程 , C++ , API
- StringCchPrintf
- [MFC][基本函数]StringCchPrintf()使用相关
- [MFC][函数使用]StringCchPrintf()(未解决)
- javascript ActiveXObject javascript取得机器名,用户名,读写注册表,启动应用程序
- cygwin完全安装步骤方法(组图)
- 使用application统计在线用户数
- FORM TEXT_ITEM内容左右靠齐
- 6_4三角形类
- StringCchPrintf
- iOS开发之工具篇-20个可以帮你简化移动app开发流程的工具
- Chapter 3: Screen Widgets
- ASP留言板代码
- Ubuntu下手动安装eclipse,不是用apt-get。
- SHELL下date命令的用法
- [交互式SVG组件]Multi-line text box
- #pragma section
- Jenkins的配置