code_focus

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年4月5日

摘要: UINT GetCheckedRadioButton(HWND hwnd, UINT nIDFirstButton, int nIDLastButton){ for (UINT nID = nIDFirstButton; nID <= nIDLastButton; nID++) { HWND hwnd1 = GetDlgItem(hwnd, nID); int checkState = Button_GetCheck(hwnd1); if (BST_CHECKED == checkState) return nID;... 阅读全文
posted @ 2014-04-05 21:28 code_focus 阅读(410) 评论(0) 推荐(0) 编辑

摘要: 最近在用winForm写一个界面,在将一个TCHAR类型的数组转换成int 类型时,我是这样写的GetDlgItemText(hwnd, IDC_EDIT2, key, sizeof(key)); //DES加密算法 // MessageBox(hwnd, key, TEXT("hello"), MB_OK); int keys=atoi(key);编译报... 阅读全文
posted @ 2014-04-05 21:10 code_focus 阅读(1928) 评论(0) 推荐(0) 编辑

2014年4月3日

摘要: 1:创建动态Web工程2:在web.xml里加入 struts2 org.apache.struts2.dispatcher.FilterDispatcher struts2 /* 3:右键单击工程,选择MyEclipse-Project Facets-Install Apache Struts(2.x)Facet4:新建一个Java类,在此命名为HelloWorld.java,并继承ActionSupport类 在里面重写execute()方法package tutorial;import com.opensym... 阅读全文
posted @ 2014-04-03 15:56 code_focus 阅读(157) 评论(1) 推荐(0) 编辑