Sun, 01 Oct 2023 18:54:23 +0200
implement textfield (WinUI3)
#include "stdafx.h" #include <stdio.h> #include "window.h" #using "UIcore.dll" UI_EXPORT void* __stdcall UIwindow(char *title, void *uiobj) { UI::MainWindow ^window = gcnew UI::MainWindow(gcnew String(title), IntPtr(uiobj)); gcroot<UI::MainWindow^> *ptr = new gcroot<UI::MainWindow^>(); *ptr = window; return ptr; }