Embedding Python in other programs

T

Thomas Bartkus

Name: lib64python2.4-devel
Summary: The libraries and header files needed for Python development

Description: The Python programming language's interpreter can be extended
with dynamically loaded extensions and can be embedded in other programs.
This package contains the header files and libraries needed to do these
types of tasks.
------------------------------------------------------


*** The Python programming language's interpreter ... can be embedded in
other programs. ***

That's very intriguing!
But I can't seem to locate much information about this.

Can anyone direct me to greater enlightenment?
Thomas Bartkus
 
A

Alessandro Bottoni

Thomas said:
Name: lib64python2.4-devel
Summary: The libraries and header files needed for Python development

Description: The Python programming language's interpreter can be extended
with dynamically loaded extensions and can be embedded in other programs.
This package contains the header files and libraries needed to do these
types of tasks.
------------------------------------------------------


*** The Python programming language's interpreter ... can be embedded in
other programs. ***

That's very intriguing!
But I can't seem to locate much information about this.

Can anyone direct me to greater enlightenment?
Thomas Bartkus

There is a section of the official documentation devoted to extending and
embedding python:

http://docs.python.org/ext/ext.html

There are a few articles on this topics on the web, as well. Search
"embedding python" with Google.
 
W

webraviteja

Steve,
He said VB6 not VB.NET

Greg,
Just write COM servers in Python and call them from VB6. No need to
embed. Lot easier too.
 
?

=?ISO-8859-1?Q?Gregory_Pi=F1ero?=

see below

Steve,
He said VB6 not VB.NET

Greg,
Just write COM servers in Python and call them from VB6. No need to
embed. Lot easier too.
Any idea how I would get started on this? I'll do a search later today.

 
?

=?ISO-8859-1?Q?Gregory_Pi=F1ero?=

Guys, I am so lost. I followed the instructions exactly at
http://www.python.org/windows/win32com/QuickStartServerCom.html

But then when I opened up Visual Basic 6 and went to
project>references, It is not listing anything like the helloworld com
thingy I just registered? What do I need to do to use this com server
thingy from within VB? I'd really appriciate any help.

Thanks,

Greg
 
R

Ravi Teja

Greg,
I don't recall touching VB6 in 4 years. From whatever I remember, you
are trying to do early binding (trying to find a registered type
library). You need to do late binding instead (use CreateObject) to
dynamically instantiate the COM object.

Ravi Teja.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top