Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Use dll created with Qt in std c++ application

Use dll created with Qt in std c++ application

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 280 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.
  • O Offline
    O Offline
    ODБOï
    wrote on 14 Jun 2019, 08:48 last edited by
    #1

    I can use a dll created with Qt in a std c++ application right ?
    That dll will contain functions to communicate with a tcp server, and return strings to user.
    If i have a function returnig a string, it must be a std::string rather than QString also ?

    J 1 Reply Last reply 14 Jun 2019, 09:01
    0
    • O ODБOï
      14 Jun 2019, 08:48

      I can use a dll created with Qt in a std c++ application right ?
      That dll will contain functions to communicate with a tcp server, and return strings to user.
      If i have a function returnig a string, it must be a std::string rather than QString also ?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 14 Jun 2019, 09:01 last edited by
      #2

      @LeLev said in Use dll created with Qt in std c++ application:

      If i have a function returnig a string, it must be a std::string rather than QString also ?

      Yes, if the other app is not going to use Qt then you can't use Qt data types in the public API of that lib.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      5
      • O Offline
        O Offline
        ODБOï
        wrote on 14 Jun 2019, 09:05 last edited by
        #3

        @jsulm thank you

        1 Reply Last reply
        0

        1/3

        14 Jun 2019, 08:48

        • Login

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