blob: 1bc78bfc34017f0142d6fb4c5c0c84f99b286125 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include <ungrateful.h>
#if !defined(OS_WINDOWS)
int main(void) {
return 0;
}
#else
#include <windows.h>
#pragma comment(lib, "User32.lib")
int main(void) {
wchar *caption, *text;
un_init(UN_MB(4));
Allocator talloc = un_alloc_temp_get();
caption = un_wstring_from_cstring((u8 *)"Внимание", talloc);
text = un_wstring_from_cstring((u8 *)"Тестовое сообщение", talloc);
assert(caption != NULL);
assert(text != NULL);
// MessageBoxW(NULL, text, caption, MB_OK);
}
#endif
|