原文来自MSDN Library for Visual Studio 2008 SP1,翻译部分仅为个人观点,想要看更多信息请看MSDN,如有版权问题请联系QQ 643166601,邮件643166601@qq.com
DWordToChar Function
--------------------------------------------------------------------------------
Converts a value of type DWORD to a value of type CHAR.
转换一个DWORD类型的值到一个CHAR类型的值。
Syntax
HRESULT DWordToChar(
DWORD dwOperand,
CHAR *pch
);
Parameters
dwOperand
[in] The value to be converted.
被转换的值。
pch
[out] A pointer to the converted value.
一个指针指向转换后的值。
In the case where the conversion causes a truncation of the original value, the function returns INTSAFE_E_ARITHMETIC_OVERFLOW and this parameter is not valid.
在转换引起原始值截断的情况下这个函数返回INTSAFE_E_ARITHMETIC_OVERFLOW并且这个参数是无效的。
Return Value
Returns S_OK if successful, or an error value otherwise.
如果成功返回S_OK,否则返回一个错误值。
Remarks
This is one of a set of inline functions designed to provide type conversions and perform validity checks with minimal impact on performance.
这个是设计的一组内联函数中的一个目的是提供类型转换和在性能上使用最小的影响执行有效性检查。
Function Information
Header intsafe.h
Import library None
DWORD转CHAR函数解析

765

被折叠的 条评论
为什么被折叠?



