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 Qt DLL without environment variables

Use Qt DLL without environment variables

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 542 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.
  • M Offline
    M Offline
    MChe
    wrote on last edited by
    #1

    Hello!

    I create Qt's DLL for Excel (VBA). When I try run it, I have error "run-time error 53: file not found".

    I add to environment variables:
    path: c:\excelandqtexample
    QT_QPA_PLATFORM_PLUGIN_PATH: c:\excelandqtexample\platforms\

    And it's work!

    But it's bad solution for me.

    How can I run its DLL without adding environment variables?

    If I run simple Qt exe file (not DLL) without adding environment variables, it's work.

    D 1 Reply Last reply
    0
    • M MChe

      Hello!

      I create Qt's DLL for Excel (VBA). When I try run it, I have error "run-time error 53: file not found".

      I add to environment variables:
      path: c:\excelandqtexample
      QT_QPA_PLATFORM_PLUGIN_PATH: c:\excelandqtexample\platforms\

      And it's work!

      But it's bad solution for me.

      How can I run its DLL without adding environment variables?

      If I run simple Qt exe file (not DLL) without adding environment variables, it's work.

      D Offline
      D Offline
      Devopia53
      wrote on last edited by
      #2

      @MChe

      Look for the following my suggestions.

      1. QCoreApplication::addLibraryPath()
      2. qt.conf
      1 Reply Last reply
      3

      • Login

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