自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(1)
  • 资源 (3)
  • 收藏
  • 关注

原创 【BB10开发】通过编译QML为二进制代码来加速启动兼保护源代码

QML是可以通过编译为二进制代码来加速启动的,同时编译QML兼具保护源代码的效果。 以下的实例是经过与老外讨论总结出来的,测试通过: 1. 项目根目录新建文件qrc-assets.qrc 内容为: assets/main.qml assets/common/mycomponent.qml ... 关键点:包含所有qml文件。不支持通配符

2013-03-30 09:23:55 1579

一个简单的注册表操作类,c++

使用说明: HKEY hKey; LPCTSTR lpSubkey=TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"); long ret0=::RegOpenKeyEx(HKEY_LOCAL_MACHINE,lpSubkey,0,KEY_WRITE,&hKey); if(ret0!=ERROR_SUCCESS) { AfxMessageBox(TEXT("Unable to Open Reg file"));return; //DWORD nbf; //::RegCreateKeyEx(HKEY_LOCAL_MACHINE,subkey,0,NULL,REG_OPTION_NON_VOLATILE,KEY_ALL_ACCESS,NULL,&hKEY,&nbf); } LPCTSTR lpValName=TEXT("(Default)"); CString str("%systemroot%\\system32\\explorer.exe"); BYTE* pData=(BYTE*)str.GetBuffer(str.GetLength()); DWORD cbData = str.GetLength()*2; str.ReleaseBuffer(); long ret1=::RegSetValueEx(hKey,lpValName,NULL,REG_SZ,pData,cbData); if(ret1!=ERROR_SUCCESS) { AfxMessageBox(TEXT("Unable to Write Reg file"));return; }

2009-12-11

Moving_Least_Squares matlab版本

用起来非常方便的一个函数 % INPUT PARAMETERS % m - Total number of basis functions (1: Constant basis; 2: Linear basis; 3: Quadratic basis) % nnodes - Total number of nodes used to construct MLS approximation % npoints - Total number of points whose MLS shape function to be evaluated % xi(nnodes) - Coordinates of nodes used to construct MLS approximation % x(npoints) - Coordinates of points whose MLS shape function to be evaluated % dm(nnodes) - Radius of support of nodes % wtype - Type of weight function % para - Weight function parameter % % OUTPUT PARAMETERS % PHI - MLS Shpae function % DPHI - First order derivatives of MLS Shpae function % DDPHI - Second order derivatives of MLS Shpae function

2009-12-11

24点游戏的c++算法实现

给4个整数,只用加减乘除,得出所有能得到24的算法 //基本思想是用3个运算符和4个数的排列组合进行穷举 //为了实现循环,自定义了4个运算符,并放入函数数组中

2009-12-11

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除