::meekly objects::
they download as .c files and on the website of the tutorial they state they will only be using .c files, no cpp. lol but they do use C++ style comments (at least what i was taught were C++ style comments... // instead of /* */)
i'm still getting the same error though, no matter where HWND hChild is declared. what i dont get is it wants a ) before the ; on that line, but there is no ; on that line ?
POPUP "&Edit"
BEGIN
So i just commented out the if part of my statement including the else so that it would just execute the code for the else situation..and it compiled and ran. *is really confused* ??
End
MENUITEM "&Redo", ID_EDIT_REDO
/* yep..lamer 8-) booyah */
so anyways, i tried different conditionals to see if something was going wrong in the if statement.. i changed my code to use whiles and i got the same error.
Code:
default:
{
409-> while (LOWORD(wParam) >= ID_MDI_FIRSTCHILD)
{
DefFrameProc(hwnd, g_hMDIClient, WM_COMMAND, wParam, lParam);
}
while (!LOWORD(wParam) >= ID_MDI_FIRSTCHILD)
{
HWND hChild = (HWND)SendMessage(g_hMDIClient, WM_MDIGETACTIVE, 0, 0);
if (hChild)
{
SendMessage(hChild, WM_COMMAND, wParam, lParam);
}
}
}
[error]WinTest02.c:409: error: syntax error before ';' token
WinTest02.c:413: error: syntax error before ';' token
WinTest02.c:416: error: `hChild' undeclared (first use in this function)
WinTest02.c:416: error: (Each undeclared identifier is reported only once
WinTest02.c:416: error: for each function it appears in.)[/error]