PDA

View Full Version : VC++ Cionci Help me


xegallo
12-10-2002, 21:08
che errore c'è

HWND getSystemTrayHwnd ()
{
HWND hwndTray;
//310
HWND hwndStartMenu = FindWindow ("ShellTrayWnd",NULL);
HWND hwndChild = GetWindow (hwndStartMenu,GW_CHILD);
int iClassName = 0;
char szClass [255];


do
{
iClassName= GetClassName (hwndChild,szClass,sizeof(szClass));
//320
if (strstr(szClass,"TrayNotifyWnD"))
{
hwndTray = hwndChild;
break;
}
else
{
hwndChild = GetWindow (hwndChild,GW_HWNDNEXT);
}while (true);
//330
}

return hwndTray;

}


mi da errore su return:
error C2059: syntax error : 'return'

xegallo
12-10-2002, 21:09
scusate trovato sono un imbecille

badaze
12-10-2002, 21:19
il while ... no ?

xegallo
12-10-2002, 21:49
avevo sbagliato a chiudere il ciclo non mi rendevo conto che c'era un'altra }