Hi all,
I'm trying to make a python com server and build it with pyInstaller to get a com dll .

My class is :
#comserver.py
import win32com.client
class comtest(object):
    _reg_clsid_ = "{CAB0ED28-43C2-4DAA-AF28-67B27FCCD581}"
    _reg_desc_ = "python com test interface"
    _reg_progid_ = "Python.comtest"
    _public_methods_ = ['getValue','setValue']
    def __init__(self):
        self.value=0
    def getValue(self):
        return str(self.value)
    def setValue(self,value):
        self.value=value

if __name__=='__main__':
    import win32com.server.register
    win32com.server.register.UseCommandLine(comtest)

I use the following command to build the dll
python MakeCOMServer.py comserver.py
and
python python Build.py drivecomserver.spec # to build the dll

The dll is buided correctly,
but when I try to register it with the regsvr32 from cmd line I get an error thet tells that the dll is not com ...

What I did wrong ?
Regards,
Matteo




--
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to