【发布时间】:2011-08-26 08:36:01
【问题描述】:
在 eclipse 上使用 MinGW 工具链(和 Internal Builder)编译 Win32 应用程序时,eclipse 编译以下代码:
#include <windows.h>
int WinMain (HINSTANCE p1, HINSTANCE p2, LPSTR p3, int p4)
{
MessageBox(0, "Hello.", "MyProg", MB_OK);
return 0;
}
但 MessageBox 带有红色下划线,错误为:'Function 'MessageBoxA' could not be resolved'。 SendMessage() 显示相同的错误。该程序运行正常,但我无法弄清楚为什么有红线。 :@
【问题讨论】:
标签: c++ eclipse winapi user-interface mingw