| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 444 人关注过本帖
标题:Win32api中的逻辑型参数是怎么申明的?
取消只看楼主 加入收藏
sam_jiang
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:14
帖 子:747
专家分:1114
注 册:2021-10-13
结帖率:98.21%
收藏
已结贴  问题点数:20 回复次数:3 
Win32api中的逻辑型参数是怎么申明的?
如题。
翻阅资料时发现,这个函数不知道怎么申明第三个参数,
Declare String  HPDF_LoadTTFontFromFile In libhpdf.dll Integer hpdf, String filename, integer embedding
第三个参数应该是个逻辑值吧?


HPDF_LoadTTFontFromFile
#include "apdf.h"
const char*
HPDF_LoadTTFontFromFile (HPDF_Doc         pdf,
                         const char      *file_name,
                         HPDF_BOOL        embedding);
Description
HPDF_LoadTTFontFromFile loads a TrueType font from an external file and register it to a document object. (See "Fonts and Encodings")
Parameter
pdf
Specify the handle of a document object.
file_name
A path of a TrueType font file (.ttf).
embedding
If this parameter is set to HPDF_TRUE, the glyph data of the font is embedded, otherwise only the matrix data is included in PDF file.
Returns
When  HPDF_LoadTTFontFromFile() succeeds, it returns the name of a font. Otherwise, it returns NULL and error-handler is called.
搜索更多相关主题的帖子: the pdf 逻辑 申明 参数 
2023-10-21 13:09
sam_jiang
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:14
帖 子:747
专家分:1114
注 册:2021-10-13
收藏
得分:0 
回复 2楼 iswith
我猜也是ture=1,flase=0,但是这个函数运行好像有问题。。。
2023-10-21 14:27
sam_jiang
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:14
帖 子:747
专家分:1114
注 册:2021-10-13
收藏
得分:0 
回复 6楼 iswith
只有dll文件,没有头文件,所以只能猜了。。。
2023-10-21 20:44
sam_jiang
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:14
帖 子:747
专家分:1114
注 册:2021-10-13
收藏
得分:0 
回复 8楼 csyx
感谢,你手上应该还有其他头文件,一起打包发上来吧
2023-10-22 10:35
快速回复:Win32api中的逻辑型参数是怎么申明的?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015818 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved