DoubleLi

qq: 517712484 wx: ldbgliet

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年4月3日

摘要: 1.C++里有区别true是bool型的;TRUE是int型的,VC里这个是ms自己定义的;C++规定不允许只通过返回类型不同区别两个函数================================================你写错了吧……原函数声明是virtual BOOL InitInstance( );你函数声明是bool,麻烦把它写成BOOLbool跟BOOL是不一样的2.而”DWORD"和“HWND"分别指什么?DWORD类型表示“双字”,也就是四字节大小的整型值,在windef.h中,DWORD的定义如下:typedef unsigned long DW 阅读全文
posted @ 2013-04-03 17:54 DoubleLi 阅读(828) 评论(0) 推荐(0)

摘要: 1、int WriteToLog(char* str){ FILE* log; log = fopen("D:\\testlog.txt", "a+"); if (log == NULL){ //OutputDebugString("Log file open failed."); return -1; } fprintf(log, "%s\n", str); fclose(log); return 0;}2、带时间的实现voidWriteLog(char*szLog){SYSTEMTIMEst;GetLocalT 阅读全文
posted @ 2013-04-03 17:23 DoubleLi 阅读(829) 评论(1) 推荐(1)