摘要: 1、DWORD dwFileSizeHigh; // 得到文件大小的高位 __int64 qwFileSize = GetFileSize(m_hSrcBigFile, &dwFileSizeHigh); qwFileSize |= (((__int64)dwFileSizeHigh)<<32);//高位左移32位,或上低位,组成整个文件的大小2、ULARGE_INTEGER tInt1;tInt1.LowPart = GetFileSize(tHandle, &tInt1.HighPart);__int64 tFileSize1 = tInt1.QuadPart; 阅读全文
posted @ 2013-07-21 19:38 酷熊 阅读(624) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //初始化影像、地形void initImageAndElevation(osgEarth::Map* map){//影像osgEarth::Drivers::TMSOptions imgOption;imgOption.url()=&qu 阅读全文
posted @ 2013-07-16 10:51 酷熊 阅读(7258) 评论(1) 推荐(0) 编辑
摘要: 遇到“bash .....权限不够”的问题时,从控制台进入到那个文件夹chmod 777 * -R 全部子目录及文件权限改为 777 阅读全文
posted @ 2013-07-08 17:28 酷熊 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1、先设定一个root的密码sudo passwd root2、编辑lightdm.confsudo gedit /etc/lightdm/lightdm.conf最后一行添加greeter-show-manual-login=true修改后为:[SeatDefaults]greeter-session=unity-greeteruser-session=ubuntugreeter-show-manual-login=true重启登陆即可。已经可以输入root了。注意:如果root登陆后没声音,又查了查,如下方法:Ubuntu root登录没有声音这个问题的根本原因是使用root登录后puls 阅读全文
posted @ 2013-07-08 14:10 酷熊 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 打开AirPort打开设置偏好-共享,找到WIFI相关 阅读全文
posted @ 2013-07-02 16:09 酷熊 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 我使用的是WAMP2.2菜单-PHP-PHP extensions勾选php_sqlite3query('select * from table1');while($row=$r->fetchArray()){var_dump($row);}$conn->close();?> 阅读全文
posted @ 2013-07-02 16:08 酷熊 阅读(711) 评论(0) 推荐(0) 编辑
摘要: osgconv -o 90-1,0,0 --use-world-frame src.3ds dst.3ds视线方向沿X轴正方向,将src.3ds顺时针旋转90度,保存为dst.3ds 阅读全文
posted @ 2013-06-28 16:38 酷熊 阅读(651) 评论(0) 推荐(0) 编辑
摘要: 使用快捷键:Alt+/要是还是有些场合不能提示,按照下列步骤Window-Preferences-c/c++-Editor-Content Assist-Advanced将未勾选的全部勾选 阅读全文
posted @ 2013-06-27 14:46 酷熊 阅读(4761) 评论(1) 推荐(0) 编辑
摘要: url=http://www.123.com/abc.php?name=ku xiongku xiong之间有一个空格,需要替换成%20或者+url=http://www.123.com/abc.php?name=ku&20xiong或者url=http://www.123.com/abc.php?name=ku+xiong 阅读全文
posted @ 2013-06-26 11:17 酷熊 阅读(1026) 评论(0) 推荐(0) 编辑
摘要: 虽然在Android.mk文件中,配置了LOCAL_C_INCLUDES路径,但是工程中的红色叉号一直提示找不到头文件这时,你在工程树目录中展开Includes项,捣鼓捣鼓,重新build下,或许就出来了要是还没出来:右击工程-Properties-C/C++ General-Paths and Symbols-Includes-Add... 阅读全文
posted @ 2013-06-21 14:23 酷熊 阅读(1777) 评论(0) 推荐(0) 编辑