出现一个纠结的事情求指导
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <windef.h>
extern void MoveR(unsigned int x,unsigned int y);
extern void MoveTo(unsigned int x,unsigned int y);
extern HWND GetHwnd();
extern unsigned int ReadMemory(HWND hwnd,LPCVOID pvAddressRemote,bool Tybe);
extern void MouseDrift(unsigned int x,unsigned int y,HWND Hwnd);
int main(int argc, char* argv[])
{
HWND hwnd;
unsigned int i;
hwnd=GetHwnd();
i=(unsigned int)hwnd;
printf("句柄=%d\n",i);
return 0;
}
编译通过可是运行却出现这样的错误。
TWO.obj : error LNK2001: unresolved external symbol "struct HWND__ * __cdecl GetHwnd(void)" (?GetHwnd@@YAPAUHWND__@@XZ)
Debug/TWO.exe : fatal error LNK1120: 1 unresolved externals
求大神指导下 那里除了问题
[解决办法]