|
本帖最后由 hcwanz 于 2022-2-27 23:07 编辑
GdiplusStartup function (gdiplusinit.h) - Win32 apps |微软文档 (microsoft.com)
这个是易语言的,能正常运行
转成火山就不行了,因为我不懂这个传址怎么搞
所以我就用我孱弱的语法知识,封装了一下
然后报错
然后又像这样改了几次(指把第二个参数的括号,外扩删除前移)
都是报错
这是GdiplusStartupInput类的定义
GdiplusStartup function (gdiplusinit.h) - Win32 apps |微软文档 (microsoft.com)
这些是这个函数的返回值,0表示成功,2表示某参数无效
易语言会返回0,火山是2
typedef enum Status { Ok = 0,
GenericError = 1,
InvalidParameter = 2,
OutOfMemory = 3,
ObjectBusy = 4,
InsufficientBuffer = 5,
NotImplemented = 6,
Win32Error = 7,
WrongState = 8,
Aborted = 9,
FileNotFound = 10,
ValueOverflow = 11,
AccessDenied = 12,
UnknownImageFormat = 13,
FontFamilyNotFound = 14,
FontStyleNotFound = 15,
NotTrueTypeFont = 16,
UnsupportedGdiplusVersion = 17,
GdiplusNotInitialized = 18,
PropertyNotFound = 19,
PropertyNotSupported = 20,
ProfileNotFound = 21} ;
所以有没有大佬来帮一下啊
|
|