인터넷 파라미터를 사용시 인코드 하여야한다. 여기서 쉰운데 뻘짓 거리를 했다. 닷넷프레임워크 선택이 4.0 클라이언트 프로파일로 되어서 System.Web.dll을 사용을 못하였다. 한참을 찾다가 어디선가 3.5에 사용된걸보고 3.5오로 바꾸었다가 보니깐 잘돌아간다. 롤백해서 4.0클라이언트 프로파일로 하니 안된다. ㅋㅋㅋ 다시 그냥 4.0으로 하니 된다. ㅋ using System.Web; HttpUtility.UrlEncode("문자열", Encoding.UTF8); //%eb%ac%b8%ec%9e%90%ec%97%b4 HttpUtility.UrlDecode("%eb%ac%b8%ec%9e%90%ec%97%b4", Encoding.UTF8); //문자열
public string RequestWebPage(string url, string sendData, CookieContainer cook) { HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); string strResult = ""; req.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"; req.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 6.1; ko; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10"; req.Method = "POST"; req.ContentLength = send..
step1) 이벤트를 사용하기위해서는 델리게이트 함수 선언한다. public delegate void func(parameter); step2) 이벤트 변수를 만든다. public event func myevent; step3) 이벤트를 사용한다. myevent(parameter); step4) 이벤트가 발생시 사용할 함수를 추가시키준다. func+=userfunc(parameter); 여기서 문제 이벤트 선언시 반드시 사용자 함수를 추가 시켜준다. 외부 클래스에서 정의한 사용자 함수를 사용하려고 클래스안에서 추가 시키지 않으면 외부 클래스에서 정의 안할시 에러가 난다.
Process ps = new Process(); ListViewItem[] item2; public Form1() { InitializeComponent(); Process[] temp = Process.GetProcesses(); item2 = new ListViewItem[temp.Count()]; for (int i = 0; i < temp.Count(); i++) { item2[i] = new ListViewItem(temp[i].ProcessName.ToString()); try { item2[i].SubItems.Add(temp[i].Modules[0].FileName); } catch (Exception e) { } } lview_Information.Items.AddRange(item2);
using System.Diagnostics; Process ps = new Process(); //프로세스 생성 ps.StartInfo.FileName = "cmd.exe"; //정보저장 ps.StartInfo.UseShellExecute = false; //쉘창 닫기 ps.StartInfo.RedirectStandardInput = true; //입력가능 ps.StartInfo.RedirectStandardOutput = true; //출력가능 //ps.StartInfo.RedirectStandardError = true; //에러값 //ps.StartInfo.CreateNoWindow = true;//윈도우창 만들기 //명령 실행 ps.Start();//프로세스시작 ps.StandardInput.W..
- Total
- Today
- Yesterday
- URLDecode
- url 변환
- 윈도우폰7
- ZXing
- 쿠키 해킹 수정
- MOON
- 네이버디도스
- LNK2019
- 달
- 개발환경구축
- 윈도우7
- naverddos
- 웹페이지 로그인
- 윈폰7
- 첫만남
- ddos
- template
- Android
- 안드로이드
- urlencode
- 바코드
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |