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. How to succesfully use Qt library with Windows DLL project?

How to succesfully use Qt library with Windows DLL project?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 137 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
    MulliGun
    wrote on 10 Dec 2024, 15:27 last edited by
    #1

    I have some third party project (SFall- the dll extending original Fallout 2 game). I'd like to add Qt support to the project so i can extend it by some 2d graphic features. I can successfully convert the SFall to Qt supported project and then also successfully compile it, but when I use the newly created ddraw.dll i get this ******* error dialog:

    This program requires Windows 95 with DirectX 3.0a or later or Windows
    NT version 4.0 with Service Pack 3 or greater

    enter image description here

    What can be the cause of that error and what can i do to make it to work?
    It's very strange that AFTER the project conversion to Qt/MSBuild project when debugging i CAN'T reach very basic and breakpoint set in the DllMain function which is hit without any problems BEFORE project conversion. What the conversion process could have changed with the project setup that the very basic and crucial dll entry point function isn't even called?
    Please help!

    My specs: *Win10 DirecxX 12, SFall v4.4.4, MSVC 2019 * with Qt VS Tools installed, Qt 5.15.2

    Thx. everyone for help!

    P.S.
    When using the ddraw.dll compiled without Qt support all is OK!

    P.S.2
    The whole idea of the *SFall *mod is that the generated ddraw.dll is loaded automatically by the original Fallout 2 exe in place of the original dll with this same name (the modified **dll **do it's own job and then, of course loads the original dll)

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hskoglund
      wrote on 10 Dec 2024, 16:25 last edited by
      #2

      Just a guess, but perhaps you forgot to include some .exe/.dll file properties in your .dll that the original ddraw.dll has, so when Fallout2 checks that dll for compatibility it complains with that error message (before even loading the .dll).

      In file explorer, right click on the original ddraw.dll on select Properties and Details:
      Screenshot from 2024-12-10 17-21-04.png

      Try building your version of ddraw.dll so that it shows the same properties.

      1 Reply Last reply
      0

      2/2

      10 Dec 2024, 16:25

      • Login

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