Hola Cristian! Cristian Galinelli escribió:
Yes... I´m try to use api and can´t find some samples. The world is more than java. but....
with the UNO C++ API you can "Write Once, Build Anywhere" OOo API is designed to be "language independent", which means there are different language bindings for the very same API. And the OOo SDK comes with development tools that let you build in different platforms using the same make file, so you can really "Write Once, Build Anywhere"
I use Xharbour (like C++) with win and linux.
I know nothing about xHarbour, but these C++ examples use only OOo API http://www.ArielConstenlaHaile.com.ar/ooo/temp/cpp_examples.zip I tested them all on Linux and Windows ( TextDocuments_cpp is a C++ version of the Java examples on SDK/examples/DevelopersGuide/Text *BUT* I failed linking it on Windows due to the stlport; I will have to ask Jürgen, but he's on holidays now). To build them you need the SDK environment (or know how to do it by yourself ;-) [1]) Regards Ariel [1] even without a make file, I can build my c++ examples on *Linux* typing the following on the console [/home/ariel/openoffice.org2.4_sdk/include has includes for ALL available types, done with the cppumaker tool; otherwise wont compile], I didn't try yet on Windows mkdir obj gcc \ -c \ -O2 \ -fpic \ -I. \ -I/home/ariel/openoffice.org2.4_sdk/include \ -I/opt/openoffice.org2.4_sdk/include \ -I/opt/openoffice.org2.4_sdk/include/stl \ -Ihelper/ \ -DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/include/c++/4.2.1 \ -oobj/tester.o tester.cxx\ #####################################################################################33 mkdir bin g++ \ -lsalcpprt -Wl,--no-whole-archive \ -L/opt/openoffice.org2.4_sdk/linux/lib \ -L"/etc/openoffice.org2.4/program" \ -o bin/_tester \ obj/tester.o \ -luno_cppuhelpergcc3 \ -luno_cppu \ -luno_salhelpergcc3 \ -luno_sal \ -lstlport_gcc \ -Wl,-rpath helper/lib -Lhelper/lib -lariel_uno_tools cp /opt/openoffice.org2.4_sdk/linux/bin/unoapploader bin/tester -- Ariel Constenla-Haile La Plata, Argentina [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.ArielConstenlaHaile.com.ar/ooo/ "Aus der Kriegsschule des Lebens - Was mich nicht umbringt, macht mich härter." Nietzsche Götzendämmerung, Sprüche und Pfeile, 8. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]