Re: [python-win32] help with python COM server needed

2008-10-03 Thread aivars
Thanks, Tim, Your suggestions are OK but the code works called from IDLE - It does not work when called from VB as a COM server. Mark Hammond's example works for me perfectly. I cannot see what I am doing wrong. This is only a trial version and is definitely ugly. The ReturnAmount will take argum

Re: [python-win32] win32console attach problems

2008-10-03 Thread Tim Roberts
Stian wrote: > > What error do you get? MSDN describes several different error returns. > Actually I was wrong. The first error is "Handle is invalid". Then all > following errors are "Access is denied.", which seems to be the same > error I get when a console is already attached. But if this was

Re: [python-win32] win32console attach problems

2008-10-03 Thread Stian
> What error do you get? MSDN describes several different error returns. Actually I was wrong. The first error is "Handle is invalid". Then all following errors are "Access is denied.", which seems to be the same error I get when a console is already attached. But if this was the case - shouldn't

Re: [python-win32] help with python COM server needed

2008-10-03 Thread Tim Roberts
aivars wrote: > Hello, > basically I rewrote an example by Mark Hammond trying to create a > simple trial COM server as per his Python programming on Win32 book > The problem is that when run from VB6 (Excel VBA) it gives me an error > > exceptions.typeerror > ReturnAmount() takes no arguments (1 g

[python-win32] help with python COM server needed

2008-10-03 Thread aivars
Hello, basically I rewrote an example by Mark Hammond trying to create a simple trial COM server as per his Python programming on Win32 book The problem is that when run from VB6 (Excel VBA) it gives me an error exceptions.typeerror ReturnAmount() takes no arguments (1 given) Google search gives

Re: [python-win32] win32console attach problems

2008-10-03 Thread Tim Roberts
Stian wrote: > > > I'm experiencing concurring problems when attempting to attach to a > console using the PyWin32 win32console. I have an application which > may attach to a console, send ctrl+c to it and then detach - using > win32console. If I do this "too soon" after the console is started the

[python-win32] win32console attach problems

2008-10-03 Thread Stian
Hi, I'm experiencing concurring problems when attempting to attach to a console using the PyWin32 win32console. I have an application which may attach to a console, send ctrl+c to it and then detach - using win32console. If I do this "too soon" after the console is started the AttachConsole fails,

[python-win32] DDE advise

2008-10-03 Thread mani sabri
Hello everyone Does anybody know how to use a DDE server that implements Advise mechanism instead of Request? Best regards Mani ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32