0

我对 c++ 很陌生,我似乎无法让这段代码工作:

#include <iostream>
#include <windows.h>
using namespace std;

int main() {
  HBITMAP hbm = CreateBitmap(100, 100, 1, 24, NULL);
  return 0;
}

每当我尝试编译它时,控制台都会输出:“未定义对 `__imp_CreateBitmap' 的引用”。我忘记了#include 语句还是其他原因?

4

0 回答 0