Home > Back-end >  Error in asking detailed said the reason, I of the new
Error in asking detailed said the reason, I of the new

Time:09-28

# include
# include
Int main (int arg c, char * argv)
{
The RECT the RECT.

HWND HWND=NULL, oldhwnd=NULL;

Int x, y, width, height;

int i;

for(i=0; I<50; I++)
{
HWND=GetForegroundWindow;

If (HWND!=oldhwnd)
{
GetWindowRect (HWND, & amp; The rect);

X=the rect. Left;
Y=the rect. Top;
Width=the rect. Right - x;
Height=the rect. Bottom - y;

Oldhwnd=HWND;

}
MoveWindow (HWND, - 10 x, y, width, height, TRUE);
Sleep (5);
MoveWindow (HWND, 10 x -, y - 10, width, height, TRUE);
Sleep (5);
MoveWindow (HWND, x, y - 10, width, height, TRUE);
Sleep (5);
MoveWindow (HWND, x, y, width, height, TRUE);
Sleep (5);
}

return 0;
}


: \ Users \ \ Administrator \ Desktop \ 444\345 \ doudong CPP (15) : error C2440: '=' : always convert from 'struct HWND__ * (__stdcall *) (void)' to 'struct HWND__ *'
There is no context in which this conversion is possible
An error occurred when executing cl. Exe.

345. Exe - 1 error (s), and 0 warning (s)

CodePudding user response:

The parameter types in HWND
  • Related