Python

Moderators: None (Apply to moderate this forum)
Number of threads: 473
Number of posts: 1165

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Using C++ classes? Posted by Mastik on 31 Mar 2005 at 8:41 AM
Hello,

I haven't done it yet, but I know where the project I am working on will be going. I was wondering if anyone here could shed some light on how I would be able to use some c++ code in my python.

Here is a bit more background info on the problem. There is a camera device that all the drivers and conversion between capture modes are in a C++ SDK/code. I being that the project is written in python I would like to have this occure in python for its cross platform capabilities.

I was reading on SWIG but for some reason I am drawing blank, well hit a mental block on how to use SWIG to import/implement C++ in Python. So I was wondering if anyone knows a site or how to go about doing it. And for any examples lets say I have to use 8 C++ classes/objects (not that I have to, just want to make sure that I cover my bases).

Thanks.
Report
Re: Using C++ classes? Posted by infidel on 31 Mar 2005 at 11:23 AM
: Hello,
:
: I haven't done it yet, but I know where the project I am working on will be going. I was wondering if anyone here could shed some light on how I would be able to use some c++ code in my python.
:
: Here is a bit more background info on the problem. There is a camera device that all the drivers and conversion between capture modes are in a C++ SDK/code. I being that the project is written in python I would like to have this occure in python for its cross platform capabilities.
:
: I was reading on SWIG but for some reason I am drawing blank, well hit a mental block on how to use SWIG to import/implement C++ in Python. So I was wondering if anyone knows a site or how to go about doing it. And for any examples lets say I have to use 8 C++ classes/objects (not that I have to, just want to make sure that I cover my bases).

That's well beyond the level I've ever gone with python. I know the standard documentation includes information about integrating python and C. You'd better off posting your question to the comp.lang.python newsgroup.


infidel

$ select * from users where clue > 0
no rows returned


Report
Re: Using C++ classes? Posted by Mastik on 31 Mar 2005 at 12:46 PM
: : Hello,
: :
: : I haven't done it yet, but I know where the project I am working on will be going. I was wondering if anyone here could shed some light on how I would be able to use some c++ code in my python.
: :
: : Here is a bit more background info on the problem. There is a camera device that all the drivers and conversion between capture modes are in a C++ SDK/code. I being that the project is written in python I would like to have this occure in python for its cross platform capabilities.
: :
: : I was reading on SWIG but for some reason I am drawing blank, well hit a mental block on how to use SWIG to import/implement C++ in Python. So I was wondering if anyone knows a site or how to go about doing it. And for any examples lets say I have to use 8 C++ classes/objects (not that I have to, just want to make sure that I cover my bases).
:
: That's well beyond the level I've ever gone with python. I know the standard documentation includes information about integrating python and C. You'd better off posting your question to the comp.lang.python newsgroup.
:
:
: infidel
:
:
: $ select * from users where clue > 0
: no rows returned
: 

:
:
Will do. Thanks.

Funny how the more you know about programming the less you feel you know about programming.
Report
Re: Using C++ classes? Posted by infidel on 31 Mar 2005 at 2:43 PM
: Funny how the more you know about programming the less you feel you know about programming.

First there is a mountain.
Then there is no mountain.
Then there is.


infidel

$ select * from users where clue > 0
no rows returned





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.