[Qt-interest] Qt , third party library
Paul Miller
paul at fxtech.com
Tue Nov 16 18:09:07 CET 2010
On 11/15/2010 6:29 AM, Adrian wrote:
> Hello all;
>
> I have a problem using Qt with a third part library for some hardware.
> The header file for this is full of windows idioms such as PVOID,
> OVERLAPPED, UCHAR, PUCHAR etc all of which are usually defined in
> winbase.h etc. It appears I cannot easily include these headers into my
> Qt project. Including qtglobals and qwindowsdef.h doesn’t help either.
> Is there a solution for this problem?
I've never had problems including <windows.h> when I needed it. Write a
wrapper header around your 3rd party header which includes <windows.h>
first.
Or, better yet, wrap your 3rd party library in a Qt interface that hides
the underlying Windows junk.
More information about the Qt-interest-old
mailing list