From elwis@spray.se Mon Sep 10 13:25:29 2001 From: elwis@spray.se (elwis@spray.se) Date: Mon, 10 Sep 2001 12:25:29 Subject: [python-win32] Newbie with COM Message-ID: <156924655@spray.se> Hi there! I'm quiet much an absolute beginner with Python, mostly I've been using it for simple ODBC connections and so on to the Database at our office. My problem is that I bought the O'Reilly book about COM programming but yet, haven't managed to get one single, simple COM server to react with VisualB. All I recieve from VB is "Object doesn't have that method' -stuff. Obvisiouly A) My Python COM Server isn't running as it should or B) my 'def' isn't treated as it should. Does anyone have an 'idiotic proof totally lost' example of a COM server code that could help me out with my learning curve?? Regards Elvis 'the true king' _________________________________________s_p_r_a_y_ Här börjar Internet! Skaffa gratis e-mail och gratis Internet på http://www.spray.se Ring upp till 70% billigare med Spray Smart http://www.spray.se/smart/allman From Jim.Vickroy@noaa.gov Mon Sep 10 15:08:32 2001 From: Jim.Vickroy@noaa.gov (Jim Vickroy) Date: Mon, 10 Sep 2001 08:08:32 -0600 Subject: [python-win32] Newbie with COM References: <156924655@spray.se> Message-ID: <3B9CC960.CCF1F0D9@noaa.gov> Hello, Go to http://www.oreilly.com/catalog/pythonwin32/ Choose the *Examples* link, and download: ppw32_samples.zip It contains all manner of useful examples including COM. The COM examples, therein, work fine on my system. While you are there, you may wish to purchase the book; in my opinion, it is very good. Although it was written in the time of Python 1.5.2, everything seems to work fine on my Win 2k and Win 98 systems with Python 2.1. Hope this helps. elwis@spray.se wrote: > Hi there! > > I'm quiet much an absolute beginner with Python, mostly I've been using it for simple ODBC connections and so on to the Database at our office. > > My problem is that I bought the O'Reilly book about COM programming but yet, haven't managed to get one single, simple COM server to react with VisualB. All I recieve from VB is "Object doesn't have that method' -stuff. Obvisiouly A) My Python COM Server isn't running as it should or B) my 'def' isn't treated as it should. > > Does anyone have an 'idiotic proof totally lost' example of a COM server code that could help me out with my learning curve?? > > Regards > > Elvis 'the true king' > > _________________________________________s_p_r_a_y_ > Här börjar Internet! > Skaffa gratis e-mail och gratis Internet på http://www.spray.se > > Ring upp till 70% billigare med Spray Smart http://www.spray.se/smart/allman > > _______________________________________________ > Python-win32 mailing list > Python-win32@python.org > http://mail.python.org/mailman/listinfo/python-win32 From elwis@spray.se Wed Sep 12 09:41:26 2001 From: elwis@spray.se (elwis@spray.se) Date: Wed, 12 Sep 2001 08:41:26 Subject: [python-win32] generating exe Message-ID: <157770913@spray.se> Hi there everybody! I'm running into problems trying to generate .exe files from my simple scripts (including Tk). I tried py2exe which wasn't accepted since the "test.py" file I copied from the website had lines like 'from distutils.core import setup' and there were no distutils to import from. So, I tried McMillans installer and the builder.py which broke down on something saying' ImportError no Module named Installutils'. So, I suppose this tools take a lot of editing before they work, aren't there any easier way?? I'm running Activestate's 2.1.1 on NT4. Any suggestions would be nice, thanx n advance! Regards Stefan _________________________________________s_p_r_a_y_ Här börjar Internet! Skaffa gratis e-mail och gratis Internet på http://www.spray.se Ring upp till 70% billigare med Spray Smart http://www.spray.se/smart/allman From itamarst@yahoo.com Mon Sep 24 17:26:39 2001 From: itamarst@yahoo.com (Itamar S.-T.) Date: Mon, 24 Sep 2001 09:26:39 -0700 (PDT) Subject: [python-win32] Getting IP of DNS server Message-ID: <20010924162639.86631.qmail@web13006.mail.yahoo.com> Hi, Any idea how I can find out the IPs of the DNS server(s) my Windows machine is using from Python? Is it available in the registry, or from some win32 API? TIA. ===== Itamar Shtull-Trauring, itamar(at)shtull-trauring.org __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com From jens.jorgensen@tallan.com Mon Sep 24 19:21:39 2001 From: jens.jorgensen@tallan.com (Jorgensen, Jens) Date: Mon, 24 Sep 2001 13:21:39 -0500 Subject: [python-win32] Getting IP of DNS server References: <20010924162639.86631.qmail@web13006.mail.yahoo.com> Message-ID: <3BAF79B3.1020008@tallan.com> The information is there in the registry, under HKLM\SYSTEM\CurrentControlSet\Service\Tcpip\Parameters\Interfaces\\DhcpNameServer. This is in Win2K and using DHCP so it probably won't work in other OS version (eg. NT 4) or if you aren't using DHCP. Might I recommend to you my pyRegistry module for Win32 registry access. It's object-oriented and has a couple cool features. Check it out at http://www.ultraemail.net/~jbj1 Itamar S.-T. wrote: >Hi, > >Any idea how I can find out the IPs of the DNS >server(s) my Windows machine is using from Python? Is >it available in the registry, or from some win32 API? > >TIA. > >===== >Itamar Shtull-Trauring, itamar(at)shtull-trauring.org > >__________________________________________________ >Do You Yahoo!? >Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com > >_______________________________________________ >Python-win32 mailing list >Python-win32@python.org >http://mail.python.org/mailman/listinfo/python-win32 > -- Jens B. Jorgensen jens.jorgensen@tallan.com