PDA

View Full Version : How to include "wbemidl.h" to execute wmi queries in qt?



Gokulnathvc
23rd January 2014, 11:36
How to include "wbemidl.h" to execute wmi queries in qt?

anda_skoa
23rd January 2014, 12:33
Just like any other header. Qt is a C++ library, it doesn't come with its own language or compiler.

Cheers,
_

Gokulnathvc
23rd January 2014, 13:00
It needs wbemuuid.lib to be linked. How to link the library to make wbemidl.h work?

anda_skoa
23rd January 2014, 16:49
Depends on your build system.

For qmake like this:
http://qt-project.org/doc/qt-4.8/qmake-project-files.html#declaring-other-libraries

Cheers,
_