Adding to VB

?

***

I'm looking for a simple way to add python scripting support to a VB
project so that I can have a python script modify what the vb program
does. A
 
R

Reinhold Birkenfeld

*** said:
I'm looking for a simple way to add python scripting support to a VB
project so that I can have a python script modify what the vb program
does. A

Throw VB away - use only Python.

Reinhold
 
F

F. GEIGER

*** said:
I'm looking for a simple way to add python scripting support to a VB
project so that I can have a python script modify what the vb program
does. A

Have a look into Mark Hammonds PPW32 book, Mark and Andy do this in one
of their excellent real world examples.

Cheers
Franz
 
J

Jeff Shannon

F. GEIGER said:
Have a look into Mark Hammonds PPW32 book, Mark and Andy do this in
one of their excellent real world examples.


A brief summary of the approach they use -- design your VB project as a
set of COM objects. Create a set of Python classes that understand how
to manipulate those COM objects. Embed a Python interpreter inside of
your VB project (as yet another COM object). You now can use Python
code to manipulate all (exposed) aspects of your VB app.

But seriously, go buy the PPW32 book. If you're doing anything
involving COM objects, it's well worth it -- and if you're scripting
other applications on Windows, you *should* be doing it through COM.

Jeff Shannon
Technician/Programmer
Credit International
 

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,202
Messages
2,571,057
Members
47,661
Latest member
sxarexu

Latest Threads

Top