OCX파일은 컴파일이 끝나면 자동으로 등록됩니다.그러나 프로그램을 배포할 때는 설치프로그램에서 OCX파일을 등록해야 합니다. OCX파일의 등록은 레지스트리에 OCX프로그램의 키값을 넣음으로서 하게 됩니다.OCX의 키값을 Registry에 등록하는 프로그램은 다음과 같습니다.// this wouldn't work for a dynamically linked Regular DLL// strDllPath는 CString 타입의 변수로 OCX의 전체 패스 및 파일이름이 들어값니다.HINSTANCE h = ::LoadLibrary(strDllPath);if(h == NULL) {CString msg;msg.Format("%s not Found.", strDllPath);AfxMessageBox(msg);retur..