본문 바로가기

삽질기초/SW18

Win 32 API 기본. #include "stdafx.h" #include "resource.h" #define MAX_LOADSTRING 100 // Global Variables: HINSTANCE hInst;// current instance TCHAR szTitle[MAX_LOADSTRING];// The title bar text TCHAR szWindowClass[MAX_LOADSTRING];// The title bar text // Foward declarations of functions included in this code module: // 함수, 코드 모듈 선언. ATOMMyRegisterClass(HINSTANCE hInstance); BOOLInitInstance(HINSTANCE, int); LRE.. 2009. 4. 17.
c# 마우스 클릭시 포인트 받아오기. private void pictureBox1_MouseDown(object sender, MouseEventArgs e) { ppoint.X = e.X; ppoint.Y = e.Y; textBox1.Text = ppoint.X.ToString() +","+ ppoint.Y.ToString(); } 2009. 4. 8.
C# 선그리기. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Graphic_Study2 { public partial class Form1 : Form { private Graphics gr; public Form1() { InitializeComponent(); } private void Form1_Paint(object sender, PaintEventArgs e) { gr = pictureBox1.CreateGraphics(); Pen pen1 = n.. 2009. 4. 8.
C# 스트링을 숫자로, 숫자를 스트링으로. 스트링을 숫자로 System.String temp1 = "123"; System.Int32 temp2 = Int32.Parse(temp1); Console.WriteLine("숫자 : {0}", temp2); //출력 숫자를 스트링으로 temp2 = 123; temp1 = temp2.ToString(); Console.WriteLine("문자열 : {0}", temp1); //출력 쉽네 c# ㅋㅋㅋ 2009. 4. 3.
C# 데이터 타입과 배열 System.Type로 부터 상속. System.Object 는 어떠한 데이터 타입으로도 변환이 가능. static void WriteObjectInfo(object testObject) { TypeCode typeCode = Type.GetTypeCode( testObject.GetType() ); switch( typeCode ) { case TypeCode.Boolean: Console.WriteLine("Boolean: {0}", testObject); break; case TypeCode.Double: Console.WriteLine("Double: {0}", testObject); break; default: Console.WriteLine("{0}: {1}", typeCode.ToString.. 2009. 4. 3.
Win CE 5.0 시작하기~ Win CE 5.0 [http://msdn.microsoft.com/en-us/library/bb847951.aspx] ■ Kernel Shared Heap Memory : 개발자가 원하는 Heap memory function을 사용할 수 있음. 이를 통해서 OS가 인식하지 않는 또는 개발자가 원하는 별도의 RAM에 memory heap을 구성할 수 있음. Watchdog timer : Application의 holding상태를 감지하여 해당 Application을 다시 reboot하는 기능. 64 system interrupts : 기존 32개만 사용할 수 있었던 Interrupt가 64개로 늘어남. Power down thread : 이전 버전에서는 Power Handler관련한 function에 어.. 2009. 4. 2.