Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. [moved]calling c application in Qt

[moved]calling c application in Qt

Scheduled Pinned Locked Moved C++ Gurus
6 Posts 5 Posters 3.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    prabhuraj
    wrote on last edited by
    #1

    Hi,
    I have a 'c' application which is working fine and I want to call this application in Qt. Is it a possible to do so? Please give any links or any idea.

    Thanks

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      This issue isn't coincidentally linked to "this":http://developer.qt.nokia.com/forums/viewthread/9670/ issue, isnt' it?

      There are three possibilities:

      • execute your application written in C using QProcess
      • create a library out of your C code and link it to your C++ application (extern "C" needed)
      • copy and paste the C code into your C++ application
      1 Reply Last reply
      0
      • AlicemirrorA Offline
        AlicemirrorA Offline
        Alicemirror
        wrote on last edited by
        #3

        bq. This issue isn’t coincidentally linked to this [developer.qt.nokia.com] issue, isnt’ it?

        @prabhuraj: If this post is only a further detail of your other post as suggested by Lukas, please notify me so I merge the two threads. Else we leave thie post independent.

        Thanks

        Enrico Miglino (aka Alicemirror)
        Balearic Dynamics
        Islas Baleares, Ibiza (Spain)
        www.balearicdynamics.com

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          Whatever it is about, it is not about mobile and embedded. Moving.

          1 Reply Last reply
          0
          • AlicemirrorA Offline
            AlicemirrorA Offline
            Alicemirror
            wrote on last edited by
            #5

            @andre: Thanks :)

            Enrico Miglino (aka Alicemirror)
            Balearic Dynamics
            Islas Baleares, Ibiza (Spain)
            www.balearicdynamics.com

            1 Reply Last reply
            0
            • G Offline
              G Offline
              goetz
              wrote on last edited by
              #6

              See the C++ FAQ "How to mix C and C++":http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html and search the forums, the topic has been discussed several times. If you have a concrete problem, post some snippets. You cannot get more than a general answer for a general question...

              http://www.catb.org/~esr/faqs/smart-questions.html

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved