Dev/Windows 26

DLL 파일 찾는 순서

1. The directory from which the application loaded. 2. The current directory. 3. The system directory. Use the GetSystemDirectory function to get the path of this directory. 4. The Windows directory. Use the GetWindowsDirectory function to get the path of this directory. 5. The directories that are listed in the PATH environment variable. -- LoadLibrary혹은 DLL을 동적링크할때 특정경로에 관계없이 응용프로그램의 디렉토리에서 먼저..

Dev/Windows 2007.05.14

DLL export

1. 첫번째 방법 __declspec(dllexport) 키워드를 사용한다. 이경우 calling convention이 "__cdecl" 이면 함수이름 그대로 export되지만 calling convention이 윈도우 표준인 "__stdcall" 이면 함수이름규칙이 변한다 [msdn] __stdcall Name-decoration convention An underscore (_) is prefixed to the name. The name is followed by the at sign (@) followed by the number of bytes (in decimal) in the argument list. Therefore, the function declared as int func( int ..

Dev/Windows 2007.05.14

_beginthread, _beginthreadex

Create a thread. unsigned long _beginthread( void( __cdecl *start_address )( void * ), unsigned stack_size, void *arglist ); unsigned long _beginthreadex( void *security, unsigned stack_size, unsigned ( __stdcall *start_address )( void * ), void *arglist, unsigned initflag, unsigned *thrdaddr ); C-Run time 라이브러리를 지원하는 Thread 생성함수들이다. C-Run time 라이브러리를 지원한다는 뜻은 Thread내에서 C-Run time 함수를 사용했을경우 함수의..

Dev/Windows 2007.05.14

서버 개체 오류 'ASP 0177 : 800401f3'

무엇때문에 잘못됬는지는 모르겠지만.. 컴포넌트를 등록했는데도 자꾸 아래와 같은 에러가 난다. 서버 개체 오류 'ASP 0177 : 800401f3' Server.CreateObject 실패 /asp.asp, 줄 13 잘못된 클래스 문자열입니다. 꼬박 반나절을 뒤지고 찾아낸 결과.. 레지스트리의 HEKY_CLASSES_ROOT 에 읽기(쓰기) 계정이 현재 로그인된 계정밖에 없었다. 아래 사이트에서 힌트를 얻음.. http://support.persits.com/show.asp?code=PS01032622

Dev/Windows 2007.03.29

VB 지원중단..

MS 비주얼 베이직 지원 중단「올 것이 왔다!」http://www.zdnet.co.kr/news/enterprise/0,39024412,39134585,00.htm MS, 비주얼 베이직 지원 중단「비난 불구 강행」http://www.zdnet.co.kr/news/enterprise/0,39024412,39134657,00.htm Visual Studio.NET 2002, Visual Studio.NET 2003 이 나왔고 하반기이면 Visual Studio.NET 2005 가 출시가 되는 시점에서 1998년도에 런칭된 VB가 여태까지 자~알 버티고 있었다.그런데 이제 혹시나 하는 다음 버전의 미련을 슬슬 접어야 될듯 하다. 물론 개인적으로 주력으로 사용하고 있지는 않지만 MS개발툴 중에서는 Native ..

Dev/Windows 2005.03.23