Roger Luo

超越梦想一起飞
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

02 2013 档案

摘要:Switching Windows Project and Console Project If you build up a win32 console project and want to convert to windwos application. You should change the subsystem property on link/subsystem from /co... 阅读全文

posted @ 2013-02-28 15:34 Roger Luo 阅读(613) 评论(0) 推荐(0)

摘要:Structure Introduction typedef struct hostent { char FAR *h_name; char FAR FAR **h_aliases; short h_addrtype; short h_length; char FAR FAR **h_addr_list;} HOSTENT, *P... 阅读全文

posted @ 2013-02-20 09:57 Roger Luo 阅读(329) 评论(0) 推荐(0)

摘要:void cast of argc and argv stop the compiler from complaining about unused variables int main(int argc, char **argv){ (void)argc; /* we don't use any arguments in this example */ (void)a... 阅读全文

posted @ 2013-02-08 03:24 Roger Luo 阅读(284) 评论(0) 推荐(0)

摘要:typedef struct _OVERLAPPED { ULONG_PTR Internal; ULONG_PTR InternalHigh; union { struct { DWORD Offset; DWORD OffsetHigh; }; PVOID Pointer; }; HANDLE hEvent;} OVERLAP... 阅读全文

posted @ 2013-02-08 01:50 Roger Luo 阅读(158) 评论(0) 推荐(0)

摘要:Exception Handling Stack around the variable was corrupted 内存越界将会导致这个异常出现,例如如下代码: void Reset(void * pv){ if (pv) { double * pd = reinterpret_cast<double *>(pv); *pd = 0.0; ... 阅读全文

posted @ 2013-02-07 14:19 Roger Luo 阅读(208) 评论(0) 推荐(0)

摘要:Background UTC: Coordinated Universal Time. GMT: Greenwich Mean Time. FILETIME: LOCALTIME: SYSTEMTIME: STRUCTURE/DEFINITION For windows SYSTEMTIME structure. The time is either in coordinated ... 阅读全文

posted @ 2013-02-05 14:08 Roger Luo 阅读(504) 评论(0) 推荐(0)