Win32에서 IPC(Inter Process Communication)의 하나의 방법인 Pipe에 관한 간단한 Server/Client 예제이다.파이프를 하나만 만들고 단방향 서버 클라이언트이다.서버는 보내기만 하고, 클라이언트는 받기만 한다. // PipeServer2.cpp : Defines the entry point for the console application.//#include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]){ // "\\\\.\\pipe\\RenToImaging"라는 이름의 파이프를 생성한다. // 파이프는 항상 \\.\pipe\(이름)에 생성 되어야 한다. HANDLE hPipe = ::CreateNamedPipe(L"\\\\.\\..
Target중에서 외부에서 사용하는 것은 Build, Rebuild, Clean이 있는데 이것을 커스터마이즈하는 가장 쉬운 방법은 BuildDependsOn, RebuildDependsOn, CleanDependsOn이라는 property를 다음과 같이 수정해 주면된다. 아래의 예제에서는 전체 BuildDependsOn Target을 수행하기전에 DependsBuild라는 Target을 먼저 수행한후에 하라는 예제이다. DependsBuild는 물론 로 정의되어야 한다. DependsBuild;$(BuildDependsOn); DependsClean;$(CleanDependsOn); 내부의 Build과정에 대해서는 수많은 복잡한 Import되는 MSBuild에서 제공하는 props와 targets가 있지..
MSBuild란 무엇인가? MSBuild란 오프라인, 그러니까 콘솔에서 Visual Studio IDE에서 수행했던 컴파일과 링크, 빌드를 수행해 주게 하는 프로그램이다. 유닉스에서 GNU Make, 자바의 Ant와 비슷하다. (금융권에 근무하던 시절 Makefile을 수천번 수정하고, 자바의 Ant로 자동빌드를 수행하던 기억이 난다.) 사실 처음에 MSBuild를 접하고 공부하였을 때는 Visual Studio는 JDK와 Eclipse처럼 IDE와 SDK가 분리되지 않는다고 생각했었다. 그러나 이것도 예전에 어렴풋이 알고 있던 cl.exe, al.exe, ln.exe와 같이 빌드시스템도 마찬가지로 분리되어 있었다. Visual Studio에서 무언가를 컴파일 할려면 일반적으로 IDE(즉, Visual ..
call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" x86set cores=%NUMBER_OF_PROCESSORS% echo Building boost with %cores% coresrem cd boost_1_62_0 call bootstrap.batrem Most libraries can be static libs b2 -j%cores% toolset=msvc-14.0 address-model=64 architecture=x86 link=static threading=multi runtime-link=shared --build-type=minimal stage --stagedir=stage/x64 b2 -j%cores% toolset=msvc-14.0 address-mo..
- Total
- Today
- Yesterday