【UE4】下载URL图片保存到本地 |
您所在的位置:网站首页 › keye下载ioc › 【UE4】下载URL图片保存到本地 |
大家好我是Ning+,因为工作需要顺手写了个简单的下载与保存,主要要注意的地方是URLDownloadToFile形参需要_T()修饰的ANSI参数,这里我将FString转为String,然后String转为wchar_T 即可; /* @author:Ning+ @theme:URL下载图片 2020/04/01 */ #include "Windows/AllowWindowsPlatformTypes.h" #include "Windows/PreWindowsApi.h" #include #include #include #include "Windows/PostWindowsApi.h" #include "Windows/HideWindowsPlatformTypes.h" /* #pragma comment(lib,"urlmon.lib") MS静态 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |