473,386 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

COM server / COM client

Dan
Does the COM server created with python have to be compiled? I have the
need to integrate database access but, I can not have any proprietary
software. Meaning no compiled programs built by me. So, if python can
do com clients and servers without compiling, Im good. But I don't know
if that is possible. The ctypes example implies that it must be
compiled using py2exe. I know the clients don't have to be compiled.
What about the server?

Mar 27 '06 #1
3 1525
Dan wrote:
Does the COM server created with python have to be compiled? I have the
need to integrate database access but, I can not have any proprietary
software. Meaning no compiled programs built by me. So, if python can
do com clients and servers without compiling, Im good. But I don't know
if that is possible. The ctypes example implies that it must be
compiled using py2exe. I know the clients don't have to be compiled.
What about the server?


Sounds like you are walking a "fine line" on the "no compiled programs
written by me" thing.

Py2exe doesn't REALLY compile python. Rather it PACKAGEs it into an
..exe file with any required external routines in library.zip. With
proper bundle option, you can put everything into the .exe file itself
(except for mscvrt71.dll). Just makes it easier to distribute and
you don't have to install Python. Using py2exe and Inno Setup (my
recommendation) makes it easier to distribute your program to multiple
computers.

That said, no you don't have to compile. If you don't create .exe
by using py2exe you must have Python on the machine and must set up
any supporting libraries (like ctypes) in lib/site-packages.

-Larry Bates
Mar 27 '06 #2
Dan
>>Sounds like you are walking a "fine line" on the "no compiled programs
written by me" thing.
Yeah, I hate it. I could have written a C++ server, client application
etc.. very easily. Instead, I have had to write javascript on the
client to embed in an html page to view, insert,delete etc.. SQL server
table over the intranet via ADO. But, requirements are requirements.
Besides, I am learning a lot and thats always good. We are integrators,
so our clients specifications are always vague and with an eye toward
leaving themselves "outs" whenever possible.
That said, no you don't have to compile. If you don't create .exe
by using py2exe you must have Python on the machine and must set up
any supporting libraries (like ctypes) in lib/site-packages.


That won't be a problem since all of the clients will be our own pc's
so we will be installing python on each.

What about activeX controls? Will I be able to create an activeX client
control using python for embedding into a web document, again without
compiling ? I know I could use Javascript to gain access to the python
server but I don't know if it will allow me to subscribe to the events
properly. In the ADO interfaces at least you can not receive the events
fired from the server via Javascript or VBScript. Thanks, Dan

Mar 27 '06 #3
Dan wrote:
Sounds like you are walking a "fine line" on the "no compiled programs
written by me" thing.
Yeah, I hate it. I could have written a C++ server, client application
etc.. very easily. Instead, I have had to write javascript on the
client to embed in an html page to view, insert,delete etc.. SQL server
table over the intranet via ADO. But, requirements are requirements.
Besides, I am learning a lot and thats always good. We are integrators,
so our clients specifications are always vague and with an eye toward
leaving themselves "outs" whenever possible.
That said, no you don't have to compile. If you don't create .exe
by using py2exe you must have Python on the machine and must set up
any supporting libraries (like ctypes) in lib/site-packages.


That won't be a problem since all of the clients will be our own pc's
so we will be installing python on each.

What about activeX controls? Will I be able to create an activeX client
control using python for embedding into a web document, again without
compiling ? I know I could use Javascript to gain access to the python
server but I don't know if it will allow me to subscribe to the events
properly. In the ADO interfaces at least you can not receive the events
fired from the server via Javascript or VBScript. Thanks, Dan

I guess I'm confused. You said "Meaning no compiled programs...".
ActiveX controls are compiled and Python is compiled. How come you
can install THOSE compiled programs but not application programs that
are compiled? To run ActiveX it has to be compiled/installed (it is
installed on the fly but it is still installing a compiled program).

-Larry Bates
Apr 4 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Matt | last post by:
I think this is the basic concept in ASP server-side development. My boss told me web application is NOT client-server application. I argued with him because browser is the client, and the server...
12
by: HarveyB | last post by:
I would like to generate non-modal popup windows from ASP.Net code-behind. I have tried using Client Side scripting like "function Test(){ window.open('test.htm',_blank,...
2
by: Microsoft | last post by:
I'm about to start converting my application from a old-style monolith exe (with flat files and limited database support for sharing some of the data) to a layered .NET SQL server version. I have...
15
by: Michael Rybak | last post by:
hi, everyone. I'm writing a 2-players game that should support network mode. I'm now testing it on 1 PC since I don't have 2. I directly use sockets, and both client and server do...
6
by: Ken Allen | last post by:
I am relatively new to .Net and C#, but I hav ebeen programing in other languages and done some COM work for a number of years. I am attempting to understand how to map an older program...
5
by: zorhel | last post by:
Hi. My clients will be IE, Mozilla and Opera in a Windows and *nix OS. So, my web app need to, from a server, send messages to a specific client (browser), send messages for all clients,...
0
by: Harley | last post by:
Hello, I am just learning the tcp/ip functions etc under vb.net so please look over me if this is obviouse. I have been all over looking into any functions that I didn't totaly understand and...
4
by: rs | last post by:
how I the client tell the server that the socket is closed? or this there an even that informs the server that the clients socket is close? Oh, I am using vb.net 2003 Thanks
4
by: jens Jensen | last post by:
Hello, I was given the task to build a .Net client that will talk to IBM integration server via HTTP post. The idea is that each http packet exchange should be authenticated via X09 "client...
2
by: nsaffary | last post by:
hi I hava a client/server program that run correctly when i run it in one computer(local) but when I run client on a one computer and run server run on another, connection does not stablish.(I set...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.