I made a simple app to turn off a monitor. The entire program consists of just this:
monoff.cpp
#include "windows.h"
#define MON_OFF 0x2
int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, MON_OFF);
return 0;
}
For some reason it still wont run without msvcr100.dll!
how do I compile this that it will run with the standard dlls that windows ships with?
thanks for any help