求助!Main.obj : error LNK2019
董胎瓜 2011-11-16 07:53:34 ------ 已启动生成: 项目: Codes Manager, 配置: Debug Win32 ------
生成启动时间为 2011-11-16 19:44:24。
InitializeBuildStatus:
正在对“Debug\Codes Manager.unsuccessfulbuild”执行 Touch 任务。
ClCompile:
所有输出均为最新。
ResourceCompile:
所有输出均为最新。
ManifestResourceCompile:
所有输出均为最新。
Main.obj : error LNK2019: 无法解析的外部符号 __imp__InitCommonControls@0,该符号在函数 _WinMain@16 中被引用
J:\文件\文档\Programming\C\Codes Manager\Debug\Codes Manager.exe : fatal error LNK1120: 1 个无法解析的外部命令
生成失败。
已用时间 00:00:01.39
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
以下是Main.cpp里的代码,我看了那个InitCommonControls()函数,我根本没有动过它,也不知道它是干什么用。
// Cost List.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "resource.h"
#include "UserDlg.h"
#include <COMMCTRL.H>
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
//Enable IPAddress、Calendar.etc
InitCommonControls();
DialogBox(hInstance, MAKEINTRESOURCE(IDD_USER), NULL, UserDlg_Proc);
return 0;
}
请大神们看一下啊