Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #34116
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <square.steve@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.026 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'subject:Python': 0.05; 'python': 0.09; '"if': 0.09; 'subject:Help': 0.10; ':-)': 0.13; '(but': 0.15; 'tutorials': 0.15; '.dll': 0.16; 'gentle': 0.16; 'sdk': 0.16; 'subject:accessing': 0.16; 'pointer': 0.17; 'examples': 0.18; 'trying': 0.21; 'bit': 0.21; 'friend.': 0.22; "i'd": 0.22; "i've": 0.23; 'script': 0.24; 'header:User-Agent:1': 0.26; 'don?t': 0.27; 'interface': 0.27; "doesn't": 0.28; 'post': 0.28; 'implies': 0.29; 'install': 0.29; 'call.': 0.30; 'file': 0.32; 'received:74.125.82': 0.33; 'subject: .': 0.33; 'to:addr :python-list': 0.33; 'excel': 0.33; 'received:google.com': 0.34; 'text': 0.34; 'described': 0.35; 'direction': 0.35; 'expected': 0.35; 'really': 0.36; 'but': 0.36; 'message-id:@gmail.com': 0.36; 'received:74.125': 0.36; 'should': 0.36; 'option': 0.37; 'files': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'application': 0.40; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'your': 0.60; 'first': 0.61; 'more': 0.63; 'hints': 0.65; 'started.': 0.65; 'header:Reply-To:1': 0.68; 'reply-to:no real name:2**0': 0.72; 'headed': 0.84; 'concluded': 0.91; 'device.': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=jhhGGlfgZx7Xo57G49sUl0OAYtuR8hHnUa+33iegDmo=; b=fjSwD3jRgxDBXhyEQ66gHeXsCG209Nmq//LxKws9e7a1g0EMmf//XZKJ8767CMoSpJ JZjOhjgXUIgIsiK04AQiuULQxKIZAGvAvHruzDazgYeb2v549gDLVjsguj1VsbDXTsYU U7MPMcsMrd7/K1kFR2L8kFI8Ec0NlOgOL8wejhgDqt2LaYrnwgYwgvEbXViAPd89T/Xj 0qIEdW6GmApbgl2MfnLK9FkGKi9Rr9pDWGKFsRWAOQg3i9hYFauCZrPPjwWe9FqeYDF8 Fe/CTleR36j0uSYfWu2TYXN7xO9vgaxkqk7yUkIFFsHlNRPnY8QGTOto1e+IA/VFtJcl plEQ== |
| Date | Sat, 01 Dec 2012 09:51:02 +0000 |
| From | Steve Simmons <square.steve@gmail.com> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Help accessing COM .dll from Python |
| Content-Type | text/html; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | steve@bellissimmo.com |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.397.1354355467.29569.python-list@python.org> (permalink) |
| Lines | 64 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1354355467 news.xs4all.nl 6851 [2001:888:2000:d::a6]:39430 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:34116 |
Show key headers only | View raw
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font size="-1"><font face="Bitstream Vera Sans">First time post -
be gentle wi<font size="-1">th me :-)<br>
<br>
</font>I am trying to write a Python <font size="-1">script to
access a scanning d<font size="-1">evice. <font size="-1">I
have an SDK for t<font size="-1">he</font> <font
size="-1">scanner but the documentation is a <font
size="-1">bit limited and the supplier doesn't support
Python (but <font size="-1"><font size="-1">Python is
the best option for me <font size="-1">in the
current circumstances).</font></font> </font></font></font></font></font>
<br>
<br>
The SDK revolves around a .dll fi<font size="-1">le that <font
size="-1">is described as a 'COM Ob<font size="-1">ject'
but the text also implies that it can be ac<font
size="-1">cessed directly - "If you don’t use the COM
interface in your application and use the SDK files
directly like in VC++ then you don’t need to install
these files on the destination computer". If I look
inside the .d<font size="-1">ll (thanks PE<font
size="-1"> Explorer!), I see DllCanUnload,
DllGetClassObject, DllRegisterServer and
DllUnregisterServer in the 'Export' view. If I
look at <font size="-1">the 'Import' view, I can
see the names of a bunc<font size="-1">h of <font
size="-1">.dll files and </font></font>the
names of the <font size="-1">functions</font>/methods
I want to call. So I concluded that </font></font></font></font></font></font></font></font></font></font><font
size="-1"><font face="Bitstream Vera Sans"><font size="-1"><font
size="-1"><font size="-1"><font size="-1"><font size="-1"><font
size="-1"><font size="-1"><font size="-1"><font
size="-1"><font face="Bitstream Vera Sans"><font
size="-1"><font size="-1"><font size="-1"><font
size="-1"><font size="-1"><font
size="-1"><font size="-1">DllGetClassObject
<font size="-1">would be my
friend.</font></font></font></font></font></font></font></font></font></font></font>
</font></font><br>
<br>
<font size="-1">However, I've <font size="-1">read
various tutorials on using .dll and COM (ctypes,
comtypes, and the Python documentation) and I've
ended up <font size="-1">more confused than when
I started. <font size="-1">I expected to be
using COM but all the examples seem to revolve
around automating excel or out<font size="-1">look.<br>
<br>
<font size="-1">I'd be really grateful for
some hints on what direction I<font
size="-1"> should be head<font size="-1">ed
and a pointer to a relevant tutorial.</font></font></font></font>
</font></font></font></font><br>
<br>
<font size="-1">Simmo</font><br>
</font></font></font></font></font></font></font>
</body>
</html>
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Help accessing COM .dll from Python Steve Simmons <square.steve@gmail.com> - 2012-12-01 09:51 +0000 Re: Help accessing COM .dll from Python "Günther Dietrich" <gd.usenet@spamfence.net> - 2012-12-01 11:42 +0100
csiph-web