[python-win32] Python DLL - Part 2

Chetan Gadgil cgadgil_list at cxoindia.dnsalias.com
Sun Jun 6 08:56:03 EDT 2004


Actually, embedding the interpreter is quite simple.
 
If for some reason you don't want to do this, you can use the windows
"LoadLibrary" api.
 
For more info on runtime loading of libraries and using them:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc
/base/using_run_time_dynamic_linking.asp
 
1) Dynamically load python library
2) Then you can call Python methods by name
 
However, this would be silly, in my opinion; instead, just try embedding
the Python interpreter.
 
Chetan
 
 

"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!"
    -- Lewis Carroll, "Through the Looking Glass"

-----Original Message-----
From: python-win32-bounces at python.org
[mailto:python-win32-bounces at python.org] On Behalf Of Somesh Bartakke
Sent: Saturday, June 05, 2004 3:46 PM
To: python-win32 at python.org
Subject: [python-win32] Python DLL - Part 2


hello guys,
i want to work with VC++ and Python.
where i wanna write a dll or dll like interface with Python which will
be called thru VC++
is it possible to write in this way ? apart from embeding interpreter
and bla-bla.
 
 
Somesh Bartakke
Q-Soft Pvt Ltd, Pune (India)
--
Every Pawn can be Queen on chess-board, just wait for seven moves.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20040606/3e119bbb/attachment.html


More information about the Python-win32 mailing list