2005年7月26日

有关数据类型转换(VC)

摘要: 明:本文纯粹是总结一下有关类型转换的贴子,本人并未对所有方法都做测试,仅仅是为了给大家一个参考。读者层次:初学int i = 100;long l = 2001;float f=300.2;double d=12345.119;char username[]="程佩君";char temp[200];char *buf;CString str;_variant_t v1;_bstr_t v2;一、其它数据类型转换为字符串短整型(int)itoa(i,temp,10);///将i转换为字符串放入temp中,最后一个数字表示十进制itoa(i,temp,2); ///按二进制方 阅读全文

posted @ 2005-07-26 12:58 goodvify 阅读(437) 评论(0) 推荐(0) 编辑

VC Afx全局函数  数据类型 字符串转化函数

摘要: Afx全局函数及MFC常见数据类型AfxBeginThread:开始一个新的线程AfxEndThread:结束一个旧的线程AfxFormatString1:类似printf一般地将字符串格式化AfxFormatString2:类似printf一般地将字符串格式化AfxMessageBox:类似Windows API 函数 MessageBoxAfxOuputDebugString:将字符串输往除错装置AfxGetApp:获得application object (CwinApp派生对象)的指针AfxGetMainWnd:获得程序主窗口的指针AfxGetInstance:获得程序的instanc 阅读全文

posted @ 2005-07-26 12:57 goodvify 阅读(228) 评论(0) 推荐(0) 编辑

导航