How to add Win32 .res file so I can use WinAPI DialogBox?
-
Hi,
I want to show a dialog from within a DLL written in Qt. The DLL doesn't use any Qt GUI, so I don't want to use any Qt GUI to avoid the large size Qt DLLs. So I want to use plain Windows API to do it. My DLL is native Windows only, no cross platform.
I user some resource editor to create .rc file, then compile it to .res. However, I don't know how to add the .res to a Qt program.Question: How to embed the Win32 .res file to Qt program?
Thanks
-
I found a solution. Add a post build step to use some res compiler to embed the resource file into the exe.
But I would like to know if there is any better and Qt style way to do it. -
Hi,
The platform notes contains a paragraph on the subject which should be of interest.
-
@SGaist
That's exactly what I need.
Thank you very much. -
You're welcome !
Since you have everything you need, please update the thread title prepending [solved] so other forum users may know a solution has been found :)