Re: win32 service

2006-12-16 Thread g.franzkowiak
Tim Williams schrieb: > On 16/12/06, g.franzkowiak <[EMAIL PROTECTED]> wrote: >> Hi everybody, >> >> have a little problem with a service on Win32. >> >> I use a TCP server as service, but can't access from an other machine. >> Only local acce

Re: win32 service

2006-12-16 Thread g.franzkowiak
Tim Williams schrieb: > On 16/12/06, g.franzkowiak <[EMAIL PROTECTED]> wrote: >> Hi everybody, >> >> have a little problem with a service on Win32. >> >> I use a TCP server as service, but can't access from an other machine. >> Only local acce

win32 service

2006-12-16 Thread g.franzkowiak
Hi everybody, have a little problem with a service on Win32. I use a TCP server as service, but can't access from an other machine. Only local access is possible. The service starts like this: -> myService.py --username user --password password install <- followed by start The user is member

wx.EVT_TOOL_RCLICKED

2006-10-29 Thread g.franzkowiak
Hi everybody, I want use wx.EVT_TOOL_RCLICKED for an toolbar, but I've got no responcses under Linux. The following part works under MSW, but under Linux..., the "wx.EVT_TOOL_RCLICKED" generate nothing: tb.AddTool(TB_ID, './*.png',isToggle=True) self.Bind(wx.EVT_TOOL, self.OnToolLeftCl

ActiveX & parameters

2006-01-02 Thread g.franzkowiak
Hello everybody, my little problem resurfaced together with COM. The generated .py file contains the following function: def showApplication(self, show=defaultNameNotOptArg): return self._oleobj_.InvokeTypes(...,show) The value for "show" (defaultNameNotOptArg) must be True|False. I

PythonWin + console

2005-12-12 Thread g.franzkowiak
Hi everybody, it was a long way, have a runing COM connection, but wishing run it from the console. The COM part is embedded in the example 'createwin.py' from pywin/Demo but it operates only with "pythonwin /run 'test.py'". Is it possible to use that as an python thread and hide the pythonwin e

win32com 'catastrophic failure'

2005-12-05 Thread g.franzkowiak
I'm trying to interface to an .ocx file. After successfully running makepy over it, the following is my problem: com_error: (-2147418113, 'catastrophic failure', None, None) I found on http://support.microsoft.com/default.aspx?scid=kb;en-us;q146120 a problem with "COleControl::IsInvokeAllow

Re: popen2

2005-10-28 Thread g.franzkowiak
David Wahler schrieb: > g.franzkowiak wrote: > >>I start a process in my application with popen2.popen3('MyOtherProcess'). >>That's ok, but what can I do if the other process is running ? >>Can I fetch some information and start with that ? >> >>

popen2

2005-10-28 Thread g.franzkowiak
I start a process in my application with popen2.popen3('MyOtherProcess'). That's ok, but what can I do if the other process is running ? Can I fetch some information and start with that ? gerd -- http://mail.python.org/mailman/listinfo/python-list

python interpreter

2005-10-11 Thread g.franzkowiak
Hi everybody, my interest is for the internals of the Python interpreter. I've used up to now FORTH for something and this indirect interpreter is very smart. --- ASM --- NEXT: LODSW ; WA <- [IP] ;

Re: struct.unpack

2005-10-03 Thread g.franzkowiak
Peter Otten schrieb: > g.franzkowiak wrote: > > >>The dataObject was read from a named pipe as an byte stream >> >>state, dataObject = win32file.ReadFile(handle, nbytes, None) >>print repr(dataObject) >> ==> '\x01\x02\x03\x04\x00\x00\x00\x00\x00\x00

Re: struct.unpack

2005-10-03 Thread g.franzkowiak
Peter Otten schrieb: > g.franzkowiak wrote: > > >>tmpList = list(dataObject)[:4]) >>obj = tmpList[0]+tmpList[1]+tmpList[2]+tmpList[3]. > > > Have you tried just > > obj = dataObject[:4] > > without the intermediate list? If that failed, can you

Re: struct.unpack

2005-10-02 Thread g.franzkowiak
Fredrik Lundh schrieb: > "g.franzkowiak" wrote: > > >>I've read a pipe and store it in a object. >>My next step was the separation from 4 bytes with >>obj = string.join(list(dataObject)[:4] ==> '\x16 \x00 \x00 \x00' >>and the convert

struct.unpack

2005-10-02 Thread g.franzkowiak
Hello Everybody, I've read a pipe and store it in a object. My next step was the separation from 4 bytes with obj = string.join(list(dataObject)[:4] ==> '\x16 \x00 \x00 \x00' and the converting by value = struct.unpack('I', obj) generated the error "unpack str size does not match format" Unfort

Re: PyWin SendMessage

2005-09-30 Thread g.franzkowiak
Gonzalo Monzón schrieb: > g.franzkowiak escribió: > >> Thomas Heller schrieb: >> >> >>> "g.franzkowiak" <[EMAIL PROTECTED]> writes: >>> >>> >>> >>> >>>

Re: PyWin SendMessage

2005-09-29 Thread g.franzkowiak
Thomas Heller schrieb: > "g.franzkowiak" <[EMAIL PROTECTED]> writes: > > >>Thomas Heller schrieb: >> >>>"g.franzkowiak" <[EMAIL PROTECTED]> writes: >>> >>> >>> >>>>Hello everybody, >>>&g

Re: PyWin SendMessage

2005-09-29 Thread g.franzkowiak
Thomas Heller schrieb: > "g.franzkowiak" <[EMAIL PROTECTED]> writes: > > >>Thomas Heller schrieb: >> >>>"g.franzkowiak" <[EMAIL PROTECTED]> writes: >>> >>> >>> >>>>Hello everybody, >>>&g

Re: PyWin SendMessage

2005-09-29 Thread g.franzkowiak
Thomas Heller schrieb: > "g.franzkowiak" <[EMAIL PROTECTED]> writes: > > >>Hello everybody, >> >>I've tryed to use an interprocess communication via >>SendMessage on Windows. >>Unfortunately, nothing goes on >> >>###

PyWin SendMessage

2005-09-29 Thread g.franzkowiak
Hello everybody, I've tryed to use an interprocess communication via SendMessage on Windows. Unfortunately, nothing goes on # #! /usr/bin/env python import win32api, win32ui, win32con import struct, array """ typedef struct

Python win32com com_error: (-2147418113

2005-09-21 Thread g.franzkowiak
I'm trying to use a proprietary windows software with COM and win32com. The result is everytime the error message com_error: (-2147418113, 'Catastrophic failure', None, None) I've read this in some e-mails, but can't find the solution and I have not enough experience with Windows and COM. Can an

Re: interpret 4 byte as 32-bit float (IEEE-754)

2005-01-15 Thread G.Franzkowiak
Scott David Daniels schrieb: G.Franzkowiak wrote: Scott David Daniels schrieb: franzkowiak wrote: I've read some bytes from a file and just now I can't interpret 4 bytes in this dates like a real value. An extract from my program: def l32(c): return ord(c[0]) + (ord(c[1])<&

Re: interpret 4 byte as 32-bit float (IEEE-754)

2005-01-15 Thread G.Franzkowiak
Scott David Daniels schrieb: franzkowiak wrote: I've read some bytes from a file and just now I can't interpret 4 bytes in this dates like a real value. An extract from my program: def l32(c): return ord(c[0]) + (ord(c[1])<<8) + (ord(c[2])<<16) + (ord(c[3])<<24) ... value = l32(f.read(4))