<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial color=#800000 size=2><SPAN
class=296304412-06062004>Actually, embedding the interpreter is quite
simple.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#800000 size=2><SPAN
class=296304412-06062004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#800000 size=2><SPAN class=296304412-06062004>If for
some reason you don't want to do this, you can use the windows "LoadLibrary"
api.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#800000 size=2><SPAN
class=296304412-06062004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#800000 size=2><SPAN class=296304412-06062004>For
more info on runtime loading of libraries and using them:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#800000 size=2><SPAN class=296304412-06062004><A
href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/using_run_time_dynamic_linking.asp">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/using_run_time_dynamic_linking.asp</A></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#800000 size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#800000 size=2><SPAN class=296304412-06062004>1)
Dynamically load python library</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#800000 size=2><SPAN class=296304412-06062004>2)
</SPAN></FONT><FONT face=Arial color=#800000 size=2><SPAN
class=296304412-06062004>Then you can call Python methods by
name</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#800000 size=2><SPAN
class=296304412-06062004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#800000 size=2><SPAN
class=296304412-06062004>However, this would be silly, in my opinion; instead,
just try embedding the Python interpreter.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#800000 size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#800000 size=2><SPAN
class=296304412-06062004>Chetan</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#800000 size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#800000 size=2></FONT> </DIV>
<DIV align=left><FONT face=Arial size=2>
<DT>
<DIV align=left><EM>"Contrariwise," continued Tweedledee, "if it was so, it
might be, and if it were so, it would be; but as it isn't, it ain't.
That's logic!"</EM><BR> <STRONG><EM>-- Lewis Carroll, "Through
the Looking Glass"</EM></STRONG></DIV></DT></DIV>
<DIV></DIV></FONT>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #800000 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
python-win32-bounces@python.org [mailto:python-win32-bounces@python.org] <B>On
Behalf Of </B>Somesh Bartakke<BR><B>Sent:</B> Saturday, June 05, 2004 3:46
PM<BR><B>To:</B> python-win32@python.org<BR><B>Subject:</B> [python-win32]
Python DLL - Part 2<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>hello guys,</FONT></DIV>
<DIV><FONT face=Arial size=2>i want to work with VC++ and Python.</FONT></DIV>
<DIV><FONT face=Arial size=2>where i wanna write a dll or dll like interface
with Python which will be called thru VC++</FONT></DIV>
<DIV><FONT face=Arial size=2>is it possible to write in this way ? apart from
embeding interpreter and bla-bla.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Somesh Bartakke<BR>Q-Soft Pvt Ltd, Pune
(India)<BR>--<BR>Every Pawn can be Queen on chess-board, just wait for seven
moves.</FONT></DIV></BLOCKQUOTE></BODY></HTML>