我今天写了一个mfc的小程序,里面调用了几个sdk的函数。几个函数如下:
::GetWindowText//运行正常
::GetWindowModuleFileName//编译出现错误,报告如下:
'GetWindowModuleFileName' : is not a member of '`global namespace''
 'GetWindowModuleFileName' : undeclared identifier
我看了msdn,照着要求做的,可还是不行。两个函数的要求一样呀,为什么一个正常运行,一个编译出错呢?我在工程中加入了user32.lib了。
谁能告诉我这是为什么呀?