摘要: http://blog.csdn.net/feixiaoxing/article/details/6998116 阅读全文
posted @ 2013-02-06 13:52 我的程序人生 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1 HANDLE handleProcess = OpenProcess(PROCESS_CREATE_THREAD|PROCESS_VM_OPERATION|PROCESS_VM_WRITE 2 , FALSE 3 , dwProcessId); 4 5 //param 6 char szBuff[10]={0}; 7 *(DWORD*)szBuff = 1000; 8 void* pDataRemote = VirtualAllocEx(handleProcess,0,si... 阅读全文
posted @ 2013-02-06 00:10 我的程序人生 阅读(245) 评论(0) 推荐(0) 编辑
摘要: #include <TlHelp32.h>//根据进程名获取进程IDBOOL GetPidByProcessName(TCHAR *pProcess, DWORD*dwPid) { HANDLE hSnapshot; PROCESSENTRY32 lppe; //创建系统快照 hSnapshot = ::CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, NULL); if (hSnapshot == NULL) return FALSE; //初始化 lppe 的大小 lppe.dw... 阅读全文
posted @ 2013-02-05 19:06 我的程序人生 阅读(1967) 评论(0) 推荐(0) 编辑
摘要: Downloadhttp://www.cocoawithlove.com/2010/09/zoomingviewcontroller-to-animate-uiview.html 阅读全文
posted @ 2013-02-04 21:12 我的程序人生 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 需要获得目录的内容列表,使用enumeratorAtPath:方法或者directoryC ontentsAtPath:方法,可以完成枚举过程。如果使用第一种enumeratorAtPath:方法,一次可以枚举指定目录中的每个文件。默认情况下,如果其中一个文件为目录,那么也会递归枚举它的内容。在这个过程中,通过向枚举对象发送一条skipDescendants消息,可以动态地阻止递归过程,从而不再枚举目录中的内容。对于directoryContentsAtPath:方法,使用这个方法,可以枚举指定目录的内容,并在一个数组中返回文件列表。如果这个目录中的任何文件本身是个目录,这个方法并不递归枚举它 阅读全文
posted @ 2013-02-02 00:13 我的程序人生 阅读(2423) 评论(0) 推荐(1) 编辑
摘要: #include "stdafx.h"#include <iostream>using namespace std;class Test{public: void CallBack(char* args) { cout<<args<<endl; }};int _tmain(int argc, _TCHAR* argv[]){ typedef (Test::*lpCallBack)(char* args); //取得函数地址 //VC8可能要改为lpCallBack func = (lpCallBack)&Test::CallBac 阅读全文
posted @ 2013-02-01 09:33 我的程序人生 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Read the asset from the Library and get decompresIn the above post the size of the asset file is too big so here is another way to decompress the fileThis is also taken from the stack over flow,http://stackoverflow.com/questions/5687341/iphoneprogrammatically-compressing-recorded-video-to-share- (vo 阅读全文
posted @ 2013-01-31 17:55 我的程序人生 阅读(1113) 评论(0) 推荐(0) 编辑
摘要: 我们在Finder上能轻而易举让Finder显示我们现在浏览文件夹的路径,但是好像还有很多朋友不知道这个小功能哦,跟着MacGG学习把。首先打开Finder,在菜单栏上选择“显示”->“显示路径栏”很简单把,操作完成,现在我们看看我的Finder底部的变化。这里就有个小问题了,这个路径怎么从根目录开始呀??我想直接从Home文件夹开始显示就好了,如mars->文稿,这样看起来好清爽。继续跟着MacGG吧。打开“终端”(在应用程序->工具文件夹),并输入以下命令:defaults write com.apple.finder PathBarRootAtHome -bool TR 阅读全文
posted @ 2013-01-24 14:14 我的程序人生 阅读(10160) 评论(0) 推荐(1) 编辑
摘要: 我们可以在hosts文件加入 207.97.227.239 github.com65.74.177.129 www.github.com 207.97.227.252 nodeload.github.com 207.97.227.243 raw.github.com 204.232.175.78 documentcloud.github.com,204.232.175.78 pages.github.com 阅读全文
posted @ 2013-01-23 09:06 我的程序人生 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 在项目中经常遇到隐藏tabBar,实力很多种方法,可以解决不同情况下问题1://隐藏tabBarWebViewController *webVc = [[WebViewController alloc] init];webVc.hidesBottomBarWhenPushed= YES;[self.navigationController pushViewController:webVc animated:YES];webVc.hidesBottomBarWhenPushed= NO;[webVc release];2.系统方法 self.hidesBottomBarWhenPushed= Y 阅读全文
posted @ 2013-01-18 20:41 我的程序人生 阅读(3204) 评论(0) 推荐(0) 编辑