<html>
<body>
At 03:18 AM 12/6/2005, Amit Antebi wrote:<br>
<blockquote type=cite class=cite cite=""><font size=2>We want to combine
Visual Basic with Python.<br>
GUI will be in VIsual basic.<br>
Computation Engine will be in python.<br>
Which architecture do you recommend:<br>
<br>
1. COM - who will be client and who server, and why?<br>
2. Python API - access the python from VB using the python
API.<br>
3. Is there another way? DLL? Python Embedding<br>
<br>
Things to consider:<br>
<ol>
<li>The computation engine will need to work with big amounts of memory,
and we don't want to load them each time we access python. <br>
<li>Debugging is important.</font> </blockquote>
</ol>Heres how I've done that. I run a Python program either from a
command prompt (or IDE) for interactive debugging purposes, or as a
background process under scheduled tasks.<br><br>
The program watches for tasks from the GUI using sockets or some more
sophisticated layer on top of sockets, XMLRPC being one example, or
periodically queries a database or file to see if there is something to
do.</body>
</html>