You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For anyone looking at this in the future. You can add the following to your own files and it would be a local work around. The key for the fix here is the align(1) for the u16 strings.
conststd=@import("std");
constwin32=@import("win32");
consttypedConst=win32.zig.typedConst;
constHCURSOR=win32.ui.windows_and_messaging.HCursor;
constHINSTANCE=win32.foundation.HINSTANCE;
pubextern"user32"fnLoadCursorW(
hInstance: ?HINSTANCE,
lpCursorName: ?[*:0]align(1) constu16,
) callconv(std.os.windows.WINAPI) ?HCURSOR;
pubconstIDC_HAND=typedConst([*:0]align(1) constu16, @as(u32, 32649))
// ... repeat for the rest of the missing constants// reference the MS docs for their values: https://learn.microsoft.com/en-us/windows/win32/menurc/about-cursors
I saw that definitions for IDC constants is skipped in the window_and_messaging.zig
i'm guessing that the cause of this is pointer alignment but anyway is there any alternative to these constants in the zigwin32 library?
The text was updated successfully, but these errors were encountered: