如果能过提供自己整理的库,给分100!Does a good farmer neglect a crop he has planted?
Does a good teacher overlook even the most humble student?
Does a good father allow a single child to starve?
Does a good programmer refuse to maintain his code?
-- Geoffrey James, "The Tao of Programming"
Does a good teacher overlook even the most humble student?
Does a good father allow a single child to starve?
Does a good programmer refuse to maintain his code?
-- Geoffrey James, "The Tao of Programming"
解决方案 »
- 求救信号,MFC如何实现备忘录提醒功能,
- IHTMLElement 接口 和 IHTMLElement2接口中 取元素尺寸函数的对比问题。
- MFC 打印预览
- Com 的问题
- 使用完sendinput之后,如何恢复键盘各按钮的状态?我用sendinput发出 alt-v组合键之后,结果所有的输入都成组合键了
- 求:关于CryptoAPI签名指导
- 动态链接库一问
- FindFirstChangeNotification(path,FALSE,FILE_NOTIFY_CHANGE_FILE_NAME)的问题
- 关于Winsock的一个问题?
- 怎么没人给分呢?
- 如何用HotKey做到,按一下让form在显示和隐藏之间切换.
- 各位!快来说说,哪些作者写的书比较好???
1 类型强制转换
long l;
int i = (int)l;
包括对中对转换符号的重载
char *p,str[]="GOOD";
CString cstr="GOOD";
p=(char *)cstr;
2 函数转换
atol,atoi
itoa,itoa
CString::Format()
BSTR b=_com_util::ConvertStringToBSTR("数据");
char *p=_com_util::ConvertBSTRToString(b);
3 类构造转换
CString(char *p);4 混合转换
这种转换包括上面转换的一种以上先强制转换,然后再构造转换用的多一点long l=222;
ing i=100;
_variant_t lVal(l);
lVal = (long)i;基本上可以确定为以上 4种,不知道那位还有补充!Does a good farmer neglect a crop he has planted?
Does a good teacher overlook even the most humble student?
Does a good father allow a single child to starve?
Does a good programmer refuse to maintain his code?
-- Geoffrey James, "The Tao of Programming"