Platform
-
WindowsPlatform/소켓 2010. 3. 30. 22:13
Winsock 2 introduced with the release of Windows NT® 4.0; it is also available on Windows 95 (as an add-on package), Windows 98, and Windows 2000. service provider interface (SPI) layered service provider (LSP) to extend an existing transport service provider NDIS 참조 사이트: http://jjjryu.tistory.com/entry/%EC%86%8C%EC%BC%93-MFC http://blog.lmep.net/46
-
시그널 - POSIXPlatform/Environment 2010. 3. 24. 22:40
sigaction() //signal() SIGINT SIGPIPE SIG_IGN signal(SIGPIPE, SIG_IGN); #include static void handler(int sig) { ... } int main(void) { int state; struct sigaction act; act.sa_handler=handler; sigemptyset(&act.sa_mask); act.sa_flags=0; state=sigaction(SIGINT, &act, 0); if(state != 0){ puts("sigaction() error "); exit(1); } ... } #include static void handler(int sig) { signal(SIGINT, handler); .....
-
MySQLPlatform/DB 2010. 3. 17. 14:27
$ sudo apt-get install libmysqlclient-dev $ gcc -o output-file $(mysql_config --cflags) mysql-c-api.c $(mysql_config --libs) 여기에서 mysql-connector-c-6.0.2-win32.msi 파일을 다운 받아 설치한다. C:\Program Files\MySQL\MySQL Connector C 6.0.2\include C:\Program Files\MySQL\MySQL Connector C 6.0.2\lib\opt 전체 설치를 하면 설치 디렉토리에 libmysql.dll 파일도 설치된다. mysql_init() mysql_real_connect() mysql_close() mysql_query() mysq..
-
ADOPlatform/DB 2010. 3. 16. 19:38
_ConnectionPtr .GetInterfacePtr() .Open() .Close() _RecordsetPtr .adoEOF .Open() .Close() .MoveNext() .GetCollect() // StdAfx.h #import "c:\program files\common files\system\ado\msado15.dll" \ no_namespace \ rename ("EOF", "adoEOF") BOOL CTry01App::InitInstance() { // { if(!AfxOleInit()) { AfxMessageBox("Could not initialize COM dll"); return FALSE; } // } AfxEnableControlContainer(); ... } clas..
-
POSIX(UNIX)Platform/File(장치 IO) 2010. 3. 16. 00:21
UNIX files, no matter what program created them, can all be accessed as a sequential stream of bytes. When you access a file, you start by opening it by name. The operating system then gives you a number, called a file descriptor, which you use to refer to the file until you are through with it. You can then read and write to the file using its file descriptor. When you are done reading and writ..
-
WindowsPlatform/서비스 2010. 1. 24. 11:52
Advapi32.dll(%SystemRoot%\System32\Advapi32.dll) SCM(Service Control Manager) RPC 서버 SCM에게 상태를 보고(SetServiceStatus) HKLM\SYSTEM\CurrentControlSet\Services 서비스 설정 서비스 설치와 제거 CreateService() ChangeServiceConfig2() 서비스 제어 서비스 애플릿 새로운 서비스를 설치하거나 제거하는 기능은 포함되어 있지 않다. StartService() ControlService() 서비스 보통 IPC를 통하여 사용자 프로그램과 연동 서비스 스레드를 시작(StartServiceCtrlDispatcher) 서비스 스레드 디스패처 핸들러를 등록(RegisterServi..