There's not a lot of information about generic Windows C++ programming in this forum because its focus is the Qt libraries. Depending on what you need to do, it can be as simple as:
#ifdef Q_OS_WIN32
#include <windows.h>
#endif
...
#ifdef Q_OS_WIN32
// do Win32 specific stuff here (random example)
HINSTANCE libHandle = LoadLibrary(L"SomeFunkyLib.DLL");
if (libHandle != NULL) {
...
}
#else
// do stuff that works elsewhere here
#endif
#ifdef Q_OS_WIN32
#include <windows.h>
#endif
...
#ifdef Q_OS_WIN32
// do Win32 specific stuff here (random example)
HINSTANCE libHandle = LoadLibrary(L"SomeFunkyLib.DLL");
if (libHandle != NULL) {
...
}
#else
// do stuff that works elsewhere here
#endif
To copy to clipboard, switch view to plain text mode
and then building on Windows where the user32 and gdi32 libraries are typically linked by default. For non-core Windows API you may need to link another library or two (LIBS variable in qmake).
Bookmarks