Answer the question
In order to leave comments, you need to log in
MinGW. How to use WMI?
I just can not find information on how to connect WMI on windows mingw.
I am writing in Qt. I add to the project
LIBS += "C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1A/Lib/WbemUuid.Lib"
LIBS += -lwbemuuid
#include <comdef.h>
#include <Wbemidl.h>
#pragma comment(lib, "wbemuuid.lib")
Answer the question
In order to leave comments, you need to log in
I'm not entirely sure that a C++ library compiled in MSVC can be slipped into MinGW. Read this:
stackoverflow.com/questions/7064160/using-msvc-lib...
www.mingw.org/wiki/Interoperability_of_Libraries_C...
mingw.5.n7.nabble.com/using-VC-lib-with-mingw -td19...
I don't know what WMI is, but suddenly in your case everything will be solved by wrapping the header inextern "C"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question