Gotcha. That makes perfect sense looking at the container references others made during my Googling adventures. Thanks!
Stefan Schukat wrote: > It seems that the ocx only works in a GUI environment. Perhaps you could > try to embed > the ocx in a pythonwin dialog which you create invisible since the > dialog is then > a control container > > see "Python24\Lib\site-packages\pythonwin\pywin\Demos\ocx\ocxtest.py" > > Stefan > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On > > Behalf Of gregarican > > Sent: Friday, July 07, 2006 1:37 PM > > To: python-list@python.org > > Subject: COM Makepy Question > > > > Using Pythonwin's COM Makepy utility I created a COM wrapper > > around an OCX file that's used to communicate with a > > magstripe card reader. The wrapper was created without > > incident and I can invoke any "get" type of method without a > > problem. But whenever I attempt to invoke any of the "set" > > type of methods I receive an error message that states: > > > > (-2147352567, 'Exception occurred.', (0, 'ctlUSBHID', 'Client > > Site not available', None, 1000398, -2146827890), None) > > > > Googling around I see that this error message indicates an > > ActiveX control that's being referenced without residing > > within a container. > > Not sure if this is something that I can fix myself within > > the Makepy COM wrapper or if I have to rely on the vendor > > shipping an updated OCX file. I did see a Python discussion > > thread where someone else ran into a similar problem and had > > to wait for the vendor to ship a revised OCX file. > > > > Dolphin Smalltalk has a similar COM wrapper utility and the > > same exact error occurs. The OCX file is ideally suited for > > Visual Basic but I don't have that compilation environment > > setup on my workstation to try out. > > > > Anyone familiar with such matters? I have contacted the > > vendor to try to initiate things on that end. But if there's > > something I can do to circumvent that route using Python I'd > > give it a go. > > > > -- > > http://mail.python.org/mailman/listinfo/python-list > > -- http://mail.python.org/mailman/listinfo/python-list