摘要: 头文件 extern "C" _declspec(dllexport)void AddFunction(); cpp文件 extern "C" _declspec(dllexport) void AddFunction(){ AfxMessageBox(_T("dll_function"));} 阅读全文
posted @ 2016-06-12 09:45 、有妖气 阅读(394) 评论(0) 推荐(0) 编辑
摘要: HINSTANCE PH=LoadLibrary(_T("APlayerCaller.dll")); HWND hwnd = AfxGetMainWnd()->m_hWnd; int hwndw = int(hwnd); int aplayer; typedef int (WINAPI*dll) ( 阅读全文
posted @ 2016-05-30 16:23 、有妖气 阅读(261) 评论(0) 推荐(0) 编辑
摘要: TCHAR *path = new TCHAR[MAX_PATH]; GetModuleFileName(NULL,path,MAX_PATH); AfxMessageBox(path); 阅读全文
posted @ 2016-05-25 16:53 、有妖气 阅读(319) 评论(0) 推荐(0) 编辑
摘要: var btn = UIButton(frame: CGRect(x: 200, y: 200, width: 100, height: 100)) btn.setTitle("jicheng", forState: UIControlState.Normal) //btn.setTitleColo 阅读全文
posted @ 2016-05-12 17:50 、有妖气 阅读(634) 评论(0) 推荐(0) 编辑
摘要: func stringmid_pl (wholestring:String,front:String,behind:String,inout return_string:String,getheroid:Bool) { //数组参数inout // var whole_tmp:String = wh 阅读全文
posted @ 2016-05-12 17:43 、有妖气 阅读(322) 评论(0) 推荐(0) 编辑
摘要: func stringmid (wholestring:String,front:String,behind:String)->String { if wholestring.isEmpty { return("") //wholestring 不能为nil }else { var whole:NS 阅读全文
posted @ 2016-05-12 17:42 、有妖气 阅读(154) 评论(0) 推荐(0) 编辑