//example code
#include<iostream>
#include<Windows.h>
Int main()
{
BOOL MoveWindow(
HWND hWnd,
int X,
int Y,
int nWidth,
int nHeight,
BOOL bRepaint
);
return 0;
}
I have used a similar function in some of my code recently and I was getting a linker error. I was under the impression MoveWindow was included with Windows.h however it wouldn't link.
After looking up MoveWindow, I decided to add 'User32.lib' to the additional dependencies. This fixed the problem but why I don't know? Isn't user32 inside windows.h as that is what the include needed is? What caused my dependency to be missing. I'm running the latest version of VS17.