Linking C++ with Python

This is a discussion on Linking C++ with Python within the C++ Programming forums, part of the General Programming Boards category; Hi all This is my first post here, so Hello to everyone. I have made a program in C++ and ...

  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    3

    Lightbulb Linking C++ with Python

    Hi all

    This is my first post here, so Hello to everyone.

    I have made a program in C++ and would really like to try and begin implementing a GUI, however I have found information on the internet, which suggests C++ does not support this task as part of the library.

    Python however does, so my question is; is it possible to make a program from C++ and Python ( C++ for actual logic of program ,Python for GUI) Or is this not possible?

    If it is possible how would one begin doing this?

    Thanks for your time.

  2. #2
    Registered User
    Join Date
    Aug 2003
    Posts
    1,198
    Using a thirdparty library such as Products — Qt - A cross-platform application and UI framework will allow you to create a GUI using C++. There are many more libraries available, some are platform dependant (WinAPI is the native windows library) and some are platform independant (like the one i linked, and many more, google is your friend). It will probably be easier to go that route rather than using python and c++ and trying to get them to work together.

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    2,304
    boost has libraries for integrating the two. I'd suggest checking that out if you're really serious about using C++ with python

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Python --> C
    By Macha in forum C Programming
    Replies: 71
    Last Post: 05-28-2010, 06:18 PM
  2. python c api
    By ralu. in forum C Programming
    Replies: 0
    Last Post: 03-01-2009, 12:19 PM
  3. C and Python
    By alexnb185 in forum Tech Board
    Replies: 5
    Last Post: 04-11-2008, 11:11 PM
  4. Python
    By Xterria in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 05-05-2002, 04:08 PM
  5. Python help. Anyone?
    By Potato_Tempest in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 01-28-2002, 02:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21