#include "windows.h"
#include "gdiplus.h"
#include "iostream"
using namespace Gdiplus;
using namespace std;
int main( void )
{
cout<<"1 ";
Pen* myPen;
myPen = new Pen(Color(255, 255, 0, 0),3);
cout<<"2 ";
return 0;
}
無法輸出2,沒有new出Pen物件,且程式在此閃退,求解!
gdiplus庫已經鏈接
這個例子是根據Windows給出的檔案寫的,那一行是復制出來的原句
https://docs.microsoft.com/en-us/windows/win32/gdiplus/-gdiplus-changes-in-the-programming-model-about
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/87701.html
標籤:C++ 語言
上一篇:Socket套接字
下一篇:在C++中呼叫FFTW
