[C#] 서로 다른 프로그램 사이의 Serialize 와 Deserialize 드론 관련 프로젝트를 진행 중... TCP/IP 소켓통신으로 드론 기체의 상태값을 전송하기 위한 방법 * Flight Controller : 3DR APM / PIXHAWK 계열 1. Demo 용 UAV Control 프로그램에서 객체를 Serialize하여 byte 배열로 만들어 routing 서버로 전송 2. routing 서버는 Header / Tail / Checksum 검사 후 해당 GCS 로 전송 3. Demo 용 GCS[Ground Control System] 에서 수신한 패킷을 Deserialize... # 발생한 문제... - 오류 : GCS에서 Deserialize 시 "Unable to find assemb..
[출처] http://www.codeproject.com/Articles/415732/Reading-and-Writing-CSV-Files-in-CsharpHere's some lightweight C# code for reading and writing CSV files.IntroductionA common requirement is to have applications share data with other programs. Although there are interfaces available to work with, for example, Microsoft Excel data files, this approach is generally complex, involves a fair amount of..
Tutorial: Creating Charts with Real-Time DataVisual Studio 2010Applies to: Functional ProgrammingPublished: January 2010Authors: Tomas Petricek and Jon SkeetGet this book in Print, PDF, ePub and Kindle at manning.com. Use code “MSDN37b” to save 37%.Summary: This tutorial demonstrates how to dynamically update a chart to display real-time data. It discusses how to use F# asynchronous workflows an..
개발환경 : Visual studio 2010(.NetFramework 4.0) / 2012(.NetFramework 4.5.1) 개발언어 : C# - Winform Database : MSSQL Server 2014 Express / Standard 증상 : DB 접속을 위한 SqlConnection 객체의 Open함수 사용 시 [Unhandled Exception: System.AccessViolationException] Attempted to read or write protected memory. This is often an indication that other memory is corrupt. 보호된 메모리를 읽거나 쓰려고 했습니다. 대부분 이러한 경우는 다른 메모리가 손상되었음을 나타냅니..
# 타입은 값을 담을 수 있다. 그렇다면 그 값의 범위에 Method도 포함될 수 있지 않을까?? short 형 변수가 short 값 범위를 가리키는 것 처럼 아래와 같은 Clean Method가 정의 된 경우에... public class Disk{ public int Clean(object arg) { Console.WriteLine("작업 실행"); return 0; }} Method 자체를 값으로 갖는 타입도 가능하다. Disk disk = new Disk(); [타입] cleanFunc = new [타입](disk,Clean); // Method를 인자로 갖는 타입의 객체 생성 이렇게 Method를 가리킬 수 있는 타입을 C#에서는 특별히 델리게이트(Delegate)라는 구문으로 제공한다.그런데..
[출처: 시작하세요. C# 프로그래밍] 1. IL(Intermediate Language) 코드를 실행하는 CLR(Common Language Runtime) 1.1 [C# 소스코드] -> Build -> [EXE file] : 이 때 [EXE file]는 C# 컴파일러가 삽입한 CLR Loader와 IL 코드로 구성된다. 이 후 EXE file을 실행하게 되면 CLR이 먼저 로드되어 IL 코드를 실행하게 되는 것. 2. C#은 .Net Framework를 기반으로 IL(Intermediate Language) 코드를 생성하는 컴파일러에 불과하며 C#을 공부한다는 것은 .Net Framework를 공부한다는 것이다. .Net Framework을 공부하는데 C#이 좋은 이유는 Microsoft가 .Net ..
[TIMESTAMP:2013-05-24] 음성경보시스템 Application 리뉴얼 작업중... 아...끝나지 않는 삽질과 나날이 새로운 기술이 나오지만 자꾸 뒤쳐져만 가는 내 스킬에 깊은 빡침이...오늘의 삽질은 기존의 MFC로 짜여진 프로젝트를 C#으로 리뉴얼 하는 과정에서 WinForm application의 나름 구조를 잘 만들어보겠노라 Form class와 Thread class로 쪼개면서 발생한 것같다. 구조를 잡을 당시는 몰랐지만 그때 이미 오늘 삽질할 스케줄을 스스로 만들어버렸다...... 프로그램의 주요기능은 CDMA(Telit BSM-856) modem을 사용하며 Form class에서 SMS전송에 대한 버튼클릭 시 Database에 내용을 Insert하게 되며 Thread class에..
루비를 사용하여 오라클 데이터베이스의 완성형 자료를 mysql에 유니코드로 변환하여 저장한 것이 있습니다. 이것을 검색하는 프로그램을 C#으로 짤 일이 생겼는데 프로그램 자체는 그리 복잡하지 않게 만들수 있었습니다만 한글이 깨어져서 나오는 것이었습니다. 구글 검색에서도 신통한 답을 얻을 수 없던 차 이런저런 삽질 끝에 다음과 같은 코드로 깨어지지 않은 한글을 얻을 수 있었습니다. 1 2 3 4 5 6 7 8 9 10 11 12 13 OdbcCommand command = new OdbcCommand(query, connection); OdbcDataReader result; result = command.ExecuteReader(); first_field = result.GetString(0); // 이..