Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1441804
  • 博文数量: 254
  • 博客积分: 8696
  • 博客等级: 中将
  • 技术积分: 2961
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-03 16:46
文章分类

全部博文(254)

文章存档

2015年(4)

2014年(18)

2013年(16)

2012年(8)

2011年(25)

2010年(2)

2009年(74)

2008年(107)

发布时间:2015-12-28 19:20:35

环境:windows 10 64位;在MFC中调用PathIsDirectory时,返回false,GetLastError() 为2,无法找到目标,但"C:\\Windows\\System32\\oobe\\info"确实存在的。原因:64位的windows对system32做了重定向。以下是网络资料(http://www.jb51.net/os/windows/339151.html):====================================参考资料=.........【阅读全文】

阅读(3985) | 评论(0) | 转发(0)

发布时间:2015-10-14 19:10:21

<span style="color:#a52a2a;">相关函数:fchmod, stat, open, chown<br /><br />头文件:#include &lt;sys/types.h&gt; &nbsp;&nbsp;#include &lt;sys/stat.h&gt;<br /><br />定义函数:int chmod(const char * path, mode_t mode);<br /><br /><span style="color:#ff0000;">函数说明:chmod()会依参数mode 权限来.........【阅读全文】

阅读(8065) | 评论(0) | 转发(0)

发布时间:2014-04-18 18:37:26

调用mysql_real_query失败,并报:Commands out of sync; you can't run this command now。通常情况MySQL出于安全考虑不允许一次执行多条语句(但也不报错,很让人郁闷)。MySQL是支持在单个查询字符串中指定多语句执行的,使用方法是给链接指定参数:view plaincopy to clipboardprint?//链.........【阅读全文】

阅读(4655) | 评论(0) | 转发(0)

发布时间:2014-04-15 18:03:53

为了适应现在越来越流行的64位系统,经常需要将代码分别编译为32位版和64位版。其次,除了需要生成debug版用于开发测试外,还需要生成release版用于发布。本文介绍了如何利用makefile条件编译来生成这些版本,而且不仅兼容Linux下的GCC,还支持MinGW、TDM-GCC等Windows下的GCC编译器。 一、C程序代码  为了测.........【阅读全文】

阅读(1158) | 评论(0) | 转发(0)

发布时间:2014-03-27 18:02:58

The type of pointer-to-member-function is different from pointer-to-function.The type of a function is different depending on whether it is an ordinary function or a non-static member function of some class:int f(int x);the type is "int (*)(int)" // since it is an ordinary functionAndint Mat:.........【阅读全文】

阅读(1449) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册