카테고리 : 코드 요약보기전체보기목록닫기

1 2 3 4 5 6 7 8 9

웹 참조 자동 업데이트

아래는 UpdateWebReference.bat 파일 내용 @ECHO OFF REM 지정한 WSDL을 이용하여 Proxy 클래스를 생성해낸다. REM 웹 참조 업데이트 기능을 빌드 전 이벤트에서 배치 처리하기 위해서 만든 유틸리티. REM 첫번째 매개변수 - 웹 참조 이름 REM 두번째 매개변수 - 프로젝트 이름 REM 세번째 매개변수 ...

ACE SSL 사용법

따라해보자 치키치키차카차카초코초.. (읍) 빌드 방법은 귀찮으니 나중에.. #include <ace/SSL/SSL_Context.h> #include <ace/SSL/SSL_SOCK_Connector.h> #include <ace/SSL/SSL_SOCK_Acceptor.h> #include <iost...

catch Access Violation

Access Violation 을 잡으려면 빌게 SEH 밖에 방법이 없나보다. catch (...) 로 잡을 수 있을 줄 알았는데 디버그 모드에서만 되네.. 기본 런타임 검사 옵션 /RTC1, /RTCsu 이 영향을 미치는데.. 최적화 옵션하고 같이 쓸 수 없다 음... 근데 이거 개체 해제 기능 쓰는 함수라고 같이 못 쓰는데 골아프네;;...

STL getline

std::ifstream i(filename); std::string line; getline(i, line); 원래 이렇게 쓰면 되는데, ifstream 멤버로도 getline이 있고, 이건 대략 char 배열만 받기 때문에 자꾸 둘을 혼동한다. ifstream 멤버에서도 string을 받으면 깔끔했을텐데, 이상해...

std::string 문자 치환

#include <iostream> #include <algorithm> #include <string> #include <functional> using namespace std; int main() {     string test = "f1=a|f2=b|f3=c...

이벤트 소스 열거

import win32api, win32con handle = win32api.RegOpenKeyEx(win32con.HKEY_LOCAL_MACHINE,                   &n...

shared_ptr + bind + map + for_each

#include <iostream> #include <map> #include <algorithm> #include <boost/shared_ptr.hpp> #include <boost/bind.hpp> class A { public:     A(in...

CALL

batch file을 nest 할 때에는 CALL 내부명령어를 사용하면 된다. 음-_-; 어쩔 수 없이 별 걸 다 써보네;

checked build?

strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel = impersonate}!\" & strComputer & " ootcimv2") Set colOperatingSystems = objWMIService.ExecQuery...

curry

CL-USER> (defun curry (fn &rest args)            #'(lambda (&rest args2)      &nb...
1 2 3 4 5 6 7 8 9