#include #include VOID CALLBACK TimerCallback(PVOID lpParameter, BOOLEAN TimerOrWaitFired) { printf("TimerCallback\n"); } int main() { // 타이머 큐를 만든다. HANDLE timerQueue = CreateTimerQueue(); // 타이머를 만든다. HANDLE timer; // 처음 시작할때 0.5초 지연, 주기 0.5초마다 호출되게 CreateTimerQueueTimer(&timer, timerQueue, TimerCallback, NULL, 500, 500, 0); while (1) { Sleep(100); } return 0; }
Visual Studio 2013에서 다음과 같은 에러 메세지를 내면서 MFC 프로젝트가 컴파일 되지 않을때가 있다. 이는 2013에서는 MFC를 유니코드만 지원하기 때문에 추가적으로 non-Unicode 라이브러리를 다운 받으라는 말이다. 여러모로 귀찮다. error MSB8031: Building an MFC project for a non-Unicode character set is deprecated. You must change the project property to Unicode or download an additional library. See http://go.microsoft.com/fwlink/p/?LinkId=286820 for more information.
ParseHTML이라는 외부 라이브러리로 HTML을 파싱해보자. using System; using System.Collections.Generic; using System.Linq; using System.Text; using HTML; using System.IO; namespace ParseHTMLTester { class Program { static void Main(string[] args) { StreamReader reader = new StreamReader("1.txt");// html을 1.txt로 저장해 놓음 HTML.ParseHTML parse = new HTML.ParseHTML(); // 스트림 리터에서 파일 전체를 string으로 변경 string data = reader.R..
마영전 서버가 C#으로 개발되었습니다. 마영전 서버 세션 정리 http://www.scribd.com/doc/57921356/ndc2011-%EB%A7%88-%EB%B9%84-%EB%85%B8-%EA%B8%B0-%EC%98%81-%EC%9B%85-%EC%A0%84-%EC%84%9C-%EB%B2%84-%EA%B4%80-%EB%A0%A8-%EC%84%B8-%EC%85%98-%EC%A0%95-%EB%A6%AC C#으로 게임 서버를 개발 할 경우 성능에 대한 글 http://rosagigantea.tistory.com/408 NDC 참관기: 마비노기 영웅전 자이언트 서버의 비밀 https://rein.kr/blog/archives/2671 게임코디 쓰레드 http://www.gamecodi.com/board/z..
using System; using System.Net; using System.Web; using System.Collections; using System.IO; // No .NET4 Client Profile // Add reference System.Web namespace WebRequestExample { class WebPostRequest { WebRequest theRequest; HttpWebResponse theResponse; ArrayList theQueryData; public WebPostRequest(string url) { theRequest = WebRequest.Create(url); theRequest.Method = "POST"; theQueryData = new A..
- Total
- Today
- Yesterday