Results 1 to 4 of 4

Thread: QAxServer:: Out of process executable server

  1. #1
    Join Date
    Sep 2007
    Posts
    22
    Thanks
    1

    Default QAxServer:: Out of process executable server

    Hello,

    I want to use my executable as out-of-process executable server. So i have take a look at the QAxServer Module. I followed all the steps to produce the executable server. But after compiling I get these errors:

    error MIDL2270 : duplicate UUID. Same as : ....
    error MIDL2270 : duplicate UUID. Same as : ....
    error MIDL2270 : duplicate UUID. Same as : ....

    Have someone any experience with this?

    Thanks in advance

  2. #2
    Join Date
    Sep 2007
    Posts
    22
    Thanks
    1

    Default Re: QAxServer:: Out of process executable server

    hello,

    The above problem has been solved, i had it because the unique key has been used several times. I have another question regarding validating my standalone application as server.

    I validate my control by -regserver. It seems that the application is registered but if i want to use it in another application I dont see it in the list of activeX controls. But if I uncheck "validated servers" field in that application I see my activeX control but on selecting it i get the error melding that the class is not registered.

    Is there any other way to register the stand alone servers?
    Can someone please answer this question?

  3. #3
    Join Date
    Sep 2007
    Posts
    22
    Thanks
    1

    Default Re: QAxServer:: Out of process executable server

    Hello there,

    Come on guys I need your help. In my pro file I added these lines:

    Qt Code:
    1. TEMPLATE = app
    2. CONFIG += qt activeqt
    3.  
    4. RC_FILE = qaxserver.rc
    To copy to clipboard, switch view to plain text mode 

    and in my main.cpp I added these lines:

    Qt Code:
    1. QAXFACTORY_DEFAULT
    2. (
    3. myClass,
    4. "{ad90301a-849e-4e8b-9a91-0a6dc5f6461f}",
    5. "{87a5b65e-7fa9-4dc6-a176-47295988dcbd}",
    6. "{a6130ae9-8327-47ec-815b-d0b45a0d6e5e}",
    7. "{26c4e136-4e23-4347-af37-faf933b027e9}",
    8. "{a8f21901-7ff7-4f6a-b939-789620c03d83}"
    9. )
    10.  
    11. int main( int argc, char** argv )
    12. {
    13. QApplication app( argc, argv );
    14. if ( !QAxFactory::isServer() )
    15. {
    16. m_pApp = &app;
    17.  
    18. myClass * test = new myClass();
    19.  
    20. app.setMainWidget(test);
    21. test->show();
    22. }
    23. return app.exec();
    24. }
    To copy to clipboard, switch view to plain text mode 

    It works perfectly and I can test it in Active Test Container of microsoft. But I cannot use this server in visual basic or any other programme which supports activeX.

    Can someone please tell how can I used this in VB? I am not using QT4, we have the 3.4.1 version of QT.

    Thnx in advance,
    Last edited by Pharell; 4th February 2009 at 09:35.

  4. #4
    Join Date
    Sep 2011
    Posts
    2
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: QAxServer:: Out of process executable server

    Hello,

    Does anyone have some news on this issue ?

    Nicolas,

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.