Re: Embedding Python in other programs

2005-08-28 Thread 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. -- http://mail.python.org/mailman/

Re: Embedding Python in other programs

2005-08-28 Thread Gregory Piñero
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 t

Re: Embedding Python in other programs

2005-08-28 Thread Gregory Piñero
Thanks Ravi, I'll take a look On 27 Aug 2005 22:55:40 -0700, Ravi Teja <[EMAIL PROTECTED]> wrote: > http://www.python.org/windows/win32com/QuickStartServerCom.html > > If you are using ActivePython, that tutorial is included (PyWin32 > documentation -> Python COM -> Overviews) along with the nee

Re: Embedding Python in other programs

2005-08-27 Thread Ravi Teja
http://www.python.org/windows/win32com/QuickStartServerCom.html If you are using ActivePython, that tutorial is included (PyWin32 documentation -> Python COM -> Overviews) along with the needed win32all module. -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding Python in other programs

2005-08-27 Thread Gregory Piñero
see below On 27 Aug 2005 02:18:14 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > 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

Re: Embedding Python in other programs

2005-08-27 Thread 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. -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding Python in other programs

2005-08-26 Thread Steve Holden
Gregory Piñero wrote: > How do I get it into VB6? Now that's an answer that would save my life > many times over. > Use IronPython? regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ -- http://mail.python.org/mailman/l

Re: Embedding Python in other programs

2005-08-26 Thread Gregory Piñero
Oh, by the way, here's the VB code I'm using: http://www.blendedtechnologies.com/wp-content/VB_uses_Python.zip I wonder if this question should go to some kind of VB list instead? -Greg On 8/26/05, Gregory Piñero <[EMAIL PROTECTED]> wrote: Hey guys, This question inpsired me to try this in VB

Re: Embedding Python in other programs

2005-08-26 Thread Gregory Piñero
Hey guys, This question inpsired me to try this in VB6.  I did a search and copied what I saw at http://forums.devshed.com/t158692/s.html However I'm running into the same problem they are.  When I try to run: res = Python.PyRun_SimpleString("5+7") I get the error message: Bad DLL calling conv

Re: Embedding Python in other programs

2005-08-26 Thread Gregory Piñero
How do I get it into VB6?  Now that's an answer that would save my life many times over. -GregOn 8/26/05, Alessandro Bottoni <[EMAIL PROTECTED]> wrote: Thomas Bartkus wrote:> Name: lib64python2.4-devel> Summary: The libraries and header files needed for Python development>> Description: The Python

Re: Embedding Python in other programs

2005-08-26 Thread Alessandro Bottoni
Thomas Bartkus wrote: > 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 cont

Embedding Python in other programs

2005-08-25 Thread 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