Does anyone have any experience using Python and ctypes to interface
with one of the Mightex USB cameras? I am following the CPP code
example and so far I think I've done pretty well talking to the dll.
I am able to get serial number information back from the camera,
however I am not sure if I'm u
On Sep 20, 11:30 am, Tim Golden wrote:
> On 20/09/2010 16:15, Greg Miller wrote:
>
> > I'm trying to get the following code converted to Python...and am
> > stuck
>
> > if(GetMessage(&msg.NULL,NULL,NULL))
> > {
> > if(msg.message == WM_TI
I'm trying to get the following code converted to Python...and am
stuck
if(GetMessage(&msg.NULL,NULL,NULL))
{
if(msg.message == WM_TIMER)
{
TranslateMEssage(&msg);
DispatchMessage(&msg);
}
}
I think GetMessage is a canned C or C++ function, and I'm not sure
. Thanks for any information.
Greg Miller
--
http://mail.python.org/mailman/listinfo/python-list
Thanks again, I'll look into this method.
Greg Miller
--
http://mail.python.org/mailman/listinfo/python-list
Thank you for all your suggestions. I ended up casting the string to
unicode prior to inserting into the database.
Greg Miller
--
http://mail.python.org/mailman/listinfo/python-list
deDecodeError: 'utf8' codec can't decode bytes in position 13-18:
unsupported Unicode code range
does anyone have any idea on what could be going wrong? The string
that I store in the database table is:
'Keinen Text für Übereinstimmungsfehler gefunden'
I thought that all st
Thank you for the information, when I launched the Reader on the actual
hardware it launched quickly. I think I just have too much running on
my application PC. I will consider starting an AcroReader app however.
Greg
--
http://mail.python.org/mailman/listinfo/python-list
0_en.pdf"')
I'm going to give your method a try to see if it launches any quicker.
Thanks again.
Greg Miller
--
http://mail.python.org/mailman/listinfo/python-list
Currently I am launching adobe reader using the following call:
os.system("path.file.pdf")
this works fine for opening the pdf doc at the beginning. We would like
to enhance this and open the document to either a page or a nameddest
in the doc. The syntax for that in the DOS command prompt world i
That code works great, and is a tad bit cleaner than what I came up
with, thanks again.
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for the information, I stumbled across that page yesterday. It
seems all the problems with this are solved. The executable works just
like the Python version. Now I have to come up with an algorithm to
parse through the output data to come up with the version numbers.
Thanks for all your
I tried the code snippet using win32api.GetFileVersionInfo(), what I
get now is the following when running on the executable machine:
. . . FileFlagsMask => 63
FileType => 2
FileVersionMS => 65536
FileVersionLS => 1
Signature => -17890115
FileSubtype => 0
FileFlags => 0
ProductVersionLS => 1
FileD
I didn't see the earlier post, thanks for the resend. The firefighting
is just about over, I have to find the machine owner to get permission
to try the code. Then back to the dll version battle. If I can keep
away from dealing with the ctypes code I will. I'll see how this works
for me. Thank
Unfortunately I have a "fire" to put out with a patch to the existing
machine code, I'll get back to looking into the problem a little later.
Thanks very much for you assistance with this! I really didn't look
into the GetFileVersionInfo, can I assume that is a cytypes function?
--
http://mail.
line 157 is in fact where the traceback says the failure is:
File "autoStart.py", line 241, in test
File "wmib.pyc", line 157, in ?
File "win32com\client\__init__.pyc", line 73, in GetObject
File "win32com\client\__init__.pyc", line 88, in Moniker
com_error: (-2147221020, 'Invalid syntax', None, N
I put you code snippet into my code, running it from the desktop PC
gave me the following output ( I added a print statement ):
. . . winmgmts:
T i.Caption is \\rocps00101\ROCPR001
T i.Caption is \\ROCPS00101\ROCPR024
T i.Caption is \\ROCPS00101\R
The two machines are both running Windows XP, the desktop is running XP
Pro, the "virgin" PC is running XP embedded. I would say the biggest
difference is that the embedded machine has only the py2exe executable
running/installed, while the desktop has the full python24
installation. I get no bui
Hello again, I put the executable on the "virgin" PC today. I am using
the wmi(b) that you gave me. The error that I am receiving now is:
File "autoStart.pyc", line 241, in test
File "wmib.pyc", line 157, in ?
File "win32com\client\__init__.pyc", line 73, in GetObject
File "win32com\client\__ini
Thanks for the tweaked code, it worked on my desktop. The acid test
will be when I put it on one of the "virgin" PC's ( no python
installed, just running the py2exe executable ) that run the machine.
I won't be getting one of those until later in the week, but I'm hoping
that since it cleared the
I have a .DLL that I am extracting the file version from using wmi.py.
The specific code is:
c = wmi.WMI()
for f in
c.CIM_DataFile(Name="c:\\glossersdmsservices\\bin\\glosscmanager.dll"):
sdmsver = f.Version
this works fine when running the application as a python file, when I
I just discovered that a few minutes ago, thanks.
--
http://mail.python.org/mailman/listinfo/python-list
22 matches
Mail list logo