[python-win32] Problem on com server ony in a specifie application

2011-01-06 Thread Matteo Boscolo
Hi List, this is my first post .. I can't find a solution at this little scripts. if you run the test.vbs the scripts work very well .. but if I try to get it work under a thinkdesign (A cad package) I got an error in the test.comInit method .. this is the error that the cad give to me : Aut

Re: [python-win32] Problem on com server ony in a specifie application

2011-01-06 Thread Matteo Boscolo
Il 06/01/2011 19:08, Tim Roberts ha scritto: Matteo Boscolo wrote: I can't find a solution at this little scripts. if you run the test.vbs the scripts work very well .. but if I try to get it work under a thinkdesign (A cad package) I got an error in the test.comInit method .. this i

Re: [python-win32] Problem on com server ony in a specifie application

2011-01-06 Thread Matteo Boscolo
Il 06/01/2011 21:05, Tim Roberts ha scritto: Matteo Boscolo wrote: how can I understand how to fix this problem ? It's quite a strange behaviour, this is the method that fails, and it fails only if the argument is != None def comInit(self,obj=None): if obj=

Re: [python-win32] Problem on com server ony in a specifie application

2011-01-06 Thread Matteo Boscolo
lem...!??!? Regards, Matteo Il 06/01/2011 21:05, Tim Roberts ha scritto: Matteo Boscolo wrote: how can I understand how to fix this problem ? It's quite a strange behaviour, this is the method that fails, and it fails only if the argument is != None def comInit(self,obj=None):

Re: [python-win32] Problem on com server ony in a specifie application

2011-01-07 Thread Matteo Boscolo
Thanks in advance, Matteo Il 07/01/2011 18:47, Tim Roberts ha scritto: Matteo Boscolo wrote: I made the following test: I create a c# application that call the some method //code object obj = Activator.CreateInstance (Type.GetTypeFromProgID("t

Re: [python-win32] odbc under windows 7?

2011-01-22 Thread Matteo Boscolo
hi Gray, have you a 64 bit macine with python 32 bit installed on your pc ? if yes may be the problem it's there .. 64 bit macine have a different loaction for odbc you need to use a different odbc administrator, try to use the one under, C:\Windows\SysWOW64\odbcad32.exe Regards, Matteo Il 2

Re: [python-win32] How to specify parameters in a query using odbc

2011-02-02 Thread Matteo Boscolo
try: myQuery ="""your sql code """%( (‘foo’, ‘bar’)) and then cursor.execute(myQuery) regards, Matteo Il 01/02/2011 18:22, Tom Hawkins ha scritto: Hi,   I’m trying to

[python-win32] How to create a empty com object

2011-02-17 Thread Matteo Boscolo
Hi all, I have a property that need an empty comobject |C++ definition: HRESULT activeComponent( [out, retval] ITDComponent** pVal) HRESULT activeComponent([in] ITDComponent* pVal)| how can I do it with python ?? In vb6 i use the following code: pComponent.Document.activeComponent = Nothing Tha

Re: [python-win32] How to create a empty com object

2011-02-20 Thread Matteo Boscolo
s for nothing at http://msdn.microsoft.com/en-us/library/0x9tb07z.aspx I need to create an empty ITDComponent I think .. There isn't really any such thing... Cheers, Mark regards, Matteo From: "Mark Hammond" skippy.hamm...@gmail.com To: "Matteo Boscolo" matteo.bosc

Re: [python-win32] Python code for windows users???

2011-04-02 Thread Matteo Boscolo
Hi .. >PS: If I had my way I would have all of the users install python on their comps and provide the source code :) me too .. :-) bur as you know windows user just wont a setup to make it easy to install a sw .. For my openSource project PythonCAD i use pyInstaller .. + inno setup Both are

[python-win32] unable to register a python com server

2011-04-07 Thread Matteo Boscolo
Hi All, I have successfully compiled a win32com server script written in python with PyInstaller. now I'm going to redistribute this script but I can't register the dll .. on any windows machine .. I get the following message: The module " my module path" was loaded but the entry point DLLRe

Re: [python-win32] unable to register a python com server

2011-04-07 Thread Matteo Boscolo
thanks but unfortunately it does not solve the problem .. my machine is a 64 bit and my os is w7 my python version is 2.6 32bit .. could be this the reason of my troubles ? Regards, Matteo Il 07/04/2011 16:28, Chilkat Support ha scritto: Thank you for your email. The answer to your question

[python-win32] win32gui.SetParent method with pyqt

2011-05-03 Thread Matteo Boscolo
Hi All, I got a win mfc application and I have extended it win win32com using the pyqt as windows manager.. all work well but the two windows (pyqt diaolog and mfc application ) are in the some level but I need that the pyqt dialog is modal to the mfc application .. I use this function to se

Re: [python-win32] win32gui.SetParent method with pyqt

2011-05-03 Thread Matteo Boscolo
msg.setIcon(QMessageBox.Warning) elif type=="error": msg.setIcon(QMessageBox.Critical) else: msg.setIcon(QMessageBox.Information) msg.exec_() .. ... the ClientInterface in this case is an hidden object that wrap around the mfc main application.

Re: [python-win32] Connecting to Python COM server from Excel VBA does not work - Windows 7

2011-07-22 Thread Matteo Boscolo
Hi, i use your script with this vbs: dim PythonUtils Set PythonUtils = CreateObject("PythonDemo.Utilities") call PythonUtils.add_watermark("d:\pippo.pdf","pluto_pluto","d:\pippo.pdf") and it works well on win7 64Bit May be reinstalling python, or win32com could be the right choice Regar

[python-win32] Com Add In error : _QueryInterface_ with unsupported IID

2011-08-18 Thread Matteo Boscolo
Hi all, I have done an addin fro a cad application I get this error from win32Traceutils : Object with win32trace dispatcher created (object=None) in ._QueryInterface_ with unsupported IID ISwAddin ({DA306A0D-EAC5-4406-8610-B1DA805D9270}) in ._QueryInterface_ with unsupported IID ISwPointInfer

Re: [python-win32] Questions about deploying COM server via py2exe

2011-08-19 Thread Matteo Boscolo
Hi Kevin , Il 18/08/2011 17:10, Kevin Walzer ha scritto: Hi all, I'm working on a Tkinter app that is being deployed to Windows via py2exe for wrapping and InnoSetup for its installer. In order to provide a similar scripting capability to the app that is present in its Mac version, I've made

Re: [python-win32] Questions about deploying COM server via py2exe

2011-08-19 Thread Matteo Boscolo
Hi Kevin, run this script and it will be registered for debug .. run the win32traceutil.py as mentioned in the following link : http://www.boscolini.eu/Boscolini/index.php?option=com_content&view=article&id=62%3Apython-win32debug-tutorial&catid=38%3Aprogramming&Itemid=55&lang=en

Re: [python-win32] Questions about deploying COM server via py2exe

2011-08-20 Thread Matteo Boscolo
Hi Kevin, Il 20/08/2011 20:30, Kevin Walzer ha scritto: nfortunately, this means my best option is probably to move ahead without COM support. Try with the pyqt we use it with the main loop opened and it works very well here you get a basic example: from PyQt4.QtCore import * from PyQt4.QtG

Re: [python-win32] DCOM - Client machine without Python installation

2011-11-02 Thread Matteo Boscolo
I think that you have to compile it with py2exe and install it on the client machine regards, Matteo Il 01/11/2011 16:22, m b ha scritto: Hello, I successfully created some COM objects and I am using them through Excel on a single machine. I would like to leave the code (and python) on a serv

[python-win32] Loose com pointer

2011-12-06 Thread Matteo Boscolo
Hi all, I need some help or idea to a com problem.. I got this class: class foo(object): def setComObject(comObject): self.comO=comObject #This is a com object from a cad application def showForm(self) # use the self.comO to read some information from the cad applicatio

Re: [python-win32] How to create a empty com object

2012-06-22 Thread Matteo Boscolo
, Matteo Boscolo wrote: I did some other search I try to pass a object() to the activeComponent but the active component need a COM VARIANT.. there is any way to create a null COM VARIANT ? or to pass a c++ NULL equivalent object ? win32com automatically creates a variant - if you pass None, it

Re: [python-win32] How to create a empty com object

2012-06-22 Thread Matteo Boscolo
AM, Matteo Boscolo wrote: I did some other search I try to pass a object() to the activeComponent but the active component need a COM VARIANT.. there is any way to create a null COM VARIANT ? or to pass a c++ NULL equivalent object ? win32com automatically creates a variant - if you pass None

[python-win32] problem After compiling with py2exe on a com class

2012-07-16 Thread Matteo Boscolo
Hi all, I got a com server that is crated inside a cad application. if i run the following code(That is a method of my com class): def showWindows(self): """ show a qt windows with a button """ try: logging.info("showWindows .") nD

Re: [python-win32] problem After compiling with py2exe on a com class

2012-07-16 Thread Matteo Boscolo
Il 17/07/2012 03:19, Mark Hammond ha scritto: On 17/07/2012 8:37 AM, Matteo Boscolo wrote: Hi all, I got a com server that is crated inside a cad application. if i run the following code(That is a method of my com class): def showWindows(self): """ sh

[python-win32] how can I do marshall.ReleaseComObject in python ??

2012-09-10 Thread Matteo Boscolo
Hi All, I'm Working on a cad program using the it's com interface I have a python com object in witch I call a method as follows .. props=ent.Properties(True) #Ent is a IDocument this method is working well, and return a tuple of ITDProperty that are the property of the document.

Re: [python-win32] how can I do marshall.ReleaseComObject in python ?? [SEC=UNCLASSIFIED]

2012-09-11 Thread Matteo Boscolo
ax: +61 2 6253 3277 Australian Communications & Media Authority email: andrew.macint...@acma.gov.au <mailto:andrew.macint...@acma.gov.au> http://www.acma.gov.au/ *From:*python-win32 [mailto:python-win32-bounces+andrew.macintyre=acma.gov...@python.org] *On Behalf Of *Matteo Boscolo

Re: [python-win32] how can I do marshall.ReleaseComObject in python ?? [SEC=UNOFFICIAL]

2012-09-12 Thread Matteo Boscolo
y/gc.html - Randy Syring Development & Executive Director Level 12 Technologies <https://www.lev12.com/> Direct: 502-276-0459 Office: 502-212-9913 Principled People, Technology that Works On 09/11/2012 09:35 AM, Matteo Boscolo wrote:

[python-win32] info on _GetInterfaceCount

2012-09-28 Thread Matteo Boscolo
this is the log of part of my application DEBUG:root:__DEL__ DEBUG:root:pythoncom._GetInterfaceCount(): 4 DEBUG:root:pythoncom._GetGatewayCount(): 0| DEBUG:Root:pythoncom.CoUninitialize()| DEBUG:root:pythoncom._GetInterfaceCount(): 4 DEBUG:root:pythoncom._GetGatewayCount(): 0 as you can see

Re: [python-win32] info on _GetInterfaceCount

2012-10-01 Thread Matteo Boscolo
27;long'>, 'next': , 'ImportError': 'exceptions.ImportError'>, 'chr': , 'xrange': , 'type': , '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object;

Re: [python-win32] VARIANT parameter

2012-10-12 Thread Matteo Boscolo
sometimes you need a combination of variant type like win32com.client.VARIANT(VT_VARIANT | VT_NULL,None) it's better to pass tuple instead of list .. may be this could help .. regards, Matteo Il 12/10/2012 13:13, Johannes Frank ha scritto: Hello, I am trying to access an AutoCAD clone, intel

[python-win32] hoto cast pyobject to ccompnt

2015-11-26 Thread Matteo Boscolo
Hi I'm extending python with a cpp code in my cpp code I have my function that recive a com objetc from python into args from here I'm not able to cast such an object into a ccompnt static PyObject * connect(PyObject * self, PyObject * args) { PyObject * pyApplication; CComPtr

Re: [python-win32] hoto cast pyobject to ccompnt

2015-11-28 Thread Matteo Boscolo
Il 28/11/2015 08:30, Tim Roberts ha scritto: On Nov 26, 2015, at 11:34 PM, Matteo Boscolo wrote: in my cpp code I have my function that recive a com objetc from python into args from here I'm not able to cast such an object into a ccompnt static PyObject * connect(PyObject * self, PyO

Re: [python-win32] hoto cast pyobject to ccompnt

2015-11-28 Thread Matteo Boscolo
Il 28/11/2015 08:30, Tim Roberts ha scritto: On Nov 26, 2015, at 11:34 PM, Matteo Boscolo wrote: in my cpp code I have my function that recive a com objetc from python into args from here I'm not able to cast such an object into a ccompnt static PyObject * connect(PyObject * self, PyO

Re: [python-win32] hoto cast pyobject to ccompnt

2015-11-28 Thread Matteo Boscolo
pUnk = (IUnknown*)pyApplication; — Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32 sorry i did a mistake your cast seems to b

Re: [python-win32] hoto cast pyobject to ccompnt

2015-11-28 Thread Matteo Boscolo
Il 28/11/2015 09:08, Matteo Boscolo ha scritto: pUnk = (IUnknown*)pyApplication; — Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-w

[python-win32] Dispatch multi instance of the some com server

2018-07-16 Thread Matteo Boscolo
know that there is some registry setting to tell to windows that he have to create each time a new instance .. but I can't find any hint on the web. any help will be very appreciated regards, Matteo -- *OmniaSolutions* /*Matteo Boscolo* Technical Manager/ Cell. +39.327.152504

Re: [python-win32] Dispatch multi instance of the some com server

2018-07-19 Thread Matteo Boscolo
Matteo Boscolo wrote: we have an issues with our com server (exe) . we dispatch it with dispatchEx to be sure that every time we dispatch it a new instance of the com server will be created. but it dose not work. when we dispatchex it the program get the live instance instead of creating a

[python-win32] How To Implement CoSuspendClassObjects

2018-11-19 Thread Matteo Boscolo
can anyone point me on how to use this function ? and if it's implemented in win32com ? best regards, Matteo -- *OmniaSolutions* /*Matteo Boscolo* Technical Manager/ Cell. +39.327.1525045 Fax. +39.041.8623730 t...@omniasolutions.eu Skype: matt

[python-win32] python 3.8 Alternative of py2exe for com server

2022-12-15 Thread Matteo Boscolo
Dear list there is any alternative to build a com server and freeze it in python 3.8 regards, Matteo ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32