regsvr32 없이 dll or ocx or ax 등록하기 API로 Posted by 빵빵빵 2011/03/23 18:31 전산(컴퓨터)/PC-Windows 전산(컴퓨터)/PC-Windows regsvr32 없이 dll or ocx or ax 등록하기 실행하면서 ocx or dll or ax 등록하기 DllRegisterServer/DllUnregisterServer 함수는 Kernel32.dll에 있는 듯합니다. 출처 : http://csaint.tistory.com/archive/20091215 if(FAILED(OleInitialize(NULL))) return FALSE; HINSTANCE hLib = ::LoadLibrary((LPCTSTR)szDllPath); if(hLib <= NULL) { OleUninitialize(); return FALSE; } HRESULT (STDAPICALLTYPE* lpDllEntryPoint)(); if(bRegisterServer == TRUE) lpDllEntryPoint = (long (__stdcall *)(void))GetProcAddress(hLib, "DllRegisterServer"); else lpDllEntryPoint = (long (__stdcall *)(void))GetProcAddress(hLib, "DllUnregisterServer"); BOOL bRegServer = TRUE; if(lpDllEntryPoint) { if(FAILED((*lpDllEntryPoint)())) bRegServer = FALSE; } else bRegServer = FALSE; FreeLibrary(hLib); OleUninitialize(); return bRegServer; 2011/03/23 18:31 2011/03/23 18:31 Tags ocx 프로그램에서 등록하기, regsvr32 Trackback: 0 Comment: 0 이 글에는 트랙백을 보낼 수 없습니다