I'm trying to use the AfxBeginThread function that is declared within
afxwin.h. however, each time I tried to #include <afxwin.h> , it throw
me the error "fatal error C1189: #error : WINDOWS.H already included.
MFC apps must not #include <windows.h>"
so naturally I commented out the #include <windows.h> and it gives me
the same error. However, I cannot take out the #include <windows.h>
that resides within my header file because of obvious reasons.
Is there anyway to get around this because without including the
afxwin.h, I get "error C3861: 'AfxBeginThread': identifier not found,
even with argument-dependent lookup".
Thanks.
Um, WHAT obvious reasons? Please enumerate.