Hi Joerg,  Laurent,

>> to load the pyuno.dll using LoadLibrary() function and call the initpyuno() 
>> function.
>> 
>> I change the makefile, now the pyuno_loadwrapper.obj has been built,
>> 
>> but I don't know how to generate the wrapper pyuno.pyd shared library using 
>> the pyuno_loadwrapper.obj .
>> 
>> Could you give me some advice?
> just write the platform dependent target yourself, it must be something like
> 
> $(DLLDEST)$/pyuno.pyd : $(SLO)/pyuno_loadwrapper.obj
> link /DLL /NODEFAULTLIB $(OBJS) /OUT:$@

Thank you very much.

The pyuno.pyd is generated.

There is nothing worng when I run "dmake runtest" in the testtools module.

Then I build installation sets and install openoffice,

 Start the office and choose Tools/Macros/Run 
macro/OpenOffice.orgMacros/pythonSamples/TableSample/createTable, It's ok

I think the office process can load the pyuno.dll by usinig the pyuno.pyd .

But there are  two problems yet ( hope they are the last two problems ): 

1. when I rebuild the pyuno module,  the pythonloader.uno.dll can't be 
registed, 
           
            then I copy the pyuno\wntmsci10.pro\bin\pyuno.dll to 
solver\680\wntmsci10.pro\bin,

            the pythonloader.uno.dll can be registed.

            I don't know why?

2.when I start the office and add the pyuno_hello_world.zip from the 
pyuno-doc.zip by using Tools/Package Manager,

            there is an exception( ImportError ) : No module named os

            after I deleted the line "import os" in the file pythonloader.py 
and unhelper.py in OpenOffice.org 2.1\program.

            There is nothing wrong when I rerun the step and the createtable 
macro.

            I think I can delete the line "import os" in the file 
pythonloader.py and unhelper.py before I rebuild the pyuno module.

Any good ideas?

Thanks
Liyuan

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to