전체 글
-
8. C# 상수(데이터 타입)C# 2017. 2. 1. 01:14
인터넷강의 보고 따라하지만.. 강의 내용대로 안되서 다시 정리해 봅니다. 배우면서 쓰는글이기 때문에 정답이 아닐수 있습니다. - 숫자 - 문자- 논리- 객체 ==================================================//C# 소스 코드의 구조//namespace => class => methodnamespace myNameSpace{ class MyClass { public static void Main() { //상수와 변수 //숫자 int , uint , long //문자 String //논리 boolean , bool // true or false int iTmp = 10; string sTmp = "a"; System.Console.WriteLine(iTmp + sT..
-
android.os.NetworkOnMainThreadExceptionANDROID 2017. 1. 31. 16:45
안녕하세요. android.os.NetworkOnMainThreadException 메인스레드에서 네트워크 통신을 할려고 하셧군요~ 안드로이드에서 이건 절대 허용안한답니다. 간단하게 코드로 보여드리겠습니다. 수정전 - android.os.NetworkOnMainThreadException 오류발생 String rtnVal = Request_Server_Login_Check(url, sel_member_id,sel_member_pw); 수정후 // Thread로 웹서버에 접속 new Thread() { public void run() { try { String rtnVal = Request_Server_Login_Check(url, sel_member_id,sel_member_pw); DLog.d("bsj..
-
7. C#배포시 주의사항C# 2017. 1. 28. 20:53
인터넷강의 보고 따라하지만.. 강의 내용대로 안되서 다시 정리해 봅니다. 배우면서 쓰는글이기 때문에 정답이 아닐수 있습니다. C#으로 만든 프로그램은 닷넷 환경에서만 실행된다.그래서 , 배포될 컴퓨터에 닷넷 프레임워크가 반드시 설치되어 있어야한다.(버전또한 맞아야 한다.) 이러한 사항때문에 프로젝트를 배포할 때는 , 프로젝트 안에 프레임 워크를 같이 컴파일 해서 배포해야한다. 1. visual studio 에서 project - properties 클릭2. public 클릭3. Prerequisites... 클릭4. 포함시킬 프레임 워크 체크 이렇게 설정을 하면 된다.
-
6. C#의 메모리 관리C# 2017. 1. 28. 11:31
인터넷강의 보고 따라하지만.. 강의 내용대로 안되서 다시 정리해 봅니다. 배우면서 쓰는글이기 때문에 정답이 아닐수 있습니다. C, C++ 과 C#의 차이점 중 하나는 C#은 자동으로 메모리관리를 해준다는게있다. 1. Ctrl + Shift + N 으로 창을 띄우고 콘솔 어플리케이션을 선택해서 프로젝트를 만들자 그다음 모두 지우고 위에 처럼 타이핑을 쳐봅시다 그리고 12 번째 라인에 break point 를 지정해봅니다. (브레이크 포인트는 위 사진의 빨간 점 부분을 클릭하면 지정됩니다.) 그다음 디버깅 모드로 실행합니다. 그 후 , Debug -> Windows -> Memory 클릭합니다. (만약, 메모리메뉴가 보이지 않는다면 , Tools -> Import and Export Setting -> Re..
-
5. 닷넷(.NET) 프레임워크란?C# 2017. 1. 28. 10:00
인터넷강의 보고 따라하지만.. 강의 내용대로 안되서 다시 정리해 봅니다. 배우면서 쓰는글이기 때문에 정답이 아닐수 있습니다. 개념 하나의 작은 OS 윈도우라는 OS에 윈도우용 닷넷 프레임 워크 - 원 소스 멀티 플랫 폼 ==> 소스 코드 -> 컴파일 -> EXE (X) ==> 소스 코드 -> 컴파일 -> MSIL(DLL) 중간적인 실행 파일 실행 포인트가 없음 파일 실행 정보 (X) 당연히 닷넷 프레임 워크가 해당 MSIL 코드를 실행 메모리의 관리를 닷넷 프레임 워크다 다 관리~! .net framework diagram