非托管代码能不能使用gdi+ 非托管代码能不能使用gdi+ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以使用GDI+#include <windows.h>#include <gdiplus.h>#include <stdio.h>using namespace Gdiplus;#pragma comment(lib, "gdiplus.lib")INT main(){ GdiplusStartupInput gdiplusStartupInput; ULONG_PTR gdiplusToken; GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL); Image* image = new Image(L"FakePhoto.jpg"); printf("The width of the image is %u.\n", image->GetWidth()); printf("The height of the image is %u.\n", image->GetHeight()); delete image; GdiplusShutdown(gdiplusToken); return 0;} 如何让控件显示在窗口顶端 关于动态创建的对话框指针的删除 VC单选按钮 CWinApp中,声明了virtual int ExitInstance(),但在Debug下退出程序时,没有进入ExitInstance函数(设了断点),怎么回事? 100分急问:这样的报表用什么可以做 如何安装一个服务 关于IME对窗口属性的影响? F5执行没错的程序,ctrl F5执行就出错!为什么? 我该怎么继续下去.... 问一个多线程和静态变量的问题 高手帮忙看下吧?? VC 的CFontDialog如何删除一部分不要的字体
#include <gdiplus.h>
#include <stdio.h>
using namespace Gdiplus;
#pragma comment(lib, "gdiplus.lib")INT main()
{
GdiplusStartupInput gdiplusStartupInput;
ULONG_PTR gdiplusToken;
GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL); Image* image = new Image(L"FakePhoto.jpg");
printf("The width of the image is %u.\n", image->GetWidth());
printf("The height of the image is %u.\n", image->GetHeight()); delete image;
GdiplusShutdown(gdiplusToken);
return 0;
}