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. QAxScriptManager not working with MinGW [SOLVED]
Forum Updated to NodeBB v4.3 + New Features

QAxScriptManager not working with MinGW [SOLVED]

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.4k Views 1 Watching
  • 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.
  • A Offline
    A Offline
    amahta
    wrote on last edited by
    #1

    @
    scrptMgr = new QAxScriptManager(this);
    mainScrpt = scrptMgr->load("path_to_file.vbs", "myvbs");
    @

    mainScrpt is NULL after calling "load" function with MinGW. This is not the case when I use MSVC2010 kit!
    Any ideas???

    Thou shalt programme
    http://www.amin-ahmadi.com

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      "The docs":http://qt-project.org/doc/qt-5/qaxscriptmanager.html#details state that QAxScriptManager is not available with MinGW.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        amahta
        wrote on last edited by
        #3

        Wow! How could I miss it?! :) Thanks. This is solved for now then.

        Thou shalt programme
        http://www.amin-ahmadi.com

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

          Wanted to share another result.
          Under windows, scripts can also be called using
          @QDeskTopServices::openUrl()@

          Of course I'm not sure how to return values to my Qt app without writing to file or anything like that. But passing parameters to it is like calling something from the cmd

          Thou shalt programme
          http://www.amin-ahmadi.com

          1 Reply Last reply
          0
          • Chris KawaC Offline
            Chris KawaC Offline
            Chris Kawa
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Maybe you can just create QProcess and call "cscript your_script.vbs" directly. At least this way you'll get access to its stdin/stdout and return value.

            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