Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Python DLL's for C++?

Reply
Thread Tools

Python DLL's for C++?

 
 
Geert Vancompernolle
Guest
Posts: n/a
 
      02-10-2009
Hi,

Is it possible to write DLL's in Python for applications that only
provide C++ interfaces? Example: NotePad++ is extendible by writing C++
DLL's which can call the NotePad++ interfaces.

I wonder if those DLL's also can be written in Python, which in the end
calls the C++ interfaces of NotePad++...

--
Best rgds,

Geert
________________________________________________

*Use EcoCho <http://www.ecocho.com>: environmentally friendly search the
internet!*
 
Reply With Quote
 
 
 
 
Martin v. L÷wis
Guest
Posts: n/a
 
      02-10-2009
> Is it possible to write DLL's in Python for applications that only
> provide C++ interfaces? Example: NotePad++ is extendible by writing C++
> DLL's which can call the NotePad++ interfaces.


Not directly, no. You have to write a C++ DLL which then can delegate
all calls to it to some Python function, and likewise expose Notepad++
API to Python.

> I wonder if those DLL's also can be written in Python, which in the end
> calls the C++ interfaces of NotePad++...


The actual logic can be in Python, but you do need a C++ wrapper module.

OTOH, if Notepad++ would also support COM/ActiveX plugins, then those
could directly be written in Python (assuming the COM interfaces
supported automation).

Regards,
Martin
 
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
Re: [Python-Dev] [python-committers] [RELEASED] Python 3.2 rc 1 R. David Murray Python 0 01-17-2011 02:23 PM
Re: [Python-Dev] [python-committers] [RELEASED] Python 3.2 rc 1 Senthil Kumaran Python 0 01-17-2011 10:31 AM
Re: [Python-Dev] [Python-3000] RELEASED Python 2.6a1 and 3.0a3 Martin v. L÷wis Python 0 03-01-2008 10:51 PM
Re: [Python-Dev] [Python-3000] RELEASED Python 2.6a1 and 3.0a3 Paul Moore Python 0 03-01-2008 10:39 PM
Searching comp.lang.python/python-list@python.org (was: UTF-8) skip@pobox.com Python 0 03-10-2007 02:50 PM



Advertisments