OPC DA Client Example with Qt



  • 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


  • Qt Champions 2017

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



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


  • Qt Champions 2017

    @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.



  • 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..


  • Qt Champions 2017

    @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.



  • @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...


  • Qt Champions 2017

    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?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.