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. OPC DA Client Example with Qt

OPC DA Client Example with Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
opcopc daopc client
8 Posts 2 Posters 7.4k 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.
  • Z Offline
    Z Offline
    zeroptr
    wrote on 7 Jan 2016, 13:33 last edited by
    #1

    Hi all,

    is there any example for OPC DA client in QT with QAxObject..

    I searched a lot but I couldn't find one..

    Nice Days

    Linux Mint 20.04 64 Bit QT6.0.1

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 7 Jan 2016, 17:14 last edited by
      #2

      Hi
      I could not find a Qt sample either.
      Did you see
      http://sourceforge.net/projects/opcclient/

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        zeroptr
        wrote on 9 Jan 2016, 10:19 last edited by
        #3

        Hi @mrjj
        yes I saw that... but I dont have deep knowlege of C++ to convert it to QT... :(

        Linux Mint 20.04 64 Bit QT6.0.1

        M 1 Reply Last reply 9 Jan 2016, 10:54
        0
        • Z zeroptr
          9 Jan 2016, 10:19

          Hi @mrjj
          yes I saw that... but I dont have deep knowlege of C++ to convert it to QT... :(

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 9 Jan 2016, 10:54 last edited by mrjj 1 Sept 2016, 11:25
          #4

          @zeroptr

          Well , why do you need it to be converted ?
          You could use it for getting data and then Qt for GUI.

          But if you mean to integrate with normal
          Qt database features then yes, Huuuuge work.
          But if its easy to use as normal c++, it could work with mixed.

          It seems to be a Visual Studio project.
          You can use this compiler with Qt. So it would be
          possible to get it running.

          I have never tried this implementation so it might be bad or incomplete.
          Also its DA specification version 2.05A which is 2002 it seems to it also
          depends on your server side if u can even use it.

          1 Reply Last reply
          0
          • Z Offline
            Z Offline
            zeroptr
            wrote on 9 Jan 2016, 11:40 last edited by
            #5

            Hi ..

            DA 2.05A is exactly the version that I'll play on..

            is that possible to add the files to a QT project and compile it? it seems that it depends on MS C++.. I use Mingw version of QT..

            Linux Mint 20.04 64 Bit QT6.0.1

            M 1 Reply Last reply 9 Jan 2016, 11:45
            0
            • Z zeroptr
              9 Jan 2016, 11:40

              Hi ..

              DA 2.05A is exactly the version that I'll play on..

              is that possible to add the files to a QT project and compile it? it seems that it depends on MS C++.. I use Mingw version of QT..

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 9 Jan 2016, 11:45 last edited by
              #6

              @zeroptr
              Hi
              Well it might use ATL
              which i dont think mingw likes.

              You might have luck, looking in example
              Then create qt project with those files.
              Then add all files from toolkit src files to that project and compile.
              (not the server files)
              But it will not Just work. there will be errors.

              1 Reply Last reply
              0
              • Z Offline
                Z Offline
                zeroptr
                wrote on 9 Jan 2016, 11:47 last edited by
                #7

                @zeroptr said:

                dd the files to a QT project and compile it? it seems that it depends on MS C++.. I use Mingw version of QT..

                I think the best way to create a dll from Visual Studio and use it with QT...

                Linux Mint 20.04 64 Bit QT6.0.1

                M 1 Reply Last reply 9 Jan 2016, 11:57
                1
                • Z zeroptr
                  9 Jan 2016, 11:47

                  @zeroptr said:

                  dd the files to a QT project and compile it? it seems that it depends on MS C++.. I use Mingw version of QT..

                  I think the best way to create a dll from Visual Studio and use it with QT...

                  M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 9 Jan 2016, 11:57 last edited by mrjj 1 Sept 2016, 11:59
                  #8

                  Hi
                  It uses ATL::CComPtr
                  all over so yes using visual stud and create a DLL might be only way as not
                  to drive u insane.

                  Do you need Qt for GUI or could u just use VS for whole project?

                  1 Reply Last reply
                  0

                  2/8

                  7 Jan 2016, 17:14

                  6 unread
                  • Login

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