BCB6에 VirtualTreeview 설치하는 것이 생각보다 쉽지 않네요.
직접 설치하면서 정리했습니다. 도움이 되시기를...
사이트:
http://www.lischke-online.de/VirtualTreeview/VT.php
1. Download
-Windows XP Theme Manager
-Virtual Treeview main distribution
-Borland C++ Builder Packages
2. Unzip and Copy
-ThemeManager(BCB6.bpk) 관련파일들은 Theme Manager의 Packages 폴더로 copy
-나머지 VirtualTrees(BCB6.bpk) 관련파일들은 VirtualTreeview의 Packages 폴더로 copy
3. Theme Manager Compile & Install
-ThemeManagerBCB6.bpk open & compile & install
-아래와 같은 오류는 component가 설치되어 있지 않은 시스템에서 발생합니다.
-[Linker Fatal Error] Fatal: Unable to open file 'TB2K_CB6.LIB'
-Project-Edit Option Source 에서 TB2K_CB6.LIB 삭제
-Close all
-Reopen, Compile, Install
4. VirtualTreeview Compile & Install
-VirtualTreesBCB6.bpk open & compile & install
-아래와 같은 오류는 설치 패키지와 다른 폴더에 설치할 때 발생합니다.
-[Pascal Fatal Error] VirtualTrees.pas(78): File not found: 'ThemeSrv.dcu'
-[Linker Fatal Error] Fatal: Unable to open file 'VIRTUALTREESBCB6.OBJ'
-Project-Options-Directories/Conditionals
-Include Path와 Lib Path에 Theme Manager 폴더 추가
-아래와 같은 오류는 component가 설치되어 있지 않은 시스템에서 발생합니다.
-[Linker Fatal Error] Fatal: Unable to open file 'TB2K_CB6.LIB'
-Project-Edit Option Source 에서 TB2K_CB6.LIB 삭제
-Close all
-Reopen, Compile, Install
5. VirtualTreesBCB6D.bpk Compile & Install
-VirtualTreesBCB6D.bpk open & compile
-[Pascal Fatal Error] VirtualTreesReg.pas(17): File not found: 'ColnEdit.dcu'
-[Linker Fatal Error] Fatal: Unable to open file 'VIRTUALTREESREG.OBJ'
-Project-Edit Option Source 에서 PFLAGS의 마지막에 -LUdesignide 추가
-아래와 같은 오류는 component가 설치되어 있지 않은 시스템에서 발생합니다.
-[Linker Fatal Error] Fatal: Unable to open file 'TB2K_CB6.LIB'
-Project-Edit Option Source 에서 TB2K_CB6.LIB 삭제
-Close all
-Reopen, Compile, Install
6. 소스 수정 - 설치 후 프로그램에서 사용할 때 발생
-[C++ Error] VirtualTrees.hpp(13): E2209 Unable to open include file 'UxTheme.hpp'
-[C++ Error] VirtualTrees.hpp(14): E2209 Unable to open include file 'TmSchema.hpp'
-[C++ Error] VirtualTrees.hpp(15): E2209 Unable to open include file 'ThemeSrv.hpp'
-프로젝트 옵션에서 Include Path에 ThemeManager 폴더 추가
-[C++ Error] uxtheme.h(176): E2146 Need an identifier to declare
-[C++ Error] uxtheme.h(546): E2146 Need an identifier to declare
-typedef enum THEMESIZE -> typedef 삭제(enum THEMESIZE)
-typedef enum PROPERTYORIGIN -> typedef 삭제(enum PROPERTYORIGIN)
*개인적으로는 5번 부분 해결방법을 찾는데 오래 걸렸습니다. 5번이 안되면 디자인 타임에 component가 보이지 않습니다.
http://kims-family.pe.kr/blog/youngmin/index.php?pl=67