Open rdp opened 1 year ago
1>d:\dev\enumdisplaydevices_console_app\enumdisplaydevices_console_app\enumdisplaydevices_console_app.cpp(16): error C2365: 'Monitorenumproc' : redefinition; previous definition was 'data variable' 1> d:\dev\enumdisplaydevices_console_app\enumdisplaydevices_console_app\enumdisplaydevices_console_app.cpp(8) : see declaration of 'Monitorenumproc' ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
and
error declaration is incompatible with "MONITORENUMPROC"
meant "don't define it early like
MONITORENUMPROC Monitorenumproc;
BOOL CALLBACK Monitorenumproc( HMONITOR hMonitor, HDC unnamedParam2, LPRECT unnamedParam3, LPARAM unnamedParam4 ) { ,,,'
instead just define it like BOOL CALLBACK Monitorenumproc(
and use it...
1>d:\dev\enumdisplaydevices_console_app\enumdisplaydevices_console_app\enumdisplaydevices_console_app.cpp(16): error C2365: 'Monitorenumproc' : redefinition; previous definition was 'data variable' 1> d:\dev\enumdisplaydevices_console_app\enumdisplaydevices_console_app\enumdisplaydevices_console_app.cpp(8) : see declaration of 'Monitorenumproc' ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
and
error declaration is incompatible with "MONITORENUMPROC"
meant "don't define it early like
MONITORENUMPROC Monitorenumproc;
BOOL CALLBACK Monitorenumproc( HMONITOR hMonitor, HDC unnamedParam2, LPRECT unnamedParam3, LPARAM unnamedParam4 ) { ,,,'
instead just define it like BOOL CALLBACK Monitorenumproc(
and use it...