Index of /www001/src/ports/textproc/openvanilla-modules/work/openvanilla-0.7.2.20070514/Experiments/VisualBasic

      Name                    Last modified       Size  Description

[DIR] Parent Directory 14-Jan-2008 16:17 - [   ] OVCIN.cpp 14-May-2007 12:23 4k [   ] OVCIN.h 14-May-2007 12:23 3k [   ] OVCandidateList.cpp 14-May-2007 12:23 2k [   ] OVCandidateList.h 14-May-2007 12:23 1k [   ] OVFileHandler.cpp 14-May-2007 12:23 1k [   ] OVFileHandler.h 14-May-2007 12:23 1k [   ] OVIMPOJ-Holo.cpp 14-May-2007 12:23 5k [   ] OVIMPOJ-Holo.h 14-May-2007 12:23 2k [DIR] OVIMPOJ-Holo/ 14-Jan-2008 16:17 - [   ] OVIMPOJ.def 14-May-2007 12:23 1k [   ] OVStringToolKit.cpp 14-May-2007 12:23 2k [   ] OVStringToolKit.h 14-May-2007 12:23 1k [   ] OVVB-POJ-Holo.cpp 14-May-2007 12:23 6k [DIR] OpenVanilla/ 14-Jan-2008 16:17 - [   ] POJ-Holo.cpp 14-May-2007 12:23 9k [   ] POJ-Holo.h 14-May-2007 12:23 1k [   ] POJForm.frm 14-May-2007 12:23 3k [   ] POJForm.frx 14-May-2007 12:23 3k [   ] POJTest.bas 14-May-2007 12:23 1k [   ] make.bat 14-May-2007 12:23 1k

== How to Build [=Experiment/Visual Basic] ==

Preparation Work

0 check out the path [=trunk/Experiments/VisualBasic] (it's self sufficient, no other dependencies needed)
0 *copy everything, including the sub-diretories, to [=C:\OVVBPOJ], make sure the case is right*
0 before you go, check if [=C:\OVVBPOJ\OpenVanilla] and [=C:\OVVBPOJ\OVIMPOJ-Holo] exist and have files within it

Build

0 click "Start Menu" and go to "MS VC++ Toolkit", there is a Command line environment menu item, click on it
0 you'll enter Windows's command line console, with all VC++ environment variables properly set
0 go to [=C:\OVVBPOJ]
0 type [=make.bat]
0 after the build process, an [=OVIMPOJ.DLL] should be there

Importing Forms and Modules in Visual Basic

0 進 MS Word -> 工具 -> 巨集 -> Visual Basic 編輯器
0 找到 Normal.dot
0 在上面點右鍵,選匯入
0 把 C:\OVVBPOJ\POJForm.frm , .frx, .bas 三個檔案匯入
0 離開 Visual Basic 編輯器
0 選工具 -> 巨集... -> 然後應該會看到巨集清單
0 選那個 ShowPOJ 就行了