1. 程式人生 > >在vc.net下,如何配置OpenOffice的SDK進行應用開發

在vc.net下,如何配置OpenOffice的SDK進行應用開發

這兩天一直在www.openoffice.org社群摸索,今天終於知道了在vc.net 2003下利用OpenOffice的SDK開發應用程式
在這裡和大家共享。。。

需求軟體:
  • MS Visual C++ Net 2003
  • OpenOffice SDK
  • OpenOffice.org 2.1.x 或者更高版本

軟體下載地址:

配置操作:

1.安裝 OpenOffice.

2.安裝l OpenOffice SDK

3.在OpenOffice SDK的安裝目錄下(<oo_sdk_path>)建立一個名稱為inludecpp目錄

4.開啟命令列程式(CMD)進入 <oo_sdk_path>/windows/bin目錄,然後執行如下命令:

cppumaker -BUCR -O <oo_sdk_path>/includecpp <office_programm_dir>/types.rdb 

5 配置VC++.net:
5.1. Tools ->Options->Projects->VC++ Directories -> Include Files Add /include directory and <oo_sdk_path>/includecpp

5.2. Tools ->Options->Projects->VC++ Directories -> Library files Add <oo_sdk_path>/windows/lib directory

5.3. Tools ->Options->Projects->VC++ Directories -> Executable files Add <office_programm_dir>/program directory (location where you installed the version of the OpenOffice)

5.4 Open the Project Settings

5.4.1 Change Configuration to all All Configurations (the combobox in the left corner of the window)

5.4.2 Add the additional libraries

Properties->Linker->ComandLine in the Additional Options tab the library files isal.lib icppu.lib icppuhelper.lib isal.lib isalhelper.lib ireg.lib irmcxt.lib stlport_vc71.li

OK!, 到這兒就完全配置好了。。。。