winapi - masm 将浮点数传递给函数
问题描述
我正在尝试在我的屏幕上绘制一个三角形,它可以很好地调用 winapi Polygon 函数(https://docs.microsoft.com/en-us/windows/desktop/api/wingdi/nf-wingdi-polygon)
.data
xy POINT <350,50>,<350,70>,<370,70>
.code
...
INVOKE Polygon, hdc, offset xy, lengthof xy
当我检查文档时,它说 POINT struct 用 LONG 存储 xy
typedef struct tagPOINT {
LONG x;
LONG y;
} POINT, *PPOINT;
但我认为不可能像这样直接初始化数据
.data
xy POINT <350.5,50.5>,<350.5,70.5>,<370.5,70.5>
那么可以用real4或real8在masm中调用这个函数吗?
解决方案
推荐阅读
- java - @Scheduled 方法不能使用存储库
- c# - 集合<>对象相等条件不起作用wpf c#
- javascript - React, Jest:模拟提交表单单元测试
- python - 这个 Python 表达式的输出是如何生成的?
- python - 如何添加具有多个变量的多个 if 条件
- azure - 将 Azure 触发的 WebJob 超时设置为无限
- java - 如何在不使用scriptlet的情况下使用JSP读取表单参数数据
- r - 有什么解决方法可以使用“tidyr”或“dplyr”对非表格数据进行年度统计?
- c# - 如何将我的 Visual Studio 2012 从 .NET Framework 4.5 升级到 .NET Framework 4.7.2?
- java - Spring Boot 自动配置 - 覆盖自动配置的 bean