摘要: 注:根据Qt小神童的视频教程改编 概论:利用最新的Qt5.1.1在windows下开发的一个小的时钟程序,有指针与表盘。 1.Qt for windows开发环境 最新的Qt已经集成了例子,QtCreator(Qt开发IDE),所以只需要到官网下去下载最新的Qt即可。 下载链接: ht... 阅读全文
posted @ 2013-12-08 17:27 yuanmus 阅读(1958) 评论(0) 推荐(0) 编辑
摘要: 法1: 在注册表中找到:HKEY_CURRENT_USER\Software\Microsoft\Microsoft SDKs\Windows 在windows项中如果存在以下两项就修改为下列示例,如果没有新建如下两项并设置相应值: X86系统: "CurrentVersion"="v7.0... 阅读全文
posted @ 2013-12-04 00:01 yuanmus 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 参考文章:http://www.oschina.net/code/snippet_243525_25045#41626 lua与c/c++遵循相应规范的条件下可以相互调用. 1.在c/c++中定义一个lua接口的函数: //要在lua中调用的c函数 int l_hello(lua_State* ... 阅读全文
posted @ 2013-12-03 00:05 yuanmus 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 参考:http://blog.csdn.net/morewindows/article/details/8459219 http://blog.csdn.net/morewindows/article/details/8678359 本篇大致统计了在win7下可用的内存... 阅读全文
posted @ 2013-12-01 21:40 yuanmus 阅读(890) 评论(0) 推荐(0) 编辑
摘要: 学习lua将近半个月了,以前也了解过,只是没有实际运用的环境。 现在将自己这半个月来的心得写下来。 首先,要想在C++程序中作用lua脚本,必须包含相应的lua头文件, extern "C" { #include #include #include } 因为lua是基于c的,所以要... 阅读全文
posted @ 2013-11-09 22:30 yuanmus 阅读(463) 评论(0) 推荐(0) 编辑
摘要: #ifndef REQUIRE_H #define REQUIRE_H #include #include #include inline void require(bool requirement,const char* msg="Requirement failed") { //为... 阅读全文
posted @ 2012-11-16 08:58 yuanmus 阅读(149) 评论(0) 推荐(0) 编辑