Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Want to create an ActiveX object from a Python class

Reply
Thread Tools

Want to create an ActiveX object from a Python class

 
 
Shi Sherebrin
Guest
Posts: n/a
 
      06-30-2003
A colleague wants some functionality that I've built in a Python class
available to 'drop' into her Visual C++ project. Some time ago she
gave up on trying to use 'regular' COM servers, since ActiveX controls
integrate so much more easily. So if I can't wrap the Python class
into an ActiveX object, I'll have to port it.

I've been searching through the pythoncom and ctypes documentation and
samples, and can't seem to find any examples of making an ActiveX
object. The pythoncom documentation claims that ActiveX is the same
as COM, but there seems to need to be more added to a COM server to
make it an ActiveX object, and I don't know nearly enough to know how
to do this.

Is anyone else interested in doing this, and has anyone managed to do
so?

thanks,
Shi.
 
Reply With Quote
 
 
 
 
John J. Lee
Guest
Posts: n/a
 
      06-30-2003
(Shi Sherebrin) writes:
[...]
> I've been searching through the pythoncom and ctypes documentation and
> samples, and can't seem to find any examples of making an ActiveX
> object. The pythoncom documentation claims that ActiveX is the same
> as COM, but there seems to need to be more added to a COM server to
> make it an ActiveX object, and I don't know nearly enough to know how
> to do this.
>
> Is anyone else interested in doing this, and has anyone managed to do
> so?


ActiveX controls are indeed just COM servers with particular interfaces.

Have you found the O'Reilly book yet (Hammond and Robinson)? I don't
remember anything specifically on ActiveX, but it certainly covers
making COM servers from Python. The relevant chapter (12) is actually
downloadable for free, I think.

I don't know whether AX controls are possible / well-supported:

http://tinyurl.com/fo58


but this might be more useful to you:

http://tinyurl.com/fo5t
http://tinyurl.com/fo6b


John
 
Reply With Quote
 
 
 
 
Syver Enstad
Guest
Posts: n/a
 
      07-01-2003
(Shi Sherebrin) writes:

> A colleague wants some functionality that I've built in a Python class
> available to 'drop' into her Visual C++ project. Some time ago she
> gave up on trying to use 'regular' COM servers, since ActiveX controls
> integrate so much more easily. So if I can't wrap the Python class
> into an ActiveX object, I'll have to port it.
>
> I've been searching through the pythoncom and ctypes documentation and
> samples, and can't seem to find any examples of making an ActiveX
> object. The pythoncom documentation claims that ActiveX is the same
> as COM, but there seems to need to be more added to a COM server to
> make it an ActiveX object, and I don't know nearly enough to know how
> to do this.
>
> Is anyone else interested in doing this, and has anyone managed to do
> so?


If I am not mistaken, the only thing your colleague needs is a type
library for the python com object. In the cases I've experienced this
is what makes MS IDE's tick when it comes to COM objects.

 
Reply With Quote
 
News M Claveau /Hamster-P
Guest
Posts: n/a
 
      07-01-2003
Bonjour !
Peut-être en créant un serveur COM, puis en encapsulant celui-ci avec un peu
de code, dans VBCCE (=Visual Basic Control Creation Edition, gratuit, chez
Microsoft, pour faire des Active-X).
C'était juste une idée.


Hi ! (sorry for my poor english)
Perhaps with : to do an COM server, and use it, in little code, in VBCCE
(=Visual Basic Control Creation Edition ; free, at Microsoft, for create
Active-X).
Just an idea.


Url : http://msdn.microsoft.com/vbasic/dow...e/default.aspx



@-salutations
--
Michel Claveau


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveX control in python vs ActiveX control in vb 6 (piece of code) vml Python 0 08-22-2007 09:57 AM
I want to create a link "e-mail this page to a friend" on clicking this link i want to send the URL of that current page to a friend pavi Javascript 0 01-13-2006 12:10 PM
Object creation - Do we really need to create a parent for a derieved object - can't the base object just point to an already created base object jon wayne C++ 9 09-22-2005 02:06 AM
ActiveX apologetic Larry Seltzer... "Sun paid for malicious ActiveX code, and Firefox is bad, bad bad baad. please use ActiveX, it's secure and nice!" (ok, the last part is irony on my part) fernando.cassia@gmail.com Java 0 04-16-2005 10:05 PM
Error:: Activex componet can not create object:"WScript.Shell" Mike John ASP .Net 2 07-11-2003 04:29 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57