The following however worked... I tried to isolate the type declaration of MONITORENUMPROC and it compiled successfully.
// file main.cpp
#include <iostream>
#include <windows.h>
// #include "lsmultimon.h"
#include "main.h"
void TestRun(MONITORENUMPROC);
BOOL CALLBACK TProc(HMONITOR, HDC, LPRECT, LPARAM);
int main() {
TestRun(TProc);
}
void TestRun(MONITORENUMPROC param) {
cout << "Compiled";
}
BOOL CALLBACK TProc(HMONITOR hm, HDC hdc, LPRECT lpr, LPARAM lp){
}
// file main.h
typedef BOOL (CALLBACK* MONITORENUMPROC)(HMONITOR, HDC, LPRECT, LPARAM);
In that case, I isolated the declaration of the type and it worked... but can't figure out why the other one I first sent won't work... It must be somewhere in that lsmultimon.h file... and I can't read that one or more lines that seem to make it wrong. Anyone know where the wrong lines are?
__________________________________
www.edsamail.com
|