[python-win32] Starting a GUI app from AddIn server

2006-03-21 Thread Johannes Brunen
Hi, I'm facing the following problem: I have written an AddIn server which is called from a GUI application. After some action in the GUI app the function DoSomething of class CmdEvtHandlerStartApp is called. This works pretty fine. class AddInBase: """ Base class for CADdy++ AddIns.

Re: [python-win32] win32com and VS .Net

2005-08-09 Thread Johannes Brunen
EnvDTE.OpenFile(constants.vsViewKindTextView, theFile) print repr(theWindow) theWindow.Visible = 1 if __name__ == '__main__': main() "Alex Willmer" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > On Mon, 2005-08-08 at 14:23 +0200, Joha

[python-win32] win32com and VS .Net

2005-08-08 Thread Johannes Brunen
Hi, I have the following problem: I would like to control the MS Dev .Net 2003 Studio from a python script, i.e. I would like to open files, add files to projects etc. Has anyone successfully done something like this? Is it possible at all? I tried the makepy.py script on the 'Microsoft Develop

Re: [python-win32] COM server AddIn

2005-07-07 Thread Johannes Brunen
Hi Mark, "Mark Hammond" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Glad you spotted that - if you feel there is something I could add to the > docs or examples to make that error less likely in the future, please let > me > know. For me a well written example with suffic

Re: [python-win32] COM server AddIn

2005-07-07 Thread Johannes Brunen
Hi Mark, now I have made some progress! Using the win32traceutil worked well. However the real essential part was the addition of the _typelib_guid_ variable to the server class. Below, I have added the working example. Could you confirm that this is the proper way of using the modules? Two que

Re: [python-win32] COM server AddIn

2005-07-06 Thread Johannes Brunen
Hi Mark, unfortunately I do not make any progress. The trace collector gives me the following output. Object with win32trace dispatcher created (object=None) pythoncom error: Failed to call the universal dispatcher Traceback (most recent call last): File "C:\Programme\Python\Lib\site-packages

[python-win32] COM server AddIn

2005-07-05 Thread Johannes Brunen
Hi, I have a problem implementing a simple COM server AddIn which should satisfy a special COM interface provided by an application I'm using. The server application: CADdy.exe => type library CADdy.tlb The AddIn interface of CADdy.tlb: ICADdyAddIn From gencache.EnsureModule('{9C3BB401-114D-1

[python-win32] Newbee problem on dispatch interface

2005-06-20 Thread Johannes Brunen
Hi, I have a problem connecting to a COM server with a small test script using python 2.3.5 as well as 2.4.1: import win32com.client from win32com.client import gencache def main(): g1 = gencache.EnsureModule('{9C3BB401-114D-11D4-AC72-00105A4925FC}', 0, 1, 3) theCADdy = win32com.clie

[python-win32] Problem with gencache.EnsureModule

2005-06-06 Thread Johannes Brunen
Hi, First, I'm new to this list as well as new to python/pythonCom. I have tried to connect to a COM server installed on my machine with this little script: import win32com.client from win32com.client import gencache def main(): gencache.EnsureModule('{9C3BB401-114D-11D4-AC72-00105A4925FC}'