ui/wpf/UIwrapper/UIwrapper/window.cpp

Thu, 14 Nov 2024 23:22:35 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Thu, 14 Nov 2024 23:22:35 +0100
changeset 85
44ebbb4c8a13
parent 0
2483f517c562
permissions
-rw-r--r--

add support for secret store credentials when connecting to repositories, resolves #496



#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;
}

mercurial